Giter VIP home page Giter VIP logo

Comments (17)

loscalinohacs avatar loscalinohacs commented on July 19, 2024 1

Updated to 0.8.0, configuration worked and 1 device successfully recognized, 3 additional entities recognized and working: battery_charging, battery_level and bin_full.
Well done!

from ha-dyson.

shenxn avatar shenxn commented on July 19, 2024

Can you try running the get_devices.py directly from https://github.com/shenxn/libdyson? See if it can successfully get all information needed for your devices.

from ha-dyson.

loscalinohacs avatar loscalinohacs commented on July 19, 2024

yes it works, I have executed a bash inside the container and then cloned the project, this is the result:

bash-5.0# python get_devices.py
Please choose your account region
1: Mainland China
2: Rest of the World
Region [1/2]: 2
Region code: IT
Email: *****@gmail.com
Password:
Verification code: 557193

Serial: D8R-EU-****934A
Name: Aspirapolvere
Device Type: 276
Credential: *******==

Serial: PT4-EU-K****A
Name: Studio
Device Type: 455
Credential: *****==

--
Today I will cleanup everything and try again the configuration process from scratch.
Thanks for your help.

from ha-dyson.

loscalinohacs avatar loscalinohacs commented on July 19, 2024

I get the same error also after reinstalling everything from scratch, a couple more tests I did that can help your analysis:

I tried adding the device using HA Integration ha-dyson-local and filled all the fields using get_devices.py output, after a while it says "Failed to connect" and nothing in the logs.
Then I tried to connect from HA container to dyson vacuum and it worked, telnet 192.168.0.12 1883 was successful.
Then I have installed mqtt explorer on my machine and successfully connected to 192.168.0.12 port 1883 using serial as username and Credential as password, I can see some topics like N223/initialconnection/status and N223/initialconnection/credentials

from ha-dyson.

shenxn avatar shenxn commented on July 19, 2024

I noticed that there is a device of type 276 in your device list. What is the actual model of that device?

from ha-dyson.

loscalinohacs avatar loscalinohacs commented on July 19, 2024

It is a Dyson RB02, aka Dyson 360 Eye heurist.

https://www.dyson.it/aspirapolvere/robot/dyson-360-heurist

Increased log to debug ant it says:

2021-03-14 09:31:48 INFO (MainThread) [libdyson.dyson_device] Connected to device D8R-EU-****A
2021-03-14 09:31:58 DEBUG (Thread-108) [libdyson.dyson_device] Disconnected with result code 0

from ha-dyson.

shenxn avatar shenxn commented on July 19, 2024

Thanks. That device is actually not supported yet. And I couldn't find much info about the MQTT protocol of that device. This is the cause of the error log you see. It will be very helpful if you can help me figure that out. Can you try to connect to the device with MQTT explorer and send some commands through your Dyson mobile app and see if you can see some data under topics like */*/status and */*/command.

from ha-dyson.

loscalinohacs avatar loscalinohacs commented on July 19, 2024

Sure will do, will send you an initial trace and then you can ask me more details.

from ha-dyson.

loscalinohacs avatar loscalinohacs commented on July 19, 2024

I have sent you the first sample by email. Hope it helps.

from ha-dyson.

shenxn avatar shenxn commented on July 19, 2024

@loscalinohacs I've received that. At a first glance, it seems that the protocol is pretty much the same as Dyson 360 Eye (N223). I should be able to add support to this very soon.

from ha-dyson.

loscalinohacs avatar loscalinohacs commented on July 19, 2024

Great news! ok, feel free to ask me more details and tests if needed, thanks a lot.

from ha-dyson.

shenxn avatar shenxn commented on July 19, 2024

Can you also do some operations like set power mode, run a full clean, stop, resume, back to home. You don't need to finish the clean. You can stop it as long as your robot starts moving. It'll be helpful if you can post some screenshot of the mobile app as well. Thanks a lot.

from ha-dyson.

loscalinohacs avatar loscalinohacs commented on July 19, 2024

mqtt trace v2.0 and screenshots sent by mail, the protocol seems simple and I hope it did not change between models.

from ha-dyson.

shenxn avatar shenxn commented on July 19, 2024

@loscalinohacs I released version 0.8.0. It now has basic support for 360 Heurist.

from ha-dyson.

shenxn avatar shenxn commented on July 19, 2024

That's a good news. I may add zone configured cleaning later through custom services but that is going to be pretty tricky. There is one thing I would like to know though, is your 360 Heurist has the WiFi SSID and password info on a sticker used for setup just like any other Dyson devices? If so, can you send me a photo or just information on it? It is related to #17.

from ha-dyson.

loscalinohacs avatar loscalinohacs commented on July 19, 2024

there is a sticker with mac address but no wifi ssid/pass, it seems that this model uses the app to send wifi SSID and pass to the device.
The only interesting thing I have found on the sticker is an 8 digits code "nnnn-nnnn" that could be related with device pairing.

This video shows how robot is paired with local wifi using app:

https://www.youtube.com/watch?v=svDMkf3REss&ab_channel=Dyson

from ha-dyson.

shenxn avatar shenxn commented on July 19, 2024

@loscalinohacs Thanks for confirm. Looks like heurist uses Bluetooth instead of the old WiFi AP. Closing this issue. I'll ping you for testing if I figured out how to implement the zone based cleaning.

from ha-dyson.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.