47eee0291f
revert Clean main branch
28 lines
1.3 KiB
YAML
28 lines
1.3 KiB
YAML
add_sensors:
|
|
|
|
template:
|
|
|
|
########################
|
|
#room
|
|
|
|
- sensor:
|
|
- default_entity_id: sensor.all_motion
|
|
name: Движение в квартире
|
|
state: '{{ (is_state(''sensor.0xa4c13834741ffdf4_presence_state'', ''presence'')
|
|
or is_state(''sensor.0xa4c1387cda74958b_presence_state'', ''presence'') or is_state(''binary_sensor.0x00158d000707efdf_motion'',
|
|
''on'') or is_state(''sensor.room_motion'', ''True''))}}'
|
|
|
|
|
|
- default_entity_id: sensor.room_motion
|
|
name: Движение в комнате
|
|
state: '{{ (is_state(''binary_sensor.54ef44e32e91_motion'', ''on'') or is_state(''binary_sensor.54ef44e327ba_motion'',
|
|
''on'') or is_state(''binary_sensor.54ef44e45e59_motion'', ''on''))}}'
|
|
|
|
|
|
- default_entity_id: sensor.where_people
|
|
name: Пристуствие людей в квартире
|
|
state: '{{ is_state(''device_tracker.google_maps_108918666344169166438'', ''home'')
|
|
or is_state(''device_tracker.google_maps_118311730364158481019'', ''home'')}}'
|
|
|
|
|
|
|