router: hardcode chat_id for timer expiry, remove input_text
This commit is contained in:
@@ -5,11 +5,6 @@ router:
|
||||
duration: '00:10:00'
|
||||
name: Connect Accept Timer
|
||||
|
||||
input_text:
|
||||
wrt_ca_chat_id:
|
||||
name: "WRT CA Chat ID"
|
||||
icon: mdi:account
|
||||
|
||||
automation:
|
||||
|
||||
- alias: ntf|tg|wrt_ip
|
||||
@@ -63,11 +58,6 @@ router:
|
||||
event_data:
|
||||
command: /wrt_ca_off
|
||||
action:
|
||||
- service: input_text.set_value
|
||||
target:
|
||||
entity_id: input_text.wrt_ca_chat_id
|
||||
data:
|
||||
value: "{{ trigger.event.data.chat_id }}"
|
||||
- service: shell_command.wrt_ca_off
|
||||
- service: telegram_bot.send_message
|
||||
data:
|
||||
@@ -186,8 +176,8 @@ router:
|
||||
- service: shell_command.wrt_ca_on
|
||||
- service: telegram_bot.send_message
|
||||
data:
|
||||
chat_id: "{{ states('input_text.wrt_ca_chat_id') | int(default=102879274) }}"
|
||||
chat_id: 102879274
|
||||
message: "<b>⏰ Таймер истёк!</b>\nconnect-accept включён автоматически."
|
||||
inline_keyboard:
|
||||
- "⏸️ Отключить:/wrt_cb_off|{{ states('input_text.wrt_ca_chat_id') | int(default=102879274) }}, 🔄 Обновить:/wrt_cb_refresh|{{ states('input_text.wrt_ca_chat_id') | int(default=102879274) }}"
|
||||
- "⏸️ Отключить:/wrt_cb_off|102879274, 🔄 Обновить:/wrt_cb_refresh|102879274"
|
||||
- "🔙 Главное меню:/menu_back"
|
||||
|
||||
Reference in New Issue
Block a user