{"action":"created","issue":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/13129","repository_url":"https://api.github.com/repos/home-assistant/home-assistant","labels_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/13129/labels{/name}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/13129/comments","events_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/13129/events","html_url":"https://github.com/home-assistant/home-assistant/issues/13129","id":304392078,"number":13129,"title":"Telegram Bot Error","user":{"login":"Coolie1101","id":28989417,"avatar_url":"https://avatars1.githubusercontent.com/u/28989417?v=4","gravatar_id":"","url":"https://api.github.com/users/Coolie1101","html_url":"https://github.com/Coolie1101","followers_url":"https://api.github.com/users/Coolie1101/followers","following_url":"https://api.github.com/users/Coolie1101/following{/other_user}","gists_url":"https://api.github.com/users/Coolie1101/gists{/gist_id}","starred_url":"https://api.github.com/users/Coolie1101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Coolie1101/subscriptions","organizations_url":"https://api.github.com/users/Coolie1101/orgs","repos_url":"https://api.github.com/users/Coolie1101/repos","events_url":"https://api.github.com/users/Coolie1101/events{/privacy}","received_events_url":"https://api.github.com/users/Coolie1101/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-03-12T14:23:32Z","updated_at":"2018-04-17T02:51:37Z","closed_at":null,"author_association":"NONE","body":"Home Assistant release (hass --version):\r\n0.65.3\r\n\r\nPython release (python3 --version):\r\n3.5.3\r\n\r\n**Component/platform:**\r\ntelegram_bot\r\n\r\n**Description of problem:**\r\nRepeated error messages\r\n\r\n**Expected:**\r\nNo Error\r\n\r\n**Problem-relevant `configuration.yaml` entries and steps to reproduce:**\r\n```\r\ntelegram_bot:\r\n  - platform: polling\r\n    api_key: my_api_key\r\n    allowed_chat_ids:\r\n      - !secret my_chat_id\r\n\r\nnotify:\r\n  - platform: telegram\r\n    chat_id: my_chat_id\r\n    name: Telegram\r\n```\r\nAutomation:\r\n```\r\n- alias: Weather Alert\r\n  trigger:\r\n    platform: numeric_state\r\n    entity_id: sensor.pws_alerts\r\n    above: 0\r\n  action:\r\n  - service: persistent_notification.create\r\n    data_template:\r\n      title: \"Severe Weather Alert:\r\n      {{ states.sensor.pws_alerts.attributes.Description }}\r\n      {{ as_timestamp(now()) | timestamp_custom('%b %d %Y %I:%M:%S %p', true) }}\"\r\n      message: \"{{ states.sensor.pws_alerts.attributes.Message }}\"\r\n  - service: notify.telegram\r\n    data_template:\r\n      title: \"Severe Weather Alert:  {{ states.sensor.pws_alerts.attributes.Description }} {{ states.sensor.pws_alerts.attributes.Description_WAT }}\"\r\n      message: \"{{ states.sensor.pws_alerts.attributes.Message }} {{ states.sensor.pws_alerts.attributes.Message_WIN }}\"\r\n``` \r\n\r\n**Traceback (if applicable):**\r\n```\r\n2018-03-11 22:17:29 ERROR (MainThread) [homeassistant.components.telegram_bot.polling] wrong status 502\r\n2018-03-12 04:00:07 ERROR (Thread-22) [homeassistant.components.telegram_bot] Error sending message: Timed out. Args: (390135429, 'Feedreader Update\\nWinter Weather Advisory issued March 12 at 3:30AM EDT until March 13 at 12:00PM EDT by NWS'), kwargs: {'reply_to_message_id': None, 'parse_mode': 'Markdown', 'disable_notification': False, 'reply_markup': None, 'disable_web_page_preview': None, 'timeout': None}\r\n```\r\n\r\n**Additional info:**\r\nAutomation triggers and execute as expected, persistent notification gets created and message is received, but still get errors in log.\r\n\r\n\r\n**Persistent Notification:**\r\n\r\n![image](https://user-images.githubusercontent.com/28989417/37289010-05a20744-25df-11e8-946e-717d94aaee2b.png)\r\n\r\n\r\n**Telegram Message:**\r\n\r\n![image](https://user-images.githubusercontent.com/28989417/37288954-e8105c6c-25de-11e8-871b-73efa279e8cd.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/comments/381816048","html_url":"https://github.com/home-assistant/home-assistant/issues/13129#issuecomment-381816048","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/13129","id":381816048,"user":{"login":"Coolie1101","id":28989417,"avatar_url":"https://avatars1.githubusercontent.com/u/28989417?v=4","gravatar_id":"","url":"https://api.github.com/users/Coolie1101","html_url":"https://github.com/Coolie1101","followers_url":"https://api.github.com/users/Coolie1101/followers","following_url":"https://api.github.com/users/Coolie1101/following{/other_user}","gists_url":"https://api.github.com/users/Coolie1101/gists{/gist_id}","starred_url":"https://api.github.com/users/Coolie1101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Coolie1101/subscriptions","organizations_url":"https://api.github.com/users/Coolie1101/orgs","repos_url":"https://api.github.com/users/Coolie1101/repos","events_url":"https://api.github.com/users/Coolie1101/events{/privacy}","received_events_url":"https://api.github.com/users/Coolie1101/received_events","type":"User","site_admin":false},"created_at":"2018-04-17T02:51:36Z","updated_at":"2018-04-17T02:51:36Z","author_association":"NONE","body":"Still strugling to resolve the Telegram errors, error is created when any automation using Telegram is triggered.\r\n\r\nAnyone have any idea how I can diagnose this error, or what needs to be changed/added?\r\n\r\n2018-04-16 22:17:48 ERROR (Thread-10) [homeassistant.components.telegram_bot] Error sending message: Invalid server response. Args: (390135429, 'Pi3 CPU temperature is currently 128.6°!'), kwargs: {'parse_mode': 'Markdown', 'timeout': None, 'reply_markup': None, 'disable_notification': False, 'reply_to_message_id': None, 'disable_web_page_preview': None}"}}
{"actor":{"display_login":"Coolie1101"}}