Hello, I’m just trying to get notification via telegram and got some errors :
File "...\AppData\Roaming\.homeassistant\deps\telegram\utils\request.py", line 166, in _request_wrapper
raise NetworkError('urllib3 HTTPError {0}'.format(error))
telegram.error.NetworkError: urllib3 HTTPError HTTPSConnectionPool(host='api.telegram.org', port=443): Max retries exceeded with url: /**telegrambot**/getMe (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x05C1A5F0>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond',))
16-12-08 21:59:38 homeassistant.components.switch: Error while setting up platform mqtt
Traceback (most recent call last):
File "...\AppData\Local\Programs\Python\Python35-32\lib\site-packages\homeassistant\helpers\entity_component.py", line 98, in _setup_platform
discovery_info)
File "...\AppData\Local\Programs\Python\Python35-32\lib\site-packages\homeassistant\components\switch\mqtt.py", line 52, in setup_platform
config.get(CONF_VALUE_TEMPLATE))])
File "...\AppData\Local\Programs\Python\Python35-32\lib\site-packages\homeassistant\components\switch\mqtt.py", line 90, in __init__
self._qos)
File "...\AppData\Local\Programs\Python\Python35-32\lib\site-packages\homeassistant\components\mqtt\__init__.py", line 174, in subscribe
MQTT_CLIENT.subscribe(topic, qos)
File "...\AppData\Local\Programs\Python\Python35-32\lib\site-packages\homeassistant\components\mqtt\__init__.py", line 346, in subscribe
_raise_on_error(result)
File "...\AppData\Local\Programs\Python\Python35-32\lib\site-packages\homeassistant\components\mqtt\__init__.py", line 444, in _raise_on_error
raise HomeAssistantError('Error talking to MQTT: {}'.format(result))
homeassistant.exceptions.HomeAssistantError: Error talking to MQTT: 1
This is my notification config :
notify: - name : notify platform: telegram api_key: **apikey** chat_id: **chat_id**
automation :
-alias : ‘tele1’
trigger:
platform: state
entity_id: switch.outlet_1
from: ‘off’
to: ‘on’
action:
service: notify.telegram
data:
message: Lamp 1 ON
I’m using proxy in the server, so I think HASS can’t pass it and may be my notification config get any mistake. Is that any way to configure some proxy in the yaml or phyton module?
Big thanks for your help.