Telegram notifications not working. Notify configuration as follows:
notify:
- platform: telegram
api_key: api_key
chat_id: chat_id
name: telegram_bot
Testing using the frontend developer tools (Testing section of: https://home-assistant.io/components/notify/). Frontend claims to successfully call service, but I am not actually receiving any notifications on telegram. Terminal trace as follows:
INFO:homeassistant.components.http:Serving /api/services/notify/telegram_bot to 192.168.2.64 (auth: True)
INFO:homeassistant.core:Bus:Handling <Event call_service[L]: service=telegram_bot, service_call_id=1979007536-4, domain=notify, service_data=message=The sun is {% if is_state('sun.sun', 'above_horizon') %}up{% else %}down{% endif %}!>
ERROR:homeassistant.core:Error doing job: Future exception was never retrieved
Traceback (most recent call last):
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/core.py", line 1054, in execute_service
service_handler.func(service_call)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/notify/__init__.py", line 110, in notify_message
notify_service.send_message(**kwargs)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/notify/telegram.py", line 122, in send_message
parse_mode=parse_mode)
File "/home/pi/.homeassistant/deps/telegram/bot.py", line 125, in decorator
result = func(self, *args, **kwargs)
File "/home/pi/.homeassistant/deps/telegram/bot.py", line 151, in decorator
result = self._request.post(url, data, timeout=kwargs.get('timeout'))
File "/home/pi/.homeassistant/deps/telegram/utils/request.py", line 207, in post
**urlopen_kwargs)
File "/home/pi/.homeassistant/deps/telegram/utils/request.py", line 132, in _request_wrapper
resp = self._con_pool.request(*args, **kwargs)
File "/usr/lib/python3/dist-packages/urllib3/request.py", line 72, in request
**urlopen_kw)
File "/usr/lib/python3/dist-packages/urllib3/request.py", line 135, in request_encode_body
**urlopen_kw)
TypeError: urlopen() got multiple values for keyword argument 'body'
INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: entity_id=sun.sun, old_state=<state sun.sun=above_horizon; next_setting=2016-12-30T15:58:28+00:00, azimuth=221.86, next_rising=2016-12-31T08:06:12+00:00, friendly_name=Sun, elevation=5.09 @ 2016-12-30T14:55:17.490240+00:00>, new_state=<state sun.sun=above_horizon; next_setting=2016-12-30T15:58:28+00:00, azimuth=222.07, next_rising=2016-12-31T08:06:12+00:00, friendly_name=Sun, elevation=4.99 @ 2016-12-30T14:55:17.490240+00:00>>
INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: entity_id=sun.sun, old_state=<state sun.sun=above_horizon; next_setting=2016-12-30T15:58:28+00:00, azimuth=222.07, next_rising=2016-12-31T08:06:12+00:00, friendly_name=Sun, elevation=4.99 @ 2016-12-30T14:55:17.490240+00:00>, new_state=<state sun.sun=above_horizon; next_setting=2016-12-30T15:58:28+00:00, azimuth=222.27, next_rising=2016-12-31T08:06:12+00:00, friendly_name=Sun, elevation=4.89 @ 2016-12-30T14:55:17.490240+00:00>>
I’ve double checked all credentials, and the terminal doesn’t complain about anything not being authorised…

