Hi,
I tried to setup the notification via TELEGRAM.
I received my ID and API-key in the format as shown below (only some letters changed…).
My first setup has been according a tutorial video.
HA hasn’t been available after several tries, because it seems there is a difference between the syntax with direct ID & API-key input and (like in the video) referencing the secret.yaml file.
So with the following code at least HA is available via Web Interface.
# Text to speech
tts:
- platform: google_translate
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
telegram_bot:
- platform: polling
api_key: "10yyyyyy91:AAFl7yyyyKHY9pTyyyyyyyyk0EJEwMQqgKE"
allowed_chat_ids:
- 10xxxxxx82
notify:
- name: HA_Message
platform: telegram
chat_ID: "10xxxxxx82"
But unfortunately the Service HA_Message is not available.
The errors shown in the log are:
2019-12-01 16:41:50 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: required key not provided @ data['trigger']. Got None. (See /config/configuration.yaml, line 13). Please check the docs at https://home-assistant.io/integrations/automation/
2019-12-01 16:41:51 ERROR (MainThread) [homeassistant.config] Invalid config for [notify.telegram]: required key not provided @ data['chat_id']. Got None. (See /config/configuration.yaml, line 24). Please check the docs at https://home-assistant.io/integrations/telegram/
2019-12-01 16:41:53 ERROR (SyncWorker_15) [homeassistant.components.ios.notify] The notify.ios platform was loaded but no devices exist! Please check the documentation at https://home-assistant.io/ecosystem/ios/notifications/ for more information
2019-12-01 16:43:58 WARNING (zeroconf-ServiceBrowser__esphomelib._tcp.local.) [zeroconf] Exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/zeroconf.py", line 2245, in send
bytes_sent = s.sendto(packet, 0, (addr, port))
PermissionError: [Errno 1] Operation not permitted
2019-12-01 17:02:38 WARNING (updater) [telegram.vendor.ptb_urllib3.urllib3.connectionpool] Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<telegram.vendor.ptb_urllib3.urllib3.connection.VerifiedHTTPSConnection object at 0x7184ddd0>: Failed to establish a new connection: [Errno -3] Try again')': /bot10yyyyyy91:AAFl7yyyyKHY9pTyyyyyyyyk0EJEwMQqgKE/getUpdates
2019-12-01 17:02:43 WARNING (updater) [telegram.vendor.ptb_urllib3.urllib3.connectionpool] Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by ....
Maybe anybody has idea what’s wrong here?
Best regards,
Jörg