-
-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for L60 SE #85
Comments
I second the support for the L60 SES! |
yes, please! |
I was looking into this, seems the TUYA_CODES are incorrect for this robovac. Yet to firgure out any of the codes, except for battery life, which is 163. Is there any documentation about these codes available? For reference, this is a response when the device is doing nothing: {'151': True, '156': True, '158': 'Turbo', '159': aTrue, '160': False, '161': 41, '163': 99} |
Where do we plug these in? Happy to test and feedback. |
Depends if you have main branch or better-dps branch. For main branch they are at the top of the 'vacuum' file, if I am not mistaken (currently on the other branch). On better-dps branch they are at the specific file for your vacuum. In our case this is T2278 (or at least for me, I have the hybrid, not sure if it's different but otherwise I expect T2277). In both cases, before it will even load, you need to add your vacuum. In the better-dps branch you copy the specific model file and add it to the list of vacs in init. In the main you can check the robovac file and add it to the list of 'L' models. If you are on better-dps branch, also make sure to make a comment for extra features (as they crash currently, possible because code is incorrect, not sure).
After all of this, a logger can be added to log everything. If you change the code of the battery to 161, you'll see that one works in the home panel. |
It's curious, if I start the robot or do something with it, the status does not change according to the Logger. Perhaps another api call is required? |
Should the developer read this, and willing to look into it. Some more messages from the device, when I start it via the Eufy app. It looks like it's encrypted. I noticed that '179' has 4 values which would match potential states the device is in. (positioning, cleaning, heading home, charging). These only reported after a first run tho. {'151': True, '156': True, '158': 'Turbo', '159': True, '160': False, '161': 41, '163': 99, '177': 'DAjZhNCLlIztzgFSAA==', '153': 'BBADGgA=', '178': 'DQiuzqvylIztzgESAR8=', '152': 'AggG', '179': 'FhIUEhIIEBABIGMozsPsswYwgcTsswY=', '173': 'GAoSMgoKAggBEgQIARgPOgQKAggBEgIIAQ==', '176': 'JgoAGgBSCBoAIgIIASoAWDBiFAoSCghOcjE4X0lvVBoGEKnC7LMG', '169': 'xxx'} |
Righto, so using the DPS branch I copied the 2273 config and renamed it to 2277 and added the reference to the model number in init. Using 161 the battery shows as 0%, and log shows the following:
|
I also get this error sometimes, seems to be when I clicked a button and then the sequence number goes haywire.. Not sure tho. In any case, the last 3 messages show it is working. At least the communication part is.. Can you try 163 for battery? That is what I have currently. |
One thing to add. Battery wont show in a default card (when the device is so-called offline). Go to the device info itself under settings -> devices. Should show there. |
Hmmm, no luck. It still shows 0%. I also don't seem to get the log state with the encrypted numbers that you got. |
Did you enable debug logging? |
Afraid so :( |
Mhh okay odd. I don't know why it won't work for you.. when I have more time I might look into it further. Should I find a proper solution I'll see if I can create a PR |
Some of these codes may be helpful: #42 (comment) |
|
I am having similar issues, my L60SES replaces a 15C MAX. I have removed the Eufy integration from HACS and rebooted. Amended the robots file to include the T2277 model number and when adding a device for some reason it identifies the L60SES and the name of the robot, burt gives it the MAC address of the old robot (15C MAX), even though this is removed from the Eufy app..... I can't control the robot or see the battery status sadly via HA. |
Hi all! Good news: I've been able to get my L60 SES to work in Home assistant! Ugly-but-working code is here https://github.com/maximoei/robovac/tree/L60-support So:
What is the integration able to do:
Very much not supported:
I'll try to work this back into the better-dps branch, but any help here is appreciated. Happy to hear your feedback as well! |
Nice! How did you find out the codes? |
This is great to see, I have cleaned out the old integration and installed this but I still only see just the battery entity. I just have the L60 |
Via the other work I referenced. Some of the error codes by seeing what is being logged in the integration
Sometimes it only starts reporting detailed state after I start (and stop) a cleaning cycle from the app. After that, session seems to 'stick'. Also, if you have errors in your log, please share |
Thanks for the feedback, must admit I'd not thought of triggering it via the app. I'll give that a try and see if it grabs the info |
Interesting! I also tried this but for me every response seemed encrypted or something.. glad you figured it out ! |
Was able to get my L60 SES (T2277) working on your fork. Nice work! Will test a full run later tonight. Had to make 2 minor changes to get it running:
Important The fork was updated to fix these issues in this commit. These changes are no longer necessary. |
That second bit helped me out, thanks! I have it running now but it always shows error despite being controllable but it's a massive improvement on just having the battery status :) |
I'm having the L60 remaining unavailable, what exactly did you change in the file? |
You need to check out the L60-support branch, which I don't think you can do from HACS. In my case, I cloned it and installed it in the custom components folder manually (via terminal). |
I started in "https://github.com/maximoei/robovac/tree/L60-support" and hit the green "code" button. I now have the files on my HD (using Git desktop). I copied the contents from "custom_components/robovac" into the HA "custom_components/robovac" folder (using the "file editor" add-on) and rebooted HA. However after adding the integration it is again the same issue (error in the log and just the not available battery entity). The error message is identical to what DesertNomadBear posted last week. When you say you installed it in custom components manually, do you mean you copied the files to that folder or is there more to it? Also besides the folder "custom_components" there are other files and folders that come with the clone. Do you have to do anything with those or does only the folder "custom_components" matter? |
Check the If you are actually on the correct branch, I need to see the file tree to understand how you did it. Also make sure you uninstalled the prior version first to make sure they're not conflicting and still using the old version somehow. |
Thanks a lot! You pointed me to where I got it wrong with your comments. For anybody who might be struggling with this as well. I used GitHub Desktop to open the Robovac repository, then selected the right branch (this is where I went wrong before). If you then hit "show in explorer" you are taken to all the files. Copy everything under "custom_components" to the same directory in your HA instance and reboot (I used the file editor add-on in HA to copy files from my HD to the RPi 4 that runs my HA). After rebooting you search for the Robovac integration and once it's added you need to start a cleaning run from the Eufy app to have the device become active in HA. Not really that hard once you figure out what to do. Copying all the files one-by-one was a bit tedious, but this only needs to be done once. I suppose that using the terminal there are easier ways to copy the files at once. |
@maximoei - Any idea if it's possible to send the do not disturb command for on and off on this fork and have you managed to work out how it's done? The entity seems stable when controlling the on/off via the app and the string is unique based on the set schedule in the app. |
@maximoei Hoi!
If you have some spare time, could you please have a look? :) Many thanks! |
#46 - @Casper9228 , I don't know what Incomplete read means, but I think the issue is closer to the tuya module, rather than the handling of the messages. |
I followed the instructions and the device is detected and it can read its states (charging, cleaning, docked), but I have no controls in HA and it just says the entity is unavailable. Any ideas? When added to Alexa through HA cloud I can control it |
I think there is a bug where the initial state is always unavailable when you first set it up. Try using the official app to start a cleaning cycle, then see if the controls in HA start working. |
Took a little bit but that solved it, thank you! |
Yes, this is because the vaccuum only starts reporting it's detailed state after start/stop of a cleaning cycle from the app, before that, no data is available and therefore the entity is also unavailable. After that initial use of the app the 'session' sticks, also in HA. |
I'm not sure if that's the case. When you open the Eufy app, it knows it's connected and available right away and is able to load all that detailed information. Maybe some other API you need to implement? Regardless, I think it might be a better UX to assume it's available when the device is set up initially. The UI controls are disabled if it's unavailable, which gives a poor experience as shown above. Especially if the user just set up the device, that would almost certainly mean it's available. |
Got this to work for my L60, thank you!! I also have an L50 which seems nearly identical but it is not recognized. Any advice on how to port this over to the L50? |
Amazing, thanks so much! Just go it working. Cheers maximoei! |
@valkaholic -> T2275 version of L50 is included in the branch details here |
Thank you for doing this. Got my L60 SES working in HA. |
Second that, much appreciated for the work on this!!On Oct 16, 2024, at 10:12 AM, cmdrpicard ***@***.***> wrote:
Thank you for doing this. Got my L60 SES working in HA.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
@maximoei Is there a way to empty the bin into the base for L60? I got the vacuum working with your fork already btw. Another vacuum I have is emptied using a script like:
|
Maximoei,
Any chance Room cleaning and Map seeing could be developed? Would be a game changer with the L60 SES... Just asking.. Great work btw! |
This works for me to empty into the bin (but not the cutting action):
|
@maximoei , thanks so much for your hard work on this. It's much appreciated. Sorry to be so dumb on this, but are you saying above that the L50 vacuum is now again part of this fork, and doesn't need to be treated differently than the L60 ? Just making sure I am reading this correctly. |
I added all the files from the github repo using the file manager from HA to the HA installation. I'm trying to add the L60. The file T2277 is available in the map. Please help |
FYI I got the L50 working using this fork and adding T2265. For some reason it was never recognized with T2275. |
Thank you valkaholic. I managed to get it to work with the L60. |
Where do I find the T2265 file ? It was not in the big batch of them that I copied down. |
It's not in there. You can just duplicate the T2267 file and rename to T2265, and also change the reference in the code to T2265 (line 5). Add the reference to the init.py file (from .T2265 import T2265) and reboot. It should pick up the L50, but you will have to start the vacuum once from the Eufy app to get full functionality. Actually, I need to do that every time HA is reset. |
Thank you @valkaholic , I appreciate you taking the time to help out with that. It was not too obvious to me. |
Still cannot get it added. I edited this file by changing line 5 to read "class T2265:" /homeassistant/custom_components/robovac/vacuums/T2265.py I then edited this file: by adding the from .T2265 import T2265 and later down adding "T2265": T2265, Is there anything else I need to change ? I launch it from the Eufy app and it only shows a single entry of battery that shows unavailable. There is also another init__.py in the directory above this one. Its here: /homeassistant/custom_components/robovac/init.py I have NOT edited it at all. Please advise if you see what I am doing wrong. |
That should be everything. Before launching in the native Eufy app you configured the device in the Eufy Robovac integration? |
The unit is detected, but has no entities except for battery, which is "unavailable". Please add support for the L60 SE.
The text was updated successfully, but these errors were encountered: