mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-13 13:29:12 +00:00
More Door Work. #112
This commit is contained in:
parent
24e50fc8af
commit
c37d968a1e
@ -7,18 +7,22 @@
|
|||||||
- platform: state
|
- platform: state
|
||||||
entity_id:
|
entity_id:
|
||||||
- sensor.backdoor
|
- sensor.backdoor
|
||||||
|
- sensor.sliding_door
|
||||||
to: 'Opened'
|
to: 'Opened'
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: input_boolean.turn_on
|
- service: input_boolean.turn_on
|
||||||
entity_id: input_boolean.alert_mode
|
entity_id: input_boolean.alert_mode
|
||||||
|
|
||||||
- service: script.Voice_notify
|
|
||||||
data_template:
|
|
||||||
DoorOpened: "The {{ trigger.entity_id.split('.')[1]|replace('_', ' ') }} has been {{ (trigger.to_state.state)|replace('_', ' ') }}."
|
|
||||||
|
|
||||||
- service: script.ifttt_notify
|
- service: script.ifttt_notify
|
||||||
data_template:
|
data_template:
|
||||||
value1: "The {{ trigger.entity_id.split('.')[1]|replace('_', ' ') }} has been {{ (trigger.to_state.state)|replace('_', ' ') }}."
|
value1: "The {{ trigger.entity_id.split('.')[1]|replace('_', ' ') }} has been {{ (trigger.to_state.state)|replace('_', ' ') }}."
|
||||||
value2: ''
|
value2: ''
|
||||||
value3: ''
|
value3: ''
|
||||||
|
|
||||||
|
- wait_template: "{{ states.media_player.livingroomCC.states != 'playing' }}"
|
||||||
|
timeout: 00:00:30
|
||||||
|
|
||||||
|
- service: script.Voice_notify
|
||||||
|
data_template:
|
||||||
|
DoorOpened: "The {{ trigger.entity_id.split('.')[1]|replace('_', ' ') }} has been {{ (trigger.to_state.state)|replace('_', ' ') }}."
|
||||||
|
@ -3,9 +3,6 @@ binary_sensor.__sensor_4_0:
|
|||||||
emulated_hue: False
|
emulated_hue: False
|
||||||
hidden: True
|
hidden: True
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
binary_sensor.__sensor_6_0:
|
binary_sensor.__sensor_6_0:
|
||||||
friendly_name: ' Sensor'
|
friendly_name: ' Sensor'
|
||||||
emulated_hue: False
|
emulated_hue: False
|
||||||
|
@ -3,5 +3,5 @@ doors:
|
|||||||
entities:
|
entities:
|
||||||
- sensor.backdoor
|
- sensor.backdoor
|
||||||
- sensor.linen_door
|
- sensor.linen_door
|
||||||
- binary_sensor.sliding_door_opened
|
- sensor.front_door
|
||||||
- binary_sensor.front_door_opened
|
- sensor.sliding_door
|
||||||
|
@ -23,7 +23,6 @@ dog_bark:
|
|||||||
state: 'on'
|
state: 'on'
|
||||||
- service: switch.turn_on
|
- service: switch.turn_on
|
||||||
entity_id: switch.living_room_amp
|
entity_id: switch.living_room_amp
|
||||||
#- delay: '00:00:05'
|
|
||||||
|
|
||||||
- service: media_player.turn_on
|
- service: media_player.turn_on
|
||||||
entity_id: media_player.livingroomCC
|
entity_id: media_player.livingroomCC
|
||||||
|
@ -116,3 +116,11 @@
|
|||||||
linen_door:
|
linen_door:
|
||||||
friendly_name: 'Linen Door'
|
friendly_name: 'Linen Door'
|
||||||
value_template: "{{ 'Opened' if is_state('binary_sensor.aeotec_dsb04100_doorwindow_sensor_sensor_4_0', 'on') else 'Closed' }}"
|
value_template: "{{ 'Opened' if is_state('binary_sensor.aeotec_dsb04100_doorwindow_sensor_sensor_4_0', 'on') else 'Closed' }}"
|
||||||
|
|
||||||
|
front_door:
|
||||||
|
friendly_name: 'Front Door'
|
||||||
|
value_template: "{{ 'Opened' if is_state('binary_sensor.front_door_opened', 'on') else 'Closed' }}"
|
||||||
|
|
||||||
|
sliding_door:
|
||||||
|
friendly_name: 'Sliding Door'
|
||||||
|
value_template: "{{ 'Opened' if is_state('binary_sensor.sliding_door_opened', 'on') else 'Closed' }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user