dingusdk / ha-dukaone

HA integration for the Dukaone S6W ventilation heat exchanger
GNU General Public License v3.0
24 stars 10 forks source link

Issues with one of my 2 Duka One S6 Wifi's #21

Open Lynetk opened 2 weeks ago

Lynetk commented 2 weeks ago

I'm having issues adding my second Duka One 6S + Wifi. I have set up both my Duka's to connect to my wifi and getting a DHCP reserved address in the 10.1.10.0/24 subnet Both Duka's are the same and are running firmware 0.3 from 2021-04-10

One of my Duka's, lets call it number 1 is working as expected in home-assistant (2024.6.3) CleanShot 2024-06-20 at 15 46 16@2x

When I try to add the second one, it seem to work but no humidity sensor is detected and I cant control the fan entity it produces CleanShot 2024-06-20 at 15 47 59@2x

Log output from Home Assistant: `     2024-06-20 15:39:06.139 ERROR (MainThread) [custom_components.dukaone.sensor] Failed to setup dukaone device  
    2024-06-20 15:39:06.139 WARNING (MainThread) [custom_components.dukaone.dukaentity] Timeout getting dukaone firmware version  
    2024-06-20 15:39:06.138 WARNING (MainThread) [custom_components.dukaone.dukaentity] Timeout getting dukaone firmware version  
    2024-06-20 15:39:06.052 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform dukaone is taking over 10 seconds.  
    2024-06-20 15:39:06.052 WARNING (MainThread) [homeassistant.components.fan] Setup of fan platform dukaone is taking over 10 seconds.  
    2024-06-20 15:38:56.051 DEBUG (MainThread) [custom_components.dukaone.sensor] Waiting for dukaone sensor device  
    2024-06-20 15:38:56.051 DEBUG (MainThread) [custom_components.dukaone.sensor] Waiting to get dukaone device  
    2024-06-20 15:38:56.051 INFO (MainThread) [homeassistant.components.sensor] Setting up dukaone.sensor  
    2024-06-20 15:38:56.051 INFO (MainThread) [homeassistant.components.fan] Setting up dukaone.fan

`

I have tried firmware resets, setting the password manually and to different values but always with the same result.

I then tried downloading your Python SDK and connected to each of the Duka's with success and I can control them both through there. Also, the Duka iOS app works fine, so I don't think I have a faulty device.

I added a few debug printlines to example.py in the SDK and this shows the output I'm getting. Not sure why it displays None in the Firmware device, date and unit type, but it only seems to do that upon first connect.

python3 example.py New device id: 002A004542435708 New device id: 0048004442435708 002A004542435708 here b'\xfd\xfd\x02\x10002A004542435708\x08coLL6reM\x06\xfe\x06\x86\x00\x03\x04\n\xe5\x07\xfe\x02\xb9\x0e\x00o\n' here Device added Firmware version: None Firmware date: None Unit type: None Press one key and enter. 1-3 for speed, 0=off, 9=on,b,n,m for mode, f for reset filter alarm, q for quit Firmware version: None b'\xfd\xfd\x02\x10002A004542435708\x08coLL6reM\x06\xfe\x06\x86\x00\x03\x04\n\xe5\x07\xfe\x02\xb9\x0e\x00o\n' ip: 10.1.10.33 speed: 1, manualspeed: 127, fan1rpm: None, mode: 0, firmware version: 0.3, humidity: 49, filter alarm: False, filter timer; 129413 minutes

I also went ahead and ran a tcpdump on my home assistant server when adding the faulty Duka, and I see no traffic being sent towards the IP of the duka even though I specify it in the config flow.

dingusdk commented 2 weeks ago

Dukaone send responses using broadcast on the network. How are you running your home assistant? I know there are problems if you run it in docker on Windows. (Docker on linux should work fine). When you run the python example from the dukaone sdk - is that on your Home Assistant server? You can try to specify 10.1.10.255 as the ip address (the broadcast address of your network). And verify the device id is correct. Another guy wrote that the password must not be more then 8 characters - I would try to make it exactly 8 characters (Or use the same password as on the one that works - if you have not already done that)

Lynetk commented 2 weeks ago

Thanks for your reply. Home Assistant is running on a virtual machine in the same network as the duka's (10.1.10.0/24) and is perfectly capable of connecting to one of the two duka's. I have tried all combinations of passwords. 8 characters exactly, default 1111 and it's the same result. I have also tried to specify the broadcast address and verified multiple times that device_id is correct and confirmed this when using SDK. I have tried SDK from both the home assistant server and my desktop (mac).