Giter Club home page Giter Club logo

Comments (9)

rrooggiieerr avatar rrooggiieerr commented on August 15, 2024

There is no version 0.0.9 yet of the HA integration, however there is a 0.0.8 beta release which contains the latest benqprojector library with the changes required for your projector. You have to enable beta releases in HACS to be able to install this release.

https://hacs.xyz/docs/faq/beta/

from homeassistant-benqprojector.

ajd-tech avatar ajd-tech commented on August 15, 2024

I got the 0.0.8 version installed, unfortunately I got the following error in the HA log

This error originated from a custom integration.

Logger: custom_components.benqprojector.config_flow
Source: custom_components/benqprojector/config_flow.py:113
Integration: BenQ Projector (documentation, issues)
First occurred: 2:24:57 PM (1 occurrences)
Last logged: 2:24:57 PM

Unexpected exception: ('modelname', '?', '*illegal forma')
Traceback (most recent call last):
File "/config/custom_components/benqprojector/config_flow.py", line 64, in async_step_setup_serial
info = await self.validate_input_setup_serial(user_input, errors)
File "/config/custom_components/benqprojector/config_flow.py", line 113, in validate_input_setup_serial
projector.connect()
File "/usr/local/lib/python3.10/site-packages/benqprojector/benqprojector.py", line 210, in connect
model = self._send_command("modelname")
File "/usr/local/lib/python3.10/site-packages/benqprojector/benqprojector.py", line 374, in _send_command
return self._parse_response(command, action, _command, response)
File "/usr/local/lib/python3.10/site-packages/benqprojector/benqprojector.py", line 430, in _parse_response
raise InvallidResponseError(command, action, response)
benqprojector.benqprojector.InvallidResponseError: ('modelname', '?', '*illegal forma')

from homeassistant-benqprojector.

rrooggiieerr avatar rrooggiieerr commented on August 15, 2024

Could you change the manifest.json to use benqprojector==0.0.12.1 as the dependency?

from homeassistant-benqprojector.

ajd-tech avatar ajd-tech commented on August 15, 2024

Made the change the Manifest.json.

I ran through the setup and now I get this error in HA "Error
Config flow could not be loaded: 500 Internal Server Error Server got itself in trouble" and won't go further

from homeassistant-benqprojector.

rrooggiieerr avatar rrooggiieerr commented on August 15, 2024

Make sure you've got all quotes and commas in the JSON right. This is what mine looks like:

{
  "domain": "benqprojector",
  "name": "BenQ Projector",
  "version": "0.0.9",
  "config_flow": true,
  "documentation": "https://github.com/rrooggiieerr/homeassistant-benqprojector",
  "issue_tracker": "https://github.com/rrooggiieerr/homeassistant-benqprojector/issues",
  "requirements": [
    "benqprojector==0.0.12.1"
  ],
  "ssdp": [],
  "zeroconf": [],
  "homekit": {},
  "dependencies": [],
  "codeowners": [
    "@rrooggiieerr"
  ],
  "iot_class": "local_polling",
  "integration_type": "device",
  "loggers": ["benqprojector"]
}

from homeassistant-benqprojector.

ajd-tech avatar ajd-tech commented on August 15, 2024

ya I don't remember putting 121 in Json just 12 but missing the "." seems to have casused it

Logger: homeassistant.util.package
Source: util/package.py:100
First occurred: February 21, 2023 at 9:20:33 PM (3 occurrences)
Last logged: February 21, 2023 at 9:20:43 PM

Unable to install package benqprojector==0.0.121: ERROR: Could not find a version that satisfies the requirement benqprojector==0.0.121 (from versions: 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.6, 0.0.6.1, 0.0.7, 0.0.7.1, 0.0.8, 0.0.9, 0.0.10, 0.0.11, 0.0.12, 0.0.12.1) ERROR: No matching distribution found for benqprojector==0.0.121 [notice] A new release of pip available: 22.3 -> 23.0.1 [notice] To update, run: pip install --upgrade pip

So fixed the Manifest file
{
"domain": "benqprojector",
"name": "BenQ Projector",
"version": "0.0.8",
"config_flow": true,
"documentation": "https://github.com/rrooggiieerr/homeassistant-benqprojector",
"issue_tracker": "https://github.com/rrooggiieerr/homeassistant-benqprojector/issues",
"requirements": [
"benqprojector==0.0.12.1"
],
"ssdp": [],
"zeroconf": [],
"homekit": {},
"dependencies": [],
"codeowners": [
"@rrooggiieerr"
],
"iot_class": "local_polling",
"integration_type": "device"
}

now its back to

This error originated from a custom integration.

Logger: benqprojector.benqprojector
Source: custom_components/benqprojector/config_flow.py:113
Integration: BenQ Projector (documentation, issues)
First occurred: 10:49:14 AM (2 occurrences)
Last logged: 10:49:48 AM

Unexpected response format, response: *ildlegal for>

from homeassistant-benqprojector.

rrooggiieerr avatar rrooggiieerr commented on August 15, 2024

Ii released a net testing version of the library, could you change the version to 0.0.12.2 and try again?

from homeassistant-benqprojector.

ajd-tech avatar ajd-tech commented on August 15, 2024

ok this message looks different

This error originated from a custom integration.

Logger: custom_components.benqprojector.config_flow
Source: custom_components/benqprojector/config_flow.py:96
Integration: BenQ Projector (documentation, issues)
First occurred: 9:45:19 AM (1 occurrences)
Last logged: 9:45:19 AM

Unexpected exception: Invalid.init() missing 1 required positional argument: 'message'
Traceback (most recent call last):
File "/config/custom_components/benqprojector/config_flow.py", line 64, in async_step_setup_serial
info = await self.validate_input_setup_serial(user_input, errors)
File "/config/custom_components/benqprojector/config_flow.py", line 96, in validate_input_setup_serial
raise vol.error.RequiredFieldInvalid()
TypeError: Invalid.init() missing 1 required positional argument: 'message'

from homeassistant-benqprojector.

rrooggiieerr avatar rrooggiieerr commented on August 15, 2024

This error happens on a totally different place in the code and I don't understand how that canhappen if you have already configured your projector.

Do you use a different serial to USB controller or other USB port since you've configured your projector in HA?

from homeassistant-benqprojector.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.