Hi all,
I’ve had an intermittent issue with HA occasionally not working with Broadlink SP3 minis.
I have 3 of these wifi switches set up, and generally speaking after a day or two, 1 of them will not respond when I try turn it off/on in HA.
I’ve had these in HA for probably 8 months, and it’s only the last 2-3 months I’ve begun to see this problem.
I’m not entirely sure what I’m supposed to do regarding enabling debug for broadlink, but I did try:
# Enable logging
logger:
default: info
logs:
homeassistant.components.switch.broadlink: debug
However I suspect this is wrong…Thoughts?
Regarding my actual config:
switch:
- platform: broadlink
host: 192.168.1.58
mac: '34:EA....'
friendly_name: "RM3 mini"
type: rm_mini
update_interval: 60
switches:
ac_daikin:
command_on: "JgBQAhANDw0PDRANEAsQAANCdDgQKRANDw0PDRApEA0QDA8NEA0QKRANDyoPKg8NECkQKRAqDyoQKRANEAwPKw8MEA0QDQ8MEA0QDQ8NDw0QDQ8NECkQDBApEA0QDQ8NDyoPKw8MEA0QDQ8MEA0QDQ8MEA0QDQ8NDw0QDQ8NEAwQDQ8NECkQKg8qEAwPKw8MECoPKhAABHp0OBApEA0QDQ8MECoPDRANEAwPDRApEA0QKRAqDw0PKg8rDyoPKg8qDw0QDRApEA0PDBANEA0PDQ8NEA0PDQ8NEA0PDRApEAwQDQ8NEA0PKg8NEA0PDRApECoPDBANECkQDRApEA0PKg8qDw0QDQ8NDw0QKRANDyoQKRANECkQDBApEAAEe3Q3ECoPDRANEAwPKw8MEA0QDQ8MECoPDRApECoPDRAqDyoQKRApECoPDBANECkQDQ8NDw0QDQ8NEAwQDQ8NEA0PDQ8NEA0QDA8NEA0QDA8NEA0PDQ8NEA0PKhANDwwQKRANEA0QKRApECkQDQ8qDw0QDQ8NEAwQDQ8NEA0PDQ8NEA0PDQ8NEA0QDA8qECkQDQ8NEA0PDQ8NEA0QDA8NEA0QDA8NEA0QDA8NEA0PDRAMEA0PDRAqDyoQDA8NEA0PDRAMEA0PDRANDw0PDRAqDyoQDBAMEA0PDRAMEA0PDRANDw0PDRANEAwPDRANEA0ODRANECkQDQ8MEA0QDQ8MECoPKhAMEA0QDQ8MEA0QDQ8MEA0QDQ8NDw0QDQ8NEAwQDQ8NECkQKg8qECkQKRAMECkQKRAADQUAAAAAAAAAAA=="
command_off: "JgBQAhANDw0PDRANEAsQAANCdDgQKRANDwwQDRApEA0QDA8NEA0QKRANDyoPKg8NECkQKRAqDyoQKRANDw0PKw4NEA0QDQ8MEA0QDQ8NDw0QDBANECkQDBApEA0QDQ8NDyoPKw4NEA0QDQ8MEA0QDQ8MEA0QDQ8NDw0QDBANEAwQDBANECkQKRAqDw0PKw4NECoPKhAABHp0OBApEA0QDQ8MECoPDRANEAsQDRApEA0QKRAqDw0PKg8rDyoPKg8qDw0QDQ8qEA0PDBANEAwQDQ8NEAwQDQ8NEAwQDRApEAwQDQ8NEA0PKg8NEAwQKg8qECkQDRALECoQDBAqDw0QKg8qDw0PDRANDw0PKg8rDyoPKg8NECkQDRApEAAEe3Q3ECoPDRAMDw4PKhAMDw4ODg8NDysPDRApECoQCxAqECkQKRApECoQDBANECkQDA8ODg4PDg4ODw0QDQ8MDw4PDg8NDg4PDg8NEAwPDg8NDw4ODg8NDw4OKw8NEAwPKw8NEAwQKRApECoPDRAqDw0QDQ4ODg4PDg8MDw4PDg8NDg4PDg8NDg4PDg8qECkQDQ8MDw4PDg8NDg4PDg8NDw0PDg8NDw4ODg8NDw4ODg4ODw4PDQ4rDyoQDQ8NDw4ODg8NDw4PDQ4ODw4PDQ4sDisPDQ8NDw4PDQ4ODw4PDQ4ODw4PDQ4ODw4PDQ8NDw4PDQ8ODisPDQ8ODg4PDQ8ODisPKhANDwwPDg8ODg4ODg8ODg4PDQ8NDw4PDg4NDw4PDg8MDysPKhApECkQKg8NECkQKg8ADQUAAAAAAAAAAA=="
- platform: broadlink
host: 192.168.1.32
mac: '34:EA:....'
friendly_name: "Matt's Desk Light"
type: sp3
update_interval: 60
- platform: broadlink
host: 192.168.1.26
mac: '34:EA:....'
type: sp3
friendly_name: "Matt's Bed Lamp"
update_interval: 60
- platform: broadlink
host: 192.168.1.25
mac: '34:EA:.....'
type: sp3
friendly_name: "Plug#3"
update_interval: 60
One key point: I can quite happily turn the problematic device off/on with the broadlink e-control app, so I do not see there being a connectivity issue here.
In terms of what I see from the logs:
2018-05-01 08:45:36 INFO (MainThread) [homeassistant.components.http.view] Serving /api/services/switch/turn_on to 127.0.0.1 (auth: True)
2018-05-01 08:45:36 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service=turn_on, service_data=entity_id=switch.plug3, service_call_id=1976190256-61, domain=switch>
2018-05-01 08:45:36 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=switch.plug3, old_state=<state switch.plug3=off; friendly_name=Matt-Fan @ 2018-05-01T20:43:32.180971+12:00>, new_state=<state switch.plug3=on; friendly_name=Matt-Fan @ 2018-05-01T20:45:36.289887+12:00>>
2018-05-01 08:45:36 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=switch.plug3, old_state=<state switch.plug3=on; friendly_name=Matt-Fan @ 2018-05-01T20:45:36.289887+12:00>, new_state=<state switch.plug3=off; friendly_name=Matt-Fan @ 2018-05-01T20:45:36.366262+12:00>>
2018-05-01 08:45:36 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=1976190256-61>
2018-05-01 08:45:38 INFO (Thread-14) [homeassistant.components.switch.command_line] Running state command: /config/tvstate.sh
2018-05-01 08:45:55 INFO (MainThread) [homeassistant.components.http.view] Serving /api/services/switch/turn_on to 127.0.0.1 (auth: True)
2018-05-01 08:45:55 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service=turn_on, service_data=entity_id=switch.plug3, service_call_id=1976190256-62, domain=switch>
2018-05-01 08:45:55 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=switch.plug3, old_state=<state switch.plug3=off; friendly_name=Matt-Fan @ 2018-05-01T20:45:36.366262+12:00>, new_state=<state switch.plug3=on; friendly_name=Matt-Fan @ 2018-05-01T20:45:55.100647+12:00>>
2018-05-01 08:45:55 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=switch.plug3, old_state=<state switch.plug3=on; friendly_name=Matt-Fan @ 2018-05-01T20:45:55.100647+12:00>, new_state=<state switch.plug3=off; friendly_name=Matt-Fan @ 2018-05-01T20:45:55.221332+12:00>>
2018-05-01 08:45:55 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=1976190256-62>
2018-05-01 08:46:19 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.plug3 is taking over 10 seconds
2018-05-01 08:46:19 INFO (MainThread) [homeassistant.core] Bus:Handling <Event system_log_event[L]: exception=, message=Update of switch.plug3 is taking over 10 seconds, timestamp=1525164379.1669993, source=core.py, level=WARNING>
Any help appreciated.
Thanks,
Matt