Permalink
Branch: master
Find file Copy path
f8fb94c Mar 3, 2017
0 contributors

Users who have contributed to this file

46 lines (42 sloc) 1.5 KB
- platform: template
switches:
garage_exterior_lights:
friendly_name: 'Outside Lights'
value_template: '{{ is_state("light.bulb_garage_right_level_29_0", "on") }}'
turn_on:
- service: light.turn_on
entity_id: light.bulb_garage_right_level_29_0
- service: light.turn_on
entity_id: light.bulb_garage_left_level_30_0
turn_off:
- service: light.turn_off
entity_id: light.bulb_garage_right_level_29_0
- service: light.turn_off
entity_id: light.bulb_garage_left_level_30_0
livingroom_lamp:
friendly_name: 'Lamp'
value_template: '{{ is_state("light.bulb_livingroom_level_36_0", "on") }}'
turn_on:
service: light.turn_on
entity_id: light.bulb_livingroom_level_36_0
turn_off:
service: light.turn_off
entity_id: light.bulb_livingroom_level_36_0
office_lamp:
friendly_name: 'Lamp'
value_template: '{{ is_state("light.bulb_office_level_37_0", "on") }}'
turn_on:
service: light.turn_on
entity_id: light.bulb_office_level_37_0
turn_off:
service: light.turn_off
entity_id: light.bulb_office_level_37_0
scene_bedtime:
friendly_name: 'Scene Bedtime Switch'
value_template: ' {{ is_state("light.bulb_office_level_37_0", "off") }}'
turn_on:
service: scene.turn_on
entity_id: scene.bedtime
turn_off:
service: light.turn_off
entity_id: light.bulb_office_level_37_0