@PieBru wrote:
Hi all,
I just installed the telegram platform and it apparently works, but I suspect it misses some notifications and myhome_assistant.log
is flooded every few seconds by these error messages:2020-03-09 19:50:59 ERROR (updater) [telegram.ext.updater] Error while getting Updates: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running (409) 2020-03-09 19:51:05 ERROR (updater) [telegram.ext.updater] Error while getting Updates: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running (409) 2020-03-09 19:51:11 ERROR (updater) [telegram.ext.updater] Error while getting Updates: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running (409) 2020-03-09 19:51:18 ERROR (updater) [telegram.ext.updater] Error while getting Updates: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running (409) 2020-03-09 19:51:33 ERROR (updater) [telegram.ext.updater] Error while getting Updates: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running (409) 2020-03-09 19:51:38 ERROR (updater) [telegram.ext.updater] Error while getting Updates: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running (409) 2020-03-09 19:51:44 ERROR (updater) [telegram.ext.updater] Error while getting Updates: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running (409) 2020-03-09 19:51:51 ERROR (updater) [telegram.ext.updater] Error while getting Updates: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running (409) 2020-03-09 19:51:59 ERROR (updater) [telegram.ext.updater] Error while getting Updates: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running (409) 2020-03-09 19:52:09 ERROR (updater) [telegram.ext.updater] Error while getting Updates: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running (409)
I followed the official guide and here is my structured
configuration.yaml
integrations/telegram_bot.yaml
:telegram_bot: - platform: polling api_key: !secret telegram_bot_api_key allowed_chat_ids: - !secret telegram_bot_piero_chat_id
integrations/notify.yaml
:notify: - name: telegram_piero platform: telegram chat_id: !secret telegram_bot_piero_chat_id
automations.yaml
(generated by the WEB UI):- id: '1583691545817' alias: Corona virus description: '' trigger: - entity_id: sensor.italy_coronavirus_confirmed platform: state condition: [] action: - data: message: 'Corona virus confirmed Italy: {{ states("sensor.italy_coronavirus_confirmed") }}' service: notify.telegram_piero
automations/notify_failed_logins.yaml
:alias: "Notify failed logins" initial_state: true trigger: - platform: state entity_id: persistent_notification.http_login condition: - condition: template value_template: "{{ trigger.to_state.state != 'None' }}" action: - service: notify.telegram_piero data_template: title: "{{ states.persistent_notification.http_login.attributes.message }}" message: 'url: https://whatismyipaddress.com/ip/{{ states.persistent_notification.http_login.attributes.message.split ("from ") [1]}}' - service: persistent_notification.dismiss data: notification_id: 'http_login'
automations/notify_new_devices.yaml
:alias: "Notify new devices" initial_state: true trigger: - platform: event event_type: device_tracker_new_device action: - service: notify.telegram_piero data_template: message: '{{trigger.event.data.entity_id}}' title: New device
Please help me to sort out this.
Thanks,
Piero
Posts: 1
Participants: 1