iloveicedgreentea / jvc_projector_python

Python library to control JVC projectors
MIT License
9 stars 2 forks source link

Add get source status command #22

Closed jkeljo closed 1 year ago

jkeljo commented 1 year ago

I'm working to get the jvc_homeassistant custom integration set up with my NX5. One of the issues I see is that when the projector is on and there's no input, the get_hdr_data command fails and goes into lengthy retries, which causes HA to take a long time to complete a state update.

This PR adds an API to JVCProjector that queries the source status. I hope to use that from another PR in jvc_homeassistant to check for a signal before calling get_hdr_data.

I tested this API with my NX5.

iloveicedgreentea commented 1 year ago

thanks for these I will test them out and let you know