updating configuration
This commit is contained in:
@@ -57,8 +57,7 @@ class Intercom(hass.Hass):
|
|||||||
chat_id = payload_event['chat_id']
|
chat_id = payload_event['chat_id']
|
||||||
|
|
||||||
if data_callback == '/domofon_open':
|
if data_callback == '/domofon_open':
|
||||||
self.turn_on("switch.domofon_open")
|
self.turn_on(self.args['force_open_switch'])
|
||||||
self.turn_off("switch.domofon_open")
|
|
||||||
self.call_service('telegram_bot/answer_callback_query',
|
self.call_service('telegram_bot/answer_callback_query',
|
||||||
message='Готово',
|
message='Готово',
|
||||||
callback_query_id=callback_id)
|
callback_query_id=callback_id)
|
||||||
@@ -6,6 +6,7 @@ intercom:
|
|||||||
class: Intercom
|
class: Intercom
|
||||||
notify: telegram
|
notify: telegram
|
||||||
sensor: binary_sensor.domofon_incoming_call
|
sensor: binary_sensor.domofon_incoming_call
|
||||||
|
force_open_switch: switch.domofon_force_open
|
||||||
gw_mac: !secret aqara1_mac
|
gw_mac: !secret aqara1_mac
|
||||||
chat_id: !secret telegram_group_chat
|
chat_id: !secret telegram_group_chat
|
||||||
global_dependencies:
|
global_dependencies:
|
||||||
|
|||||||
@@ -80,12 +80,6 @@ switch:
|
|||||||
turn_on_action:
|
turn_on_action:
|
||||||
- script.execute: call_accept
|
- script.execute: call_accept
|
||||||
|
|
||||||
- platform: template
|
|
||||||
id: domofon_call_emulation
|
|
||||||
name: "Domofon call emulation"
|
|
||||||
turn_on_action:
|
|
||||||
- script.execute: state_call
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# Accept incoming call
|
# Accept incoming call
|
||||||
- id: call_accept
|
- id: call_accept
|
||||||
|
|||||||
Reference in New Issue
Block a user