Hi @CharlesBlonde - thanks so much for your work on this plug in - I got it working but only once and can’t seem to repeat it
When I first tried it, I had issues using the discovery method, so I ended up typing in the IP address and ID. I think this was the only time it worked, then I tried restarting HASS and it keeps on failing on both settings.
Below are the configuration.yaml entries:
With discovery:
dyson:
username: XXX
password: XXX
language: GB
Without discovery:
dyson:
username: XXX
password: XXX
language: GB
devices:
- device_id: PE9-UK-XXXXXXXX
device_ip: 192.168.86.32
When I have discovery on, I get the following in my logs:
2017-07-20 13:11:54 WARNING (Thread-14) [libpurecoollink.dyson] Unable to find device PE9-UK-XXXXXXXX, try 0
2017-07-20 13:11:58 WARNING (MainThread) [homeassistant.setup] Setup of dyson is taking over 10 seconds.
2017-07-20 13:11:59 WARNING (Thread-14) [libpurecoollink.dyson] Unable to find device PE9-UK-XXXXXXXX, try 1
2017-07-20 13:12:04 WARNING (Thread-14) [libpurecoollink.dyson] Unable to find device PE9-UK-XXXXXXXX, try 2
2017-07-20 13:12:09 WARNING (Thread-14) [libpurecoollink.dyson] Unable to find device PE9-UK-XXXXXXXX, try 3
2017-07-20 13:12:14 WARNING (Thread-14) [libpurecoollink.dyson] Unable to find device PE9-UK-XXXXXXXX, try 4
2017-07-20 13:12:19 WARNING (Thread-14) [libpurecoollink.dyson] Unable to find device PE9-UK-XXXXXXXX, try 5
2017-07-20 13:12:24 WARNING (Thread-14) [libpurecoollink.dyson] Unable to find device PE9-UK-XXXXXXXX, try 6
2017-07-20 13:12:29 WARNING (Thread-14) [libpurecoollink.dyson] Unable to find device PE9-UK-XXXXXXXX, try 7
2017-07-20 13:12:34 WARNING (Thread-14) [libpurecoollink.dyson] Unable to find device PE9-UK-XXXXXXXX, try 8
2017-07-20 13:12:39 WARNING (Thread-14) [libpurecoollink.dyson] Unable to find device PE9-UK-XXXXXXXX, try 9
2017-07-20 13:12:39 ERROR (Thread-14) [libpurecoollink.dyson] Unable to connect to device PE9-UK-XXXXXXXX
2017-07-20 13:12:39 WARNING (Thread-14) [homeassistant.components.dyson] Unable to connect to device DysonDevice(PE9-UK-XXXXXXXX,True,Bedroom,21.03.08,True,False,455,None)
I even tried increasing the timeout to 10 seconds, but that made no difference.
When I have discovery switched off, I get the following:
Exception in thread Thread-22:
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "/Users/ollie/.homeassistant/deps/paho/mqtt/client.py", line 2606, in _thread_main
self.loop_forever(retry_first_connection=True)
File "/Users/ollie/.homeassistant/deps/paho/mqtt/client.py", line 1470, in loop_forever
rc = self.loop(timeout, max_packets)
File "/Users/ollie/.homeassistant/deps/paho/mqtt/client.py", line 995, in loop
rc = self.loop_read(max_packets)
File "/Users/ollie/.homeassistant/deps/paho/mqtt/client.py", line 1273, in loop_read
rc = self._packet_read()
File "/Users/ollie/.homeassistant/deps/paho/mqtt/client.py", line 1838, in _packet_read
rc = self._packet_handle()
File "/Users/ollie/.homeassistant/deps/paho/mqtt/client.py", line 2285, in _packet_handle
return self._handle_publish()
File "/Users/ollie/.homeassistant/deps/paho/mqtt/client.py", line 2456, in _handle_publish
self._handle_on_message(message)
File "/Users/ollie/.homeassistant/deps/paho/mqtt/client.py", line 2603, in _handle_on_message
self.on_message(self, self._userdata, message)
File "/Users/ollie/.homeassistant/deps/libpurecoollink/dyson.py", line 267, in on_message
device_msg = DysonEnvironmentalSensorState(payload)
File "/Users/ollie/.homeassistant/deps/libpurecoollink/dyson.py", line 679, in __init__
self._humidity = int(self.__get_field_value(data, 'hact'))
ValueError: invalid literal for int() with base 10: 'OFF'
2017-07-20 14:06:29 WARNING (MainThread) [homeassistant.setup] Setup of dyson is taking over 10 seconds.
Do you have any suggestions as to what I can do? I am using Home Assistant v0.49.0
Many thanks!