mirror of
https://github.com/Anonym-tsk/smart-domofon.git
synced 2026-01-02 06:39:13 +03:00
30 lines
669 B
YAML
30 lines
669 B
YAML
button:
|
|
- platform: restart
|
|
name: "${board_name} Restart"
|
|
|
|
# Accept call
|
|
- platform: template
|
|
name: "${board_name} accept call"
|
|
icon: "mdi:door-open"
|
|
on_press:
|
|
if:
|
|
condition:
|
|
binary_sensor.is_on: incoming_call
|
|
then:
|
|
script.execute: call_accept
|
|
else:
|
|
logger.log: "No incoming call"
|
|
|
|
# Reject call
|
|
- platform: template
|
|
name: "${board_name} reject call"
|
|
icon: "mdi:door-closed-lock"
|
|
on_press:
|
|
if:
|
|
condition:
|
|
binary_sensor.is_on: incoming_call
|
|
then:
|
|
script.execute: call_reject
|
|
else:
|
|
logger.log: "No incoming call"
|