-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinary_sensors.yaml
22 lines (22 loc) · 1007 Bytes
/
binary_sensors.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
- platform: template
sensors:
sonos_night_mode:
friendly_name: 'Status'
icon_template: mdi:check-circle-outline
value_template: >
{{ state_attr('media_player.livingroom_sonos','night_sound') }}
relaxed_mode:
value_template: >
{{ states('sensor.time') > states('input_datetime.relaxed_mode') or now() < today_at("06:00") }}
livingroom_sonos_tv_active:
value_template: >
{{ is_state_attr('media_player.livingroom_sonos','source','TV') }}
kitchen_sonos_is_grouped:
value_template: >
{{ not is_state_attr('media_player.kitchen_sonos','group_members',['media_player.kitchen_sonos']) }}
livingroom_sonos_is_grouped:
value_template: >
{{ not is_state_attr('media_player.livingroom_sonos','group_members',['media_player.livingroom_sonos']) }}
childroom_sonos_is_grouped:
value_template: >
{{ not is_state_attr('media_player.childroom_sonos','group_members',['media_player.childroom_sonos']) }}