esphome.domofon_call_accept & esphome.domofon_call_reject events. web_server disabled by default

This commit is contained in:
Nikolay Vasilchuk
2022-07-25 17:30:45 +03:00
parent db854bd2ca
commit 2fb0716306
3 changed files with 24 additions and 4 deletions

View File

@@ -42,6 +42,10 @@ script:
- globals.set:
id: mode_mute_once
value: 'false'
- homeassistant.event:
event: esphome.domofon_call_accept
data:
entity_uid: $mdns_name
# Reject incoming call
- id: call_reject
@@ -55,6 +59,10 @@ script:
- globals.set:
id: mode_mute_once
value: 'false'
- homeassistant.event:
event: esphome.domofon_call_reject
data:
entity_uid: $mdns_name
# No call state
- id: state_no_call