Correct all Breaking Changes in .61 regarding sensors.

This commit is contained in:
ccostan 2018-01-18 15:14:25 -05:00
parent 4be4cc5d30
commit 2bfd588d9c
5 changed files with 5 additions and 8 deletions

View File

@ -6,7 +6,7 @@
trigger:
- platform: state
entity_id: binary_sensor.downstairs_away_mode
to: 'on'
to: 'True'
- platform: state
entity_id: group.family
to: 'not_home'

View File

@ -8,7 +8,7 @@
- platform: state
entity_id:
- binary_sensor.downstairs_away_mode
to: 'off'
to: 'False'
- platform: state
entity_id: group.family
to: home

View File

@ -6,7 +6,7 @@
event_type: upstairs_light_on
- platform: state
entity_id: binary_sensor.upstairs_away_mode
to: 'off'
to: 'False'
condition:
- condition: state
@ -25,7 +25,7 @@
event_type: upstairs_light_off
- platform: state
entity_id: binary_sensor.upstairs_away_mode
to: 'on'
to: 'True'
action:
service: light.turn_off

View File

@ -50,7 +50,6 @@ sensor:
- platform: template
sensors:
skybell:
entity_id: binary_sensor.skybell_stone_door_button
value_template: "{{ 'Online' if is_state_attr('binary_sensor.skybell_stone_door_button', 'status', 'up') else 'Offline' }}"
switch:

View File

@ -17,11 +17,9 @@
- platform: template
sensors:
upstairs_away_mode:
entity_id: climate.upstairs
value_template: "{{ is_state_attr('climate.upstairs', 'away_mode', 'on') }}"
- platform: template
sensors:
downstairs_away_mode:
entity_id: climate.downstairs
value_template: "{{ is_state_attr('climate.downstairs', 'away_mode', 'on') }}"