mirror of
https://github.com/Anonym-tsk/smart-domofon.git
synced 2026-01-03 15:19:03 +03:00
27 lines
612 B
YAML
27 lines
612 B
YAML
button:
|
|
# 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"
|