I am a brand new HA user, and Im having trouble understanding how to setup an automation.
I have configured a zwave network, as well as a Philips Hue bridge. Both are disovered as expected in HA. Now I want to configure a zwave switch to control a Hue light.
I have tried with the following automation, but if I have this in my configuration.yaml file, HA never starts.
As far as I can see, the yaml follows the same structure as the examples on the pages. The entity_id’s listed below are both copied from the HA interface.
automation:
- alias: "Control Hue"
trigger:
platform: state
entity_id: switch.logic_soft_zhc5010_wall_switch_switch_5_0_5
state: on
action:
service: light.turn_on
entity_id: light.stjerne
What am I doing wrong?
Any help getting my simple automation working is much appriciated