Moar Home Automation

cat .homeassistant/configuration.yaml

[sourcecode]
group:
den_lights:
name: "Den Lights"
entities:
– light.hue_color_lamp_16
– light.hue_color_lamp_18
– light.hue_color_lamp_22

automation:
– alias: Handle Back Door Open
trigger:
platform: state
entity_id: binary_sensor.aeotec_zw112_door_window_sensor_6_sensor_2
to: ‘on’
action:
– service: light.turn_off
entity_id: group.den_lights
data:
transition: 3
– service: zwave.set_config_parameter
data:
node_id: 12
parameter: 40
value: "Fade out and fade in (Red)"
– alias: Handle Back Door Open Alarm Reset
trigger:
platform: state
entity_id: binary_sensor.aeotec_zw112_door_window_sensor_6_sensor_2
to: ‘off’
for:
seconds: 5
action:
– service: zwave.set_config_parameter
data:
node_id: 12
parameter: 40
value: "Fade out and fade in (Green)"
[/sourcecode]

Leave a Reply