-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect "powerStatus" values when switching with the IR remote control #2
Comments
Maybe a simple way would be to add another function "getPowerStatus" for each device to request the "Device Power Status" (8F) and update "powerStatus". As follows, for example:
|
@Markkuuss
The current cec parsing code needs to be reworked to allow simpler adding of new traffic commands to monitor. I will try to improve it when I will have access to RPi and see what can be done about the remote power issue. |
Any news on that subject yet? Do you already have access to RPi, @Rafostar ? |
@Markkuuss |
Yeah, I can see that. :-) And the change to the readline module doesn't work for me either, because probably |
Very nice work. I use the module cec-web-api and it works really great. Only when I switch my devices on/off with the remote control, the powerStatus value is not correct.
My problems:
Regarding 1:
Here is the debug output when switching on the soundbar:
If a device sends the broadcast with the physical address, would it be possible to additionally check the "powerStatus" and set it correctly?
Here is the debug output when switching off the soundbar:
I think this would be relatively easy to solve by evaluating the traffic. The broadcast command "...f:72:00" seem not to be evaluated at the moment. If an audio device sets the System Audio Mode to Off, the "powerStatus" is also off.
Regarding 2:
Here is the debug output when switching on the TV:
Similar to the soundbar, the TV probably doesn't report power status automatically when it is turned on with the remote control. It only reports "04:90:02" once, but no "04:90:00" afterwards. This would probably have to be actively requested.
Possible solution
The simplest solution to always guarantee an up-to-date "powerStatus" for all devices would probably be the active cyclic request of the "Device Power Status" (8F) across all devices. Would it be possible to run a thread that queries the "Device Power Status" e.g. every 5 seconds?
The text was updated successfully, but these errors were encountered: