mirror of
https://github.com/Anonym-tsk/smart-domofon.git
synced 2025-12-06 11:36:57 +03:00
Accept/Reject call switches
This commit is contained in:
@@ -481,6 +481,30 @@ switch:
|
|||||||
- output.turn_off: relay_mute
|
- output.turn_off: relay_mute
|
||||||
- script.execute: state_no_call
|
- script.execute: state_no_call
|
||||||
|
|
||||||
|
# Accept call
|
||||||
|
- platform: template
|
||||||
|
name: "Domofon accept call"
|
||||||
|
icon: "mdi:door-open"
|
||||||
|
lambda: "return false;"
|
||||||
|
turn_on_action:
|
||||||
|
if:
|
||||||
|
condition:
|
||||||
|
binary_sensor.is_on: incoming_call
|
||||||
|
then:
|
||||||
|
script.execute: call_accept
|
||||||
|
|
||||||
|
# Reject call
|
||||||
|
- platform: template
|
||||||
|
name: "Domofon reject call"
|
||||||
|
icon: "mdi:door-closed-lock"
|
||||||
|
lambda: "return false;"
|
||||||
|
turn_on_action:
|
||||||
|
if:
|
||||||
|
condition:
|
||||||
|
binary_sensor.is_on: incoming_call
|
||||||
|
then:
|
||||||
|
script.execute: call_reject
|
||||||
|
|
||||||
# RGB Led (not exported to Home Assistant)
|
# RGB Led (not exported to Home Assistant)
|
||||||
light:
|
light:
|
||||||
- platform: rgb
|
- platform: rgb
|
||||||
|
|||||||
Reference in New Issue
Block a user