Giter Club home page Giter Club logo

Comments (16)

LaneaLucy avatar LaneaLucy commented on July 17, 2024 1

Well, actually you can submit which commands are supported by your projector to the underlying benqprojector library. Instructions are on that page

done

from homeassistant-benqprojector.

rrooggiieerr avatar rrooggiieerr commented on July 17, 2024

I just released a new version, let me know if it solves your problems

from homeassistant-benqprojector.

LaneaLucy avatar LaneaLucy commented on July 17, 2024

Command macaddr=? not supported
Unexpected response: b'\r\n'
Command *ltim2=?# unsupported item

That's are the error's the integration still throws

from homeassistant-benqprojector.

rrooggiieerr avatar rrooggiieerr commented on July 17, 2024

Ok, could be that macaddr and ltim2 is indeed not supported by your projector because it doesn't have a network connection and doesn't contains a second light. But the rest of the integration is working for you? You can control the projector from within HA?

from homeassistant-benqprojector.

LaneaLucy avatar LaneaLucy commented on July 17, 2024

Yes, I already could with master before.
But the errors are filling my logs full.
When switched on even more:

Command *pow=?# blocked item
Command *pp=?# blocked item
Command *ltim=?# blocked item
Command *ltim2=?# blocked item
Command *color=?# blocked item

Command *keyst=?# unsupported item
Command *ltim2=?# unsupported item
Command *autopower=?# unsupported item
Command *standbynet=?# unsupported item
Command *standbymic=?# unsupported item

from homeassistant-benqprojector.

LaneaLucy avatar LaneaLucy commented on July 17, 2024

Maybe you could first ignore \r\n response and then make a function that remembers what is unsupported

from homeassistant-benqprojector.

LaneaLucy avatar LaneaLucy commented on July 17, 2024

And make all this errors warnings instead

from homeassistant-benqprojector.

rrooggiieerr avatar rrooggiieerr commented on July 17, 2024

Well, actually you can submit which commands are supported by your projector to the underlying benqprojector library. Instructions are on that page

from homeassistant-benqprojector.

rrooggiieerr avatar rrooggiieerr commented on July 17, 2024

You can also disable the corresponding entities in HA and the messages for those unsupported commands should disappear.

from homeassistant-benqprojector.

rrooggiieerr avatar rrooggiieerr commented on July 17, 2024

I'm guessing the integration now works for you? So I'm closing this issue

from homeassistant-benqprojector.

LaneaLucy avatar LaneaLucy commented on July 17, 2024

Today I found out, that video source drop-down is missing. And other settings the benq supports are visible in benqprojector python library but not in the ha integration. And when I try to change for example contrast or brightness, everything gets unavailable for around 15-30 seconds.

Also:
Command *color=?# blocked item

Too busy to send audiosour=?
Too busy to send appmod=?
Too busy to send ct=?
Too busy to send asp=?
Too busy to send lampm=?
(Never tried to set them)

Unknown power status: None

Unexpected response format, response: *o=# *vol=10#
Unexpected response format, response: *lan=# *blank=off#
Unexpected response format, response: *audoor?
Unexpected response format, response: c#
Unexpected response format, response: *oor?

Unexpected response: b'*coo=\r\n'
Unexpected response: b'cn?\r\n'
Unexpected response: b'>\x00'
Unexpected response: b'*SAP1#\n'
Unexpected response: b'Illegal format\r\n'

from homeassistant-benqprojector.

rrooggiieerr avatar rrooggiieerr commented on July 17, 2024

I also faced some issues with my own projector. There happened to be an error in the library which I now fixed and the new release seems to work fine for me. Give it a try

from homeassistant-benqprojector.

LaneaLucy avatar LaneaLucy commented on July 17, 2024

Unexpected response: b'>\x00'

11 occurrences

Command *pow=?# blocked item
Command *pp=?# blocked item
Command *ltim=?# blocked item

48 occurrences

Unexpected error fetching custom_components.benqprojector data: '<=' not supported between instances of 'float' and 'NoneType'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 300, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/benqprojector/init.py", line 211, in _async_update_data
if not await self.hass.async_add_executor_job(self.projector.update_power):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/benqprojector/benqprojector.py", line 844, in update_power
and (time.time() - self._power_timestamp) <= self._poweron_time
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: '<=' not supported between instances of 'float' and 'NoneType'

And everything just from switching on.
And after switching on, everything got unavailable....

from homeassistant-benqprojector.

LaneaLucy avatar LaneaLucy commented on July 17, 2024

After re adding the integration, I can at least use it to control again, but there are still all the settings missing like video source....

from homeassistant-benqprojector.

rrooggiieerr avatar rrooggiieerr commented on July 17, 2024

I don't have the model you have, so can't do any testing since it works for me. I think you have to do a bit more research yourself and try the benqprojector library to see what's going on with your projector

from homeassistant-benqprojector.

LaneaLucy avatar LaneaLucy commented on July 17, 2024

The library sees everything but the ha integration don't show everything. At least for the options....
The errors I need to figure later, but right now, after the last release, where there is a profile now for my device, the ha integration don't show options anymore, that the beamer supports like selecting video source or enable/disable auto video source switching

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.