router: fix button layout - action+refresh on row1, main menu on row2
This commit is contained in:
@@ -64,9 +64,8 @@ router:
|
|||||||
chat_id: "{{ trigger.event.data.chat_id }}"
|
chat_id: "{{ trigger.event.data.chat_id }}"
|
||||||
message: "<b>connect-accept отключён</b>\n\nЧерез 10:00 включится автоматически."
|
message: "<b>connect-accept отключён</b>\n\nЧерез 10:00 включится автоматически."
|
||||||
inline_keyboard:
|
inline_keyboard:
|
||||||
- "🔛 Включить:/wrt_cb_on|{{ trigger.event.data.chat_id }}"
|
- "🔛 Включить:/wrt_cb_on|{{ trigger.event.data.chat_id }}, 🔄 Обновить:/wrt_cb_refresh|{{ trigger.event.data.chat_id }}"
|
||||||
- "🔄 Обновить:/wrt_cb_refresh|{{ trigger.event.data.chat_id }}"
|
- "🔙 Главное меню:/menu_back"
|
||||||
- "🔙 Назад:/menu_back"
|
|
||||||
- service: timer.start
|
- service: timer.start
|
||||||
target:
|
target:
|
||||||
entity_id: timer.wrt_ca_timer
|
entity_id: timer.wrt_ca_timer
|
||||||
@@ -84,9 +83,8 @@ router:
|
|||||||
chat_id: "{{ trigger.event.data.chat_id }}"
|
chat_id: "{{ trigger.event.data.chat_id }}"
|
||||||
message: "<b>connect-accept включён</b>\n\nТаймер остановлен."
|
message: "<b>connect-accept включён</b>\n\nТаймер остановлен."
|
||||||
inline_keyboard:
|
inline_keyboard:
|
||||||
- "⏸️ Отключить:/wrt_cb_off|{{ trigger.event.data.chat_id }}"
|
- "⏸️ Отключить:/wrt_cb_off|{{ trigger.event.data.chat_id }}, 🔄 Обновить:/wrt_cb_refresh|{{ trigger.event.data.chat_id }}"
|
||||||
- "🔄 Обновить:/wrt_cb_refresh|{{ trigger.event.data.chat_id }}"
|
- "🔙 Главное меню:/menu_back"
|
||||||
- "🔙 Назад:/menu_back"
|
|
||||||
- service: timer.cancel
|
- service: timer.cancel
|
||||||
target:
|
target:
|
||||||
entity_id: timer.wrt_ca_timer
|
entity_id: timer.wrt_ca_timer
|
||||||
@@ -112,9 +110,8 @@ router:
|
|||||||
|
|
||||||
Таймер остановлен.
|
Таймер остановлен.
|
||||||
inline_keyboard:
|
inline_keyboard:
|
||||||
- "⏸️ Отключить:/wrt_cb_off|{{ chat_id }}"
|
- "⏸️ Отключить:/wrt_cb_off|{{ chat_id }}, 🔄 Обновить:/wrt_cb_refresh|{{ chat_id }}"
|
||||||
- "🔄 Обновить:/wrt_cb_refresh|{{ chat_id }}"
|
- "🔙 Главное меню:/menu_back"
|
||||||
- "🔙 Назад:/menu_back"
|
|
||||||
- service: timer.cancel
|
- service: timer.cancel
|
||||||
target:
|
target:
|
||||||
entity_id: timer.wrt_ca_timer
|
entity_id: timer.wrt_ca_timer
|
||||||
@@ -140,9 +137,8 @@ router:
|
|||||||
|
|
||||||
Через 10:00 включится автоматически.
|
Через 10:00 включится автоматически.
|
||||||
inline_keyboard:
|
inline_keyboard:
|
||||||
- "🔛 Включить:/wrt_cb_on|{{ chat_id }}"
|
- "🔛 Включить:/wrt_cb_on|{{ chat_id }}, 🔄 Обновить:/wrt_cb_refresh|{{ chat_id }}"
|
||||||
- "🔄 Обновить:/wrt_cb_refresh|{{ chat_id }}"
|
- "🔙 Главное меню:/menu_back"
|
||||||
- "🔙 Назад:/menu_back"
|
|
||||||
- service: timer.start
|
- service: timer.start
|
||||||
target:
|
target:
|
||||||
entity_id: timer.wrt_ca_timer
|
entity_id: timer.wrt_ca_timer
|
||||||
@@ -167,9 +163,8 @@ router:
|
|||||||
|
|
||||||
Через {{ (as_timestamp(state_attr('timer.wrt_ca_timer', 'finishes_at')) - as_timestamp(now())) | timestamp_custom('%M:%S', false) | replace(' 0', ' 0', 1) }} включится автоматически.
|
Через {{ (as_timestamp(state_attr('timer.wrt_ca_timer', 'finishes_at')) - as_timestamp(now())) | timestamp_custom('%M:%S', false) | replace(' 0', ' 0', 1) }} включится автоматически.
|
||||||
inline_keyboard:
|
inline_keyboard:
|
||||||
- "🔛 Включить:/wrt_cb_on|{{ chat_id }}"
|
- "🔛 Включить:/wrt_cb_on|{{ chat_id }}, 🔄 Обновить:/wrt_cb_refresh|{{ chat_id }}"
|
||||||
- "🔄 Обновить:/wrt_cb_refresh|{{ chat_id }}"
|
- "🔙 Главное меню:/menu_back"
|
||||||
- "🔙 Назад:/menu_back"
|
|
||||||
|
|
||||||
- alias: "wrt|timer_expired_auto_on"
|
- alias: "wrt|timer_expired_auto_on"
|
||||||
trigger:
|
trigger:
|
||||||
@@ -184,6 +179,5 @@ router:
|
|||||||
chat_id: "{{ states('input_text.wrt_ca_chat_id') | default('102879274') }}"
|
chat_id: "{{ states('input_text.wrt_ca_chat_id') | default('102879274') }}"
|
||||||
message: "<b>Таймер истёк!</b>\nconnect-accept включён автоматически."
|
message: "<b>Таймер истёк!</b>\nconnect-accept включён автоматически."
|
||||||
inline_keyboard:
|
inline_keyboard:
|
||||||
- "⏸️ Отключить:/wrt_cb_off|{{ states('input_text.wrt_ca_chat_id') | default('102879274') }}"
|
- "⏸️ Отключить:/wrt_cb_off|{{ states('input_text.wrt_ca_chat_id') | default('102879274') }}, 🔄 Обновить:/wrt_cb_refresh|{{ states('input_text.wrt_ca_chat_id') | default('102879274') }}"
|
||||||
- "🔄 Обновить:/wrt_cb_refresh|{{ states('input_text.wrt_ca_chat_id') | default('102879274') }}"
|
- "🔙 Главное меню:/menu_back"
|
||||||
- "🔙 Назад:/menu_back"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user