core: Broadlink SP2: Failed to update state: Command not supported
The problem
Broadlink integration spams the log with “Failed to update state: Command not supported”
Environment
- Home Assistant Core release with the issue: 0.110.3
- Last working Home Assistant Core release (if known): 0.109.6
- Operating environment (Home Assistant/Supervised/Docker/venv): Home Assistant
- Integration causing this issue: broadlink
- Link to integration documentation on our website: broadlink
Problem-relevant configuration.yaml
switch:
- platform: broadlink
host: 192.168.XXX.XXX
mac: 'C8:F7:42:XX:XX:XX'
friendly_name: SwitchOne
type: sp2
- platform: broadlink
host: 192.168.XXX.YYY
mac: '34:EA:34:YY:YY:YY'
friendly_name: SwitchTwo
type: sp2
Traceback/Error logs
2020-05-26 19:21:53 ERROR (MainThread) [homeassistant.components.broadlink.switch] Failed to update state: Command not supported
2020-05-26 19:22:24 ERROR (MainThread) [homeassistant.components.broadlink.switch] Failed to update state: Command not supported
2020-05-26 19:22:55 ERROR (MainThread) [homeassistant.components.broadlink.switch] Failed to update state: Command not supported
2020-05-26 19:23:26 ERROR (MainThread) [homeassistant.components.broadlink.switch] Failed to update state: Command not supported
2020-05-26 19:23:57 ERROR (MainThread) [homeassistant.components.broadlink.switch] Failed to update state: Command not supported
2020-05-26 19:24:28 ERROR (MainThread) [homeassistant.components.broadlink.switch] Failed to update state: Command not supported
Additional information
I think the problem is this line in switch.py. I have multiple SP2 switches and I noticed that one of them does not report power consumption.


About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 21 (9 by maintainers)
Thanks! I already had the SSH add-on setup so running the tests was easier than expected.
Here is the log before the patch:
There’s no relevant log after the patch, so I think it works OK.
It doesn’t report power:
But the switch responds normally: