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: action:
- service: switch.turn_on - service: switch.turn_on
entity_id: switch.foyer_outlet 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' - alias: 'Sunset Stuff off'
trigger: trigger:
@ -24,4 +29,6 @@
action: action:
- service: switch.turn_off - service: switch.turn_off
entity_id: switch.foyer_outlet entity_id: switch.foyer_outlet
- service: light.turn_off
entity_id: light.outdoor_foyer

View File

@ -10,6 +10,10 @@
after: '08:00:00' after: '08:00:00'
- condition: time - condition: time
before: '20:00:00' 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 - condition: template
value_template: "{{ trigger.event.data.entity_id.split('.')[0] == 'light' }}" value_template: "{{ trigger.event.data.entity_id.split('.')[0] == 'light' }}"
- condition: template - condition: template

View File

@ -17,6 +17,10 @@
- condition: state - condition: state
entity_id: group.family entity_id: group.family
state: home 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 - condition: template
value_template: "{{ trigger.event.data.entity_id.split('.')[0] == 'light' }}" value_template: "{{ trigger.event.data.entity_id.split('.')[0] == 'light' }}"
- condition: template - condition: template

View File

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