Moar Home Automation

cat .homeassistant/configuration.yaml

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)"

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s