HI
I am trying to workout how to get my Yeelight to work with my xiaomi switch
I tried the following code into the automatyion.yaml but it just comes back with an error
id: 1001
alias: Turn on lights
trigger:
platform: event
event_type: click
event_data:
entity_id: binary_sensor.switch_158d00016d77d9
click_type: single
action:
lid config for [automation]: expected dict for dictionary value @ data[‘action’][0][‘data’]. Got None
expected dict for dictionary value @ data[‘trigger’][0][‘event_data’]. Got None
expected str for dictionary value @ data[‘id’]. Got None
extra keys not allowed @ data[‘trigger’][0][‘click_type’]. Got None
extra keys not allowed @ data[‘trigger’][0][‘entity_id’]. Got None. (See /config/configuration.yaml, line 146). Please check the docs at https://home-assistant.io/components/automation/