joe-ng / homebridge-dyson-link

MIT License
206 stars 40 forks source link

"Request for current state update" #42

Open justinshih opened 6 years ago

justinshih commented 6 years ago

I'm a beginner at coding so I've been trying to follow the guide down to the dot and troubleshooting where I can and after many trials and tribulations I'm at an issue I cannot for the life of me figure out where to go with next:

all controls stuck updating. in terminal there is a consistent 'request for current state update' was wondering if there was anyone who may be able to assist with this.

edit: just noticed theres already a closed thread for this same issue albeit on a rasp pi instead. Going to give the solutions from that thread a try when I have a chance - tried putting in device IP but still not working need clarity around whether or not the right has been used, saying 'no response'

screen shot 2018-06-19 at 5 04 32 pm

on ios11, nodejs 8.11, macOS 10.13

justinshih commented 6 years ago

Bump: I'm willing to commission anything between like 5-20 USD to somebody who's willing to help me successfully troubleshoot the system and get it running it's looking dire out here :')

joe-ng commented 6 years ago

just wondering, did you try to update homebridge to the latest version?

also, did you see something like below in the log when homebridge started? .... [DysonPlatform] Connected to your device serial number

note: i don't need a cup of starbucks to fill my life but in case we were able to resolve that, you are welcome to donate to your local charity to share the happiness :)

justinshih commented 6 years ago

Hey yeah I did a sudo npm install -g homebridge just now to double check and it's still the same afaik and I can't see it saying the exact message of "connected to your device s/n" but i vaguely remember that being said when i was trying to set this up the first time round. When I launch homebridge now it still registers as successful on terminal with the serial number recognised and everything

[2018-9-2 05:37:54] Loaded config.json with 0 accessories and 1 platforms. [2018-9-2 05:37:54] --- [2018-9-2 05:37:54] Loaded plugin: homebridge-dyson-link homebridge API version: 2.2 [2018-9-2 05:37:54] Registering platform 'homebridge-dyson-link.DysonPlatform' [2018-9-2 05:37:54] --- [2018-9-2 05:37:54] Loading 1 platforms... [2018-9-2 05:37:54] [DysonPlatform] Initializing DysonPlatform platform... [2018-9-2 05:37:54] Loading 0 accessories... [2018-9-2 05:37:54] [DysonPlatform] Dyson Pure Hot+Cool Link Configure Accessory Setup Payload: X-HM://0023ISYWYFG0I

┌────────────┐     
│ 031-45-154 │     
└────────────┘     

[2018-9-2 05:37:54] [DysonPlatform] Finished launching. Start to create accessory from config [2018-9-2 05:37:54] Homebridge is running on port 60002. [2018-9-2 05:37:57] [DysonPlatform] Dyson Pure Hot+Cool Link IP:192.168.1.21 Serial Number:DYSON-XXX-AU-XXXXXXXX-XXXX [2018-9-2 05:37:57] [DysonPlatform] Air Quality Sensitivity (Default is 1): 1 [2018-9-2 05:37:57] [DysonPlatform] Device serial number format valids [2018-9-2 05:37:57] [DysonPlatform] Device cached. Try to update this [2018-9-2 05:37:57] [DysonPlatform] Init Sensor for Dyson Pure Hot+Cool Link [2018-9-2 05:37:57] [DysonPlatform] Init Fan State for Dyson Pure Hot+Cool Link [2018-9-2 05:37:57] [DysonPlatform] Auto switch found. Remove this now [2018-9-2 05:37:57] [DysonPlatform] Night mode button is added [2018-9-2 05:37:57] [DysonPlatform] Heat Available. Add Heat button and jet control HAP Warning: Characteristic 000000BF-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 000000B7-0000-1000-8000-0026BB765291. Adding anyway. [2018-9-2 05:37:57] [DysonPlatform] Jet Focus mode button is added

p.s: will actually be so stoked when this is working that i probably will donate to charity

joe-ng commented 6 years ago

just to confirm, 192.168.1.21 is the IP of your Dyson device and your homebridge is in the same network as your Dyson device?

justinshih commented 6 years ago

I just want to address again that I'm not entirely tech saavy in this field of things so i'm not 100% sure about your questions but just to be clear in my response 192.168.1.2 is the IP shown in the wifi settings for the Dyson Wifi on my phone (which is the 1.21 ip address ive had to adjust it in the .json file).

I have dual bands for my network - I run homebridge off my computer which is typically running on the 5 GHz one and frankly I dont know what my dyson device network is running on, I assume it is running off the same as whatever my phone is running on in which case i've tried both the 2.4 and 5 bands but the issues persist in both scenarios

philcrest commented 5 years ago

Also seeing the same behaviour as Justin. I've been using this plugin for about 3 months and it worked seamlessly at the start. It began showing Updating... in the Home app intermittently and I could normally resolve by restarting Homebridge. Recently both my Dyson fans have been stuck on Updating... and can no longer be controlled in the Home app.

When I quit Homebridge, the state in the Home app changes to Unavailable. When Homebridge is running they show Updating... like Justin's previous screenshot. Running on a Mac Pro, macOS Mojave 10.14.

Cleared the cachedAccessories file, updated homebridge@0.4.45 and homebridge-dyson-link@2.3.0

Do you have any more recommendations? Thank you in advance!

homebridge
[05/11/2018, 12:28:00] Loaded config.json with 0 accessories and 1 platforms.
[05/11/2018, 12:28:00] ---
[05/11/2018, 12:28:00] Loaded plugin: homebridge-dyson-link
homebridge API version: 2.2
[05/11/2018, 12:28:00] Registering platform 'homebridge-dyson-link.DysonPlatform'
[05/11/2018, 12:28:00] ---
[05/11/2018, 12:28:00] Loading 1 platforms...
[05/11/2018, 12:28:00] [DysonPlatform] Initializing DysonPlatform platform...
[05/11/2018, 12:28:00] [DysonPlatform] Dyson Configure Accessory
[05/11/2018, 12:28:00] [DysonPlatform] Dyson Configure Accessory
Setup Payload:
X-HM://0023I64R9GCL7
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:

[05/11/2018, 12:28:00] [DysonPlatform] Finished launching. Start to create accessory from config
[05/11/2018, 12:28:00] Homebridge is running on port 51500.
[05/11/2018, 12:28:01] [DysonPlatform] Dyson IP:192.168.1.176 Serial Number:DYSON-XXX-UK-XXXXXXXX-XXX
[05/11/2018, 12:28:01] [DysonPlatform] Device serial number format valids
[05/11/2018, 12:28:01] [DysonPlatform] Device cached. Try to update this
[05/11/2018, 12:28:01] [DysonPlatform] Init Sensor for Dyson
[05/11/2018, 12:28:01] [DysonPlatform] Init Fan State for Dyson
[05/11/2018, 12:28:01] [DysonPlatform] Auto switch found. Remove this now
[05/11/2018, 12:28:01] [DysonPlatform] Night mode button is added
HAP Warning: Characteristic 000000BF-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 000000B7-0000-1000-8000-0026BB765291. Adding anyway.
[05/11/2018, 12:28:01] [DysonPlatform] Dyson IP:192.168.1.180 Serial Number:DYSON-XXX-UK-XXXXXXXX-XXX
[05/11/2018, 12:28:01] [DysonPlatform] Device serial number format valids
[05/11/2018, 12:28:01] [DysonPlatform] Device cached. Try to update this
[05/11/2018, 12:28:01] [DysonPlatform] Init Sensor for Dyson
[05/11/2018, 12:28:01] [DysonPlatform] Init Fan State for Dyson
[05/11/2018, 12:28:01] [DysonPlatform] Auto switch found. Remove this now
[05/11/2018, 12:28:01] [DysonPlatform] Night mode button is added
HAP Warning: Characteristic 000000BF-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 000000B7-0000-1000-8000-0026BB765291. Adding anyway.
[05/11/2018, 12:28:12] [DysonPlatform] Request for current state update
[05/11/2018, 12:28:12] [DysonPlatform] Request for current state update
el1-x commented 5 years ago

I recently setup homebridge along with this plugin and i appear to be seeing the same issue. Below are the logs from my instance.

[12/31/2018, 5:43:57 PM] [DysonPlatform] Finished launching. Start to create accessory from config
[12/31/2018, 5:43:57 PM] Homebridge is running on port 51826.
[12/31/2018, 5:44:00 PM] [DysonPlatform] Dyson Fan IP:10.0.0.20 Serial Number:DYSON-XXX-AU-XXXXXXXX-XXX
[12/31/2018, 5:44:01 PM] [DysonPlatform] Device serial number format valids
[12/31/2018, 5:44:01 PM] [DysonPlatform] Device cached. Try to update this
[12/31/2018, 5:44:01 PM] [DysonPlatform] Init Sensor for Dyson Fan
[12/31/2018, 5:44:01 PM] [DysonPlatform] Init Fan State for Dyson Fan
[12/31/2018, 5:44:01 PM] [DysonPlatform] Auto switch found. Remove this now
[12/31/2018, 5:44:01 PM] [DysonPlatform] Night mode button is added
HAP Warning: Characteristic 000000BF-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 000000B7-0000-1000-8000-0026BB765291. Adding anyway.
[12/31/2018, 5:44:01 PM] [DysonPlatform] Dyson Fan IP:10.0.0.21 Serial Number:DYSON-XXX-AU-XXXXXXXX-XXX
[12/31/2018, 5:44:01 PM] [DysonPlatform] Device serial number format valids
[12/31/2018, 5:44:01 PM] [DysonPlatform] Device cached. Try to update this
[12/31/2018, 5:44:01 PM] [DysonPlatform] Init Sensor for Dyson Fan
[12/31/2018, 5:44:01 PM] [DysonPlatform] Init Fan State for Dyson Fan
[12/31/2018, 5:44:01 PM] [DysonPlatform] Auto switch found. Remove this now
[12/31/2018, 5:44:01 PM] [DysonPlatform] Night mode button is added
HAP Warning: Characteristic 000000BF-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 000000B7-0000-1000-8000-0026BB765291. Adding anyway.
[12/31/2018, 5:44:01 PM] [DysonPlatform] Connected to ND1-AU-HMA0102A. subscribe now
[12/31/2018, 5:47:30 PM] [DysonPlatform] {"msg":"CURRENT-STATE","time":"2018-12-31T09:47:27.000Z","mode-reason":"PRC","state-reason":"ENV","dial":"OFF","rssi":"-61","product-state":{"fmod":"AUTO","fnst":"OFF","fnsp":"AUTO","qtar":"0003","oson":"ON","rhtm":"ON","filf":"3003","ercd":"NONE","nmod":"OFF","wacd":"NONE"},"scheduler":{"srsc":"2505","dstv":"0000","tzid":"0001"}}
[12/31/2018, 5:47:30 PM] [DysonPlatform] Update fan data from CURRENT-STATE - Dyson Fan
rubencodes commented 5 years ago

Just FYI y'all, I was having the exact same issue above, turned out I just had the IP address wrong so it wasn't connecting. I recommend checking your WiFi access point for its connected devices, looking at the device with the name set as your Dyson device serial number, and double-checking its IP address matches what you have in your config file.

philcrest commented 5 years ago

I later found out it was 100% IP address related. My network had removed the static IP reservations for the fans and they needed to be allocated again.

el1-x commented 5 years ago

Can confirm, it must have been something IP related. While i have a decent lease time on my local IP addresses, once i switched to a static assigned IP the issue corrected itself and everything has been working as intended since then.