In my logs i’ve got some error messages:
Error when calling <function YeelightLight.set_default at 0x6eeabb70>: {'code': -5000, 'message': 'general error'}
20:24 components/light/yeelight.py (ERROR)
Unable to find service binary_sensor/turn_off
20:24 core.py (WARNING)
Unable to find service binary_sensor/turn_off
20:24 core.py (WARNING)
Unable to find service binary_sensor/turn_off
20:24 core.py (WARNING)
Why?
It happens only when I press xiaomi switches to turn on Xiaomi bedside lamp.
- alias: Wł lampkę w sypialni
trigger:
- platform: event
event_type: click
event_data:
entity_id: binary_sensor.wall_switch_158d00012a3462
click_type: single
- platform: event
event_type: click
event_data:
entity_id: binary_sensor.switch_158d0001dc44c4
click_type: single
- platform: event
event_type: click
event_data:
entity_id: binary_sensor.switch_158d0001dc4519
click_type: single
condition:
condition: state
entity_id: light.yeelight_bedside_7811dc90cd74
state: 'off'
action:
- service: homeassistant.turn_off
entity_id: binary_sensor.wall_switch_158d00012a3462
- service: homeassistant.turn_off
entity_id: binary_sensor.switch_158d0001dc44c4
- service: homeassistant.turn_off
entity_id: binary_sensor.switch_158d0001dc451
- service: light.turn_on
entity_id: light.yeelight_bedside_7811dc90cd74
data:
brightness: 255
rgb_color: [255, 205, 166]
- alias: Wył lampkę w sypialni
trigger:
- platform: event
event_type: click
event_data:
entity_id: binary_sensor.wall_switch_158d00012a3462
click_type: single
- platform: event
event_type: click
event_data:
entity_id: binary_sensor.switch_158d0001dc44c4
click_type: single
- platform: event
event_type: click
event_data:
entity_id: binary_sensor.switch_158d0001dc4519
click_type: single
condition:
condition: state
entity_id: light.yeelight_bedside_7811dc90cd74
state: 'on'
action:
- service: homeassistant.turn_off
entity_id: binary_sensor.wall_switch_158d00012a3462
- service: homeassistant.turn_off
entity_id: binary_sensor.switch_158d0001dc44c4
- service: homeassistant.turn_off
entity_id: binary_sensor.switch_158d0001dc451
- service: light.turn_off
entity_id: light.yeelight_bedside_7811dc90cd74