Can someone please help me find the error in the automation package? I’ve been looking at it all day and can’t see anything.
thank you a thousand times
automation:
- id: telegram_menu
alias: "Telegram Menu"
description: ""
initial_state: "on"
trigger:
- platform: event
event_type: telegram_command
event_data:
command: /menu
id: menu
- platform: event
event_type: telegram_command
event_data:
command: /menu1
id: menu1
- platform: event
event_type: telegram_callback
event_data:
command: /voda
id: voda
- platform: event
event_type: telegram_callback
event_data:
command: /elek
id: elek
- platform: event
event_type: telegram_callback
event_data:
command: /sv_pokoj
id: sv_pokoj
- platform: event
event_type: telegram_callback
event_data:
command: /sv_kuli
id: sv_kuli
- platform: event
event_type: telegram_callback
event_data:
command: /sv_kuchyn
id: sv_kuchyn
- platform: event
event_type: telegram_callback
event_data:
command: /sv_loznice
id: sv_loznice
- platform: event
event_type: telegram_callback
event_data:
command: /sv_obyvak
id: sv_obyvak
- platform: event
event_type: telegram_callback
event_data:
command: /sv_balkon
id: sv_balkon
- platform: event
event_type: telegram_callback
event_data:
command: /sv_ch_strop
id: sv_ch_strop
- platform: event
event_type: telegram_callback
event_data:
command: /sv_ch_zrcadlo
id: sv_ch_zrcadlo
- platform: event
event_type: telegram_callback
event_data:
command: /sv_komora
id: sv_komora
- platform: event
event_type: telegram_callback
event_data:
command: /sv_koupelna
id: sv_koupelna
- platform: event
event_type: telegram_callback
event_data:
command: /sv_k_balkonu
id: sv_k_balkonu
- platform: event
event_type: telegram_callback
event_data:
command: /sv_wc
id: sv_wc
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: menu
sequence:
- service: notify.ha_dubak_bot
data:
message: HOME ASSISTANT
inline_keyboard:
- Dnešní spotřeba vody:/voda
- Dnešní spotřeba elektřiny:/elek
- Rozsvítit v pokoji:/sv_pokoj_on
- Zhasnout světlo v pokoji:/sv_pokoj_off
- conditions:
- condition: trigger
id: menu1
sequence:
- service: script.telegram_ha_bot
data: {}
- conditions:
- condition: trigger
id: voda
sequence:
- service: notify.ha_dubak_bot
data:
message: " Dnes se spotřebovalo {{ states('sensor.denni_spotreba_vody') }} litrů vody"
- conditions:
- condition: trigger
id: elek
sequence:
- service: notify.ha_dubak_bot
data:
message: >-
Dnes se spotřebovalo {{
states('sensor.l123_spotreba_denni_kwh_nt') }} kWh v nízkém
tarifu
- service: notify.ha_dubak_bot
data:
message: >-
a ve vysokém tarifu {{
states('sensor.l123_spotreba_denni_kwh_vt') }} kWh
- conditions:
- condition: trigger
id: sv_pokoj
sequence:
- service: light.toggle
target:
entity_id: light.sv_stmivac_pokoj
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: script.telegram_ha_bot
data: {}
- conditions:
- condition: trigger
id: sv_kuli
sequence:
- service: light.toggle
target:
entity_id: light.sv_kuchyn_linka_spodni
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: script.telegram_ha_bot
data: {}
- conditions:
- condition: trigger
id: sv_kuchyn
sequence:
- service: light.toggle
target:
entity_id: light.sv_kuchyn_strop
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: script.telegram_ha_bot
data: {}
- conditions:
- condition: trigger
id: sv_loznice
sequence:
- service: light.toggle
target:
entity_id: light.sv_stmivac_loznice
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: script.telegram_ha_bot
data: {}
- conditions:
- condition: trigger
id: sv_obyvak
sequence:
- service: light.toggle
target:
entity_id: light.sv_stmivac_obyvak
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: script.telegram_ha_bot
data: {}
- conditions:
- condition: trigger
id: sv_balkon
sequence:
- service: light.toggle
target:
entity_id: light.svetlo_balkon_t_h
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: script.telegram_ha_bot
data: {}
- conditions:
- condition: trigger
id: sv_ch_strop
sequence:
- service: light.toggle
target:
entity_id: light.svetlo_chodba_strop
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: script.telegram_ha_bot
data: {}
- conditions:
- condition: trigger
id: sv_ch_zrcadlo
sequence:
- service: light.toggle
target:
entity_id: light.svetlo_chodba_zrcadlo
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: script.telegram_ha_bot
data: {}
- conditions:
- condition: trigger
id: sv_komora
sequence:
- service: light.toggle
target:
entity_id: light.svetlo_komora
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: script.telegram_ha_bot
data: {}
- conditions:
- condition: trigger
id: sv_koupelna
sequence:
- service: light.toggle
target:
entity_id: light.svetlo_koupelna
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: script.telegram_ha_bot
data: {}
- conditions:
- condition: trigger
id: sv_k_balkonu
sequence:
- service: light.toggle
target:
entity_id: light.svetlo_na_balkon_a_dvere
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: script.telegram_ha_bot
data: {}
- conditions:
- condition: trigger
id: sv_wc
sequence:
- service: light.toggle
target:
entity_id: light.svetlo_wc
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: script.telegram_ha_bot
data: {}
děkuji