Hi guys. After a lot of testing i need your help.
My goal is to receive a message from Telegram bot like this:
Frontdoor: off 21.02. - 12:19 (the off stands for closed and on for open)
I managed to get this working BUT! its not the local timezone. It must be 21.02. - 13:19
- action:
- data_template:
message: "Frontdoor: {{states.binary_sensor.door_window_sensor_158d00014d6234.state}} {{ states.binary_sensor.door_window_sensor_158d00014d6234.last_changed.strftime('%d.%m. - %H:%M')}}"
service: notify.telegrambot
alias: Telegram - Bot - /door
condition: []
id: '1519033551973'
trigger:
- event_data:
command: /door
event_type: telegram_command
platform: event