Does anyone have a CURRENT working example of a Telegram Chatbot? I have found the current example (for the waste/recycling reminder) isn’t working - seems to be broken in a couple of ways.
Thank you!
Does anyone have a CURRENT working example of a Telegram Chatbot? I have found the current example (for the waste/recycling reminder) isn’t working - seems to be broken in a couple of ways.
Thank you!
My telegram bot ist working without problems:
telegram_bot:
- platform: polling
api_key: !secret telegram_apikey
parse_mode: html
allowed_chat_ids:
- !secret telegram_chatid
notify:
- platform: telegram
name: Telegram
chat_id: !secret telegram_chatid
automation:
- alias: "Update verfügbar"
initial_state: true
trigger:
- platform: state
entity_id: sensor.hass_current_version
condition:
- condition: template
value_template: >-
{% if states.sensor.hass_current_version.state == None or states.sensor.hass_installed_version.state == None %}
False
{% elif is_state("sensor.hass_current_version", "unavailable") == True %}
False
{% else %}
{{ states.sensor.hass_current_version.state != states.sensor.hass_installed_version.state }}
{% endif %}
action:
service: notify.telegram
data_template:
title: 'Neue Version'
message: "Home Assistant {{ states.sensor.hass_current_version.state }} ist jetzt verfügbar."