Hi all,
I’m new on HA and i’m trying to configure some automation with my yeelight, i did this two, the first is about turning on light in the morning, the second is about turning light at sunset:
automation:
alias: "Accendi luce soggiorno alle 6:30am"
trigger:
- platform: time
at: 06:30:00
action:
- service: light.yeelight_set_mode
automation 2:
alias: "Accendi luce soggiorno al tramonto"
trigger:
- platform: time
at: '18:00:00'
action:
- service: light.yeelight_set_mode
both automation are not working, and i get this log in home-assistant.log:
2018-11-27 18:00:00 ERROR (MainThread) [homeassistant.core] Invalid service data for light.yeelight_set_mode: required key not provided @ data[‘mode’]. Got None
2018-11-28 06:30:00 ERROR (MainThread) [homeassistant.core] Invalid service data for light.yeelight_set_mode: required key not provided @ data[‘mode’]. Got None
i can’t understand what is missing, can someone help me?
EDIT: sorry, code formatted correctly
Thank you