Fine tunr the templates a bit.

This commit is contained in:
CCOSTAN 2016-11-07 22:57:26 +00:00
parent 89c5b91509
commit a493dd774d
5 changed files with 18 additions and 3 deletions

View File

@ -1 +1 @@
0.32.0
0.32.2

View File

@ -12,6 +12,11 @@
action:
- service: switch.turn_on
entity_id: switch.foyer_outlet
- service: light.turn_on
data:
entity_id: light.outdoor_foyer
brightness: 200
rgb_color: [61,178,112]
- alias: 'Sunset Stuff off'
trigger:
@ -24,4 +29,6 @@
action:
- service: switch.turn_off
entity_id: switch.foyer_outlet
- service: light.turn_off
entity_id: light.outdoor_foyer

View File

@ -10,6 +10,10 @@
after: '08:00:00'
- condition: time
before: '20:00:00'
- condition: template
value_template: "{{ trigger.event.data.entity_id.split('.')[1] != 'tv_light' }}"
- condition: template
value_template: "{{ trigger.event.data.entity_id.split('.')[1] != 'tv_stand_light' }}"
- condition: template
value_template: "{{ trigger.event.data.entity_id.split('.')[0] == 'light' }}"
- condition: template

View File

@ -17,6 +17,10 @@
- condition: state
entity_id: group.family
state: home
- condition: template
value_template: "{{ trigger.event.data.entity_id.split('.')[1] != 'tv_light' }}"
- condition: template
value_template: "{{ trigger.event.data.entity_id.split('.')[1] != 'tv_stand_light' }}"
- condition: template
value_template: "{{ trigger.event.data.entity_id.split('.')[0] == 'light' }}"
- condition: template

View File

@ -24,8 +24,8 @@ Living Room lights:
Living Room Accents:
entities:
- light.couch_1
- light.couch_2
- light.couch_tv
- light.tv_light
- light.tv_stand
Dinette lights:
entities: