2016-12-06 19:44:55 +00:00
|
|
|
##############################################################
|
2016-11-21 22:41:56 +00:00
|
|
|
- alias: Hallway ZWave Enerwave Door Sensors Open
|
|
|
|
hide_entity: True
|
|
|
|
trigger:
|
2016-12-06 19:44:55 +00:00
|
|
|
- platform: event
|
|
|
|
event_type: zwave.node_event
|
|
|
|
event_data:
|
|
|
|
object_id: enerwave_unknown_type0601_id0903_2
|
|
|
|
basic_level: 255
|
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.aeotec_dsb04100_doorwindow_sensor_sensor_4_0
|
|
|
|
state: 'on'
|
|
|
|
|
|
|
|
condition:
|
|
|
|
condition: or
|
|
|
|
conditions:
|
|
|
|
- condition: sun
|
|
|
|
after: sunset
|
|
|
|
after_offset: '-03:00:00'
|
|
|
|
- condition: numeric_state
|
|
|
|
entity_id: sensor.dark_sky_cloud_coverage
|
2016-12-06 19:47:26 +00:00
|
|
|
above: 50
|
2016-11-21 22:41:56 +00:00
|
|
|
|
|
|
|
action:
|
|
|
|
- service: light.turn_on
|
|
|
|
entity_id:
|
|
|
|
- light.hallway
|
|
|
|
- light.k4
|
|
|
|
- delay: 00:20:00
|
|
|
|
- service: light.turn_off
|
|
|
|
entity_id: light.hallway
|
2016-12-06 19:44:55 +00:00
|
|
|
|
|
|
|
##############################################################
|
2016-11-21 22:41:56 +00:00
|
|
|
- alias: ZWave Enerwave Door Sensors Closed
|
|
|
|
hide_entity: True
|
|
|
|
trigger:
|
2016-12-06 19:44:55 +00:00
|
|
|
- platform: event
|
|
|
|
event_type: zwave.node_event
|
|
|
|
event_data:
|
|
|
|
object_id: enerwave_unknown_type0601_id0903_2
|
|
|
|
basic_level: 0
|
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.aeotec_dsb04100_doorwindow_sensor_sensor_4_0
|
|
|
|
state: 'off'
|
|
|
|
|
2016-11-21 22:41:56 +00:00
|
|
|
action:
|
|
|
|
service: light.turn_off
|
|
|
|
entity_id: light.hallway
|
|
|
|
|
2016-12-06 19:44:55 +00:00
|
|
|
##############################################################
|
2016-11-21 22:41:56 +00:00
|
|
|
- alias: Shutdown Helper light
|
|
|
|
hide_entity: True
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: light.k4
|
2016-11-21 23:05:37 +00:00
|
|
|
state: 'on'
|
2016-11-21 22:41:56 +00:00
|
|
|
for: '00:20:00'
|
|
|
|
- platform: event
|
|
|
|
event_type: zwave.node_event
|
|
|
|
event_data:
|
|
|
|
object_id: enerwave_unknown_type0601_id0903_2
|
|
|
|
basic_level: 0
|
2016-12-06 19:44:55 +00:00
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.aeotec_dsb04100_doorwindow_sensor_sensor_4_0
|
|
|
|
state: 'off'
|
2016-11-21 22:41:56 +00:00
|
|
|
|
|
|
|
condition:
|
|
|
|
condition: state
|
|
|
|
entity_id: light.k1
|
2016-11-21 23:05:37 +00:00
|
|
|
state: 'off'
|
2016-11-21 22:41:56 +00:00
|
|
|
|
|
|
|
action:
|
|
|
|
- service: light.turn_off
|
|
|
|
entity_id: light.k4
|