homeassistant-benqprojector
homeassistant-benqprojector copied to clipboard
not upgrading to Version 0.0.9 seems to be stuck at 0.0.7
I am running HA in a Container, but everything else seems good.
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/
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')
Could you change the manifest.json
to use benqprojector==0.0.12.1
as the dependency?
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
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"]
}
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>
Ii released a net testing version of the library, could you change the version to 0.0.12.2
and try again?
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'
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?