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: trigger:
- platform: state - platform: state
entity_id: binary_sensor.downstairs_away_mode entity_id: binary_sensor.downstairs_away_mode
to: 'on' to: 'True'
- platform: state - platform: state
entity_id: group.family entity_id: group.family
to: 'not_home' to: 'not_home'

View File

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

View File

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

View File

@ -9,7 +9,7 @@ homeassistant:
customize_glob: customize_glob:
"sensor.skybell_*": "sensor.skybell_*":
icon: mdi:camera-front icon: mdi:camera-front
hidden: False hidden: False
homebridge_hidden: True homebridge_hidden: True
@ -50,7 +50,6 @@ sensor:
- platform: template - platform: template
sensors: sensors:
skybell: 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' }}" value_template: "{{ 'Online' if is_state_attr('binary_sensor.skybell_stone_door_button', 'status', 'up') else 'Offline' }}"
switch: switch:

View File

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