1
0
Fork 0

Home Assistant Git Exporter

main
31c0fe9c6dbd74bcdde92e1d2aaa03e1d272f75f 2022-05-20 08:25:54 +10:00
parent 8d4f7d4445
commit f9fb460fb6
2 changed files with 25 additions and 3 deletions

View File

@ -28,7 +28,7 @@ automation:
area_id: bo_s_office area_id: bo_s_office
- service: switch.turn_on - service: switch.turn_on
target: target:
entity_id: switch.bo_s_office_plug area_id: bo_s_office
- id: 2804db52f34458004191f589ed3453dd6f9e1f45 - id: 2804db52f34458004191f589ed3453dd6f9e1f45
alias: Warm up Bo's office heater alias: Warm up Bo's office heater

View File

@ -114,11 +114,30 @@ template:
- unknown - unknown
for: for:
seconds: 5 seconds: 5
- platform: state
entity_id:
- binary_sensor.bo_s_office_pir_2_occupancy
- binary_sensor.bo_s_office_motion
- binary_sensor.ri_s_office_occupancy
to: "on"
- platform: state
entity_id:
- binary_sensor.bo_s_office_pir_2_occupancy
- binary_sensor.bo_s_office_motion
- binary_sensor.ri_s_office_occupancy
to: "off"
for:
minutes: 1
binary_sensor: binary_sensor:
- unique_id: bos_office_is_occupied - unique_id: bos_office_is_occupied
name: Bo's Office Is Occupied name: Bo's Office Is Occupied
state: | state: |
{{ is_state('sensor.template_room_bo_phone', 'bo_s_office') or is_state('sensor.template_room_ri_phone', 'bo_s_office') }} {{
is_state('sensor.template_room_bo_phone', 'bo_s_office')
or is_state('sensor.template_room_ri_phone', 'bo_s_office')
or is_state('binary_sensor.bo_s_office_pir_2_occupancy', 'on')
or is_state('binary_sensor.bo_s_office_motion', 'on')
}}
icon: | icon: |
{% if is_state("binary_sensor.bo_s_office_is_occupied", "on") %} {% if is_state("binary_sensor.bo_s_office_is_occupied", "on") %}
mdi:account mdi:account
@ -130,7 +149,10 @@ template:
- unique_id: ris_office_is_occupied - unique_id: ris_office_is_occupied
name: Ri's Office Is Occupied name: Ri's Office Is Occupied
state: | state: |
{{ is_state('sensor.template_room_bo_phone', 'ri_s_office') or is_state('sensor.template_room_ri_phone', 'ri_s_office') }} {{ is_state('sensor.template_room_bo_phone', 'ri_s_office')
or is_state('sensor.template_room_ri_phone', 'ri_s_office')
or is_state('binary_sensor.ri_s_office_occupancy', 'on')
}}
icon: | icon: |
{% if is_state("binary_sensor.ri_s_office_is_occupied", "on") %} {% if is_state("binary_sensor.ri_s_office_is_occupied", "on") %}
mdi:account mdi:account