Replies: 30 comments 21 replies
-
@tlpbu The camera was tested with Hypfer firmware on S5 and V1.. there was no issue during the tests I did before releasing it. |
Beta Was this translation helpful? Give feedback.
-
Will try ASAP |
Beta Was this translation helpful? Give feedback.
-
Unfortunatelly will not be so quick for me to verify because HACS isntallation dies not applow to select version as it is show in instruction - latest version is always installed. |
Beta Was this translation helpful? Give feedback.
-
Okay I just did a fresh install of the Camera for my V1 and on RPI4 no problem with 1.5.7 for instance on my test environment I do currently have a beta release of the OS on it. From the logs anyhow it looks like you had an issue with the internet connection those errors for instance occurs when HA isn't able to get the connection to the store. |
Beta Was this translation helpful? Give feedback.
-
Sorry, I can't get what do you mean with "HACS installation dies", it looks you have some internet connection issue. I just deleted all entities and removed the installed camera, then reinstall and setup all again and it did work also with 1.5.7, when you select an older version HACS need a little of time (the selection filed is grey and after a while it become again white -> editable). Then you can press download. If all of above do not work you can always try the manual installation method. I will help you to troubleshoot this (not sure if it is actually a camera issue at this point).. I would advise you reset your modem and then try again. |
Beta Was this translation helpful? Give feedback.
-
Sorry, autocorrect probably. Rephrased below.
Unfortunatelly will not be so quick for me to verify because HACS installation does not allow to select version as it is shown in instruction - latest version is always installed. |
Beta Was this translation helpful? Give feedback.
-
Did a fresh setup of the camera again just to double check
Upss okay this happens because of the new UI of HACS, if you press download then there is the possibility to select the version by the way I try again to remove all and setup as scratch 1.5.7 and it did work on.. @tlpbu please try once again to setup 1.5.7 with HACS.
|
Beta Was this translation helpful? Give feedback.
-
So I just did reinstall v1.5.7 carefully step by step with integration debug enabled. Managed to reproduce the issue yet root cause is slightly different - this has something to do with handling multiple vacuums because starts to happen only once I add second vaccuum (which as per readme is supported). In first attempt I quicky added both vaccums to integration at once so did not consider it as a reason. All I can get from logs in hurry before HA restarts again:
|
Beta Was this translation helpful? Give feedback.
-
Removed second vaccuum from integration and HA restarts loop stopped and camera for first vacuum works so this definately is the root cause. Updated bug title for future reference. |
Beta Was this translation helpful? Give feedback.
-
I tested it with two vacuums too.. so now we need just to understand what it is happening in the background. So far I see from the logs looks all okay.. but I will need some time and more details will come back to you soon 😉 |
Beta Was this translation helpful? Give feedback.
-
@tlpbu Home Assistant have a backup of the log file in the config folder. Do you have a file editor or vscode if not Samba on your home assistant instance? If you have one of those should be possible to download or simply copy the entires from the PI4 (using the web browser) the file home-assistant.log.1 should contain the errors or data we need to conclude what is happening. Additionally there's also an home-assistant.log.fault file that you could check to see what caused the restart. |
Beta Was this translation helpful? Give feedback.
-
I changed system wide logger to debug level to and added secont vaccuum to integration to reproduce reboot loop. However nothing suspicios was logged moments before restarting.
I doubt Wild guess is maybe this is related to insufficient memory 4GB on RPi4 when it has to process 2 vacuums data. My experience is that if something cannot be logically explained it lack of RAM of storage. |
Beta Was this translation helpful? Give feedback.
-
I use 8GB version of the PI4 and 4GB isn't really recommended for Home Assistant in general so far I know. |
Beta Was this translation helpful? Give feedback.
-
This is tough issue since nothing apparent is logged as error. I did couple more experiments and narrowed down the problem - it is not so much of an issue with handling multiple vacuums but rather specific Dreame D9 Pro vacuum which I always added as second one in addition to working Roborock V1. This time I removed working Roborock V1 integration and then added Dreame D9 Pro vacuum as the only one and sure enough HA reboot loops started. Logs in debug more show nothing hinting:
|
Beta Was this translation helpful? Give feedback.
-
@tlpbu I can't see were is the problem and again I would need the full logs of this "issue" you are reporting if you are willing to share it to me I will gave you an email address. In general two vacuum can run but this is the current consumption of the camera with both vacuums one in segment clean and the other in zone clean. No issues to start both cameras for instance on this configuration. I'll try to buy a PI3b+ and use that to gain the specs we need. |
Beta Was this translation helpful? Give feedback.
-
I propose we skip RPi performance hypothesis at least for now and thus save money on buying PI3b+. As I mentioned in previous comment I think somehow problem lies in specific vacuum Dreame D9 Pro. Seems strange to me since technically integration is with same thing - Valetudo but I simply do not know how integrations is implemented. |
Beta Was this translation helpful? Give feedback.
-
In the wiki section there is an explanation of how the camera works.. the D9 works so far I know well. I did had from other users reports that somehow mqtt is getting wrong the configuration of the vacuums.. apparently reinstalling the MQTT add on did help in that cases. The camera is waiting for the mqtt payload with the map_data of then the mqtt is unzipped and the json is processing with numpy an image array.. I'm a little busy right now personally but we solve this.. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I am now fairly confident failure leading to HA reboot loops is somehow caused by inability to parse messages content in
|
Beta Was this translation helpful? Give feedback.
-
I can delete one of the topic and probably reproduce the phenomena you faced, it this is the problem then I can fix it quite easily, thank really much for you assistance in this trouble shooting... as soon I will release the new patch for this issue will close it or let you know. I will change the subject because this shouldn't be related to the specific model of the vacuum. |
Beta Was this translation helpful? Give feedback.
-
Just to clarify Missing map-data topic of the vacuum does not cause Ha reboots are new bug title says. If there is not such topic in MQTT broker HA behaves properly excepts camera not having any image of course. |
Beta Was this translation helpful? Give feedback.
-
Then you need to reinstall/recofingure the broker just to be sure.. https://community.home-assistant.io/t/valetudo-vacuums-map-camera-for-home-assistant/600182/51. Anyway first... see below.
If this is persisting try to change the topic of the vacuum to something completely different it should start with valetudo / vacuum_D9_Servantess.. remove the camera first please and then set it back as soon the vacuum is setup and map data should be already there (no need to change that), then add the camera for the D9_ Servantess.. and let's see what happens.. |
Beta Was this translation helpful? Give feedback.
-
@tlpbu I'll move this to discussions at this point we concluded that the camera isn't guilty.. for the restart if you agree. |
Beta Was this translation helpful? Give feedback.
-
I did change vacuum identifier in Valetudo MQTT connection settings hence it was considered completely another device by HA so all entities were created new by HA yet it was still the same problem. Summarizing I thing this is some problem in parsing map-data messages content. Can we somehow test it by passing exact message to some unit/ integration test or during debugging? |
Beta Was this translation helpful? Give feedback.
-
Done.. and also with "vacuum" as Topic Prefix no problem on my PI4.. note I had to put both Topic Prefix and Idetifier for HA to recognize the vacuum.. and the camera was deleted for valetudo/GlossyHardToFindNarwhal as the entity in the MQTT.. the card of course was setup with the new camera after vacuum/GlossyHardToFindNarwhal was discovered from MQTT. So no problem with MQTT, no problem with the camera..and of course with the vacuum firmware for instance on S5. If you post a json of the D9 Pro from the browser yourvacuum/api/v2/robot/state/map (valetudo rest api) I car run it on my test environment to check if there is any problem parsing the data.. thanks once again. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@tlpbu tested and the map is output without any issue (if you want I can show you the result).
Also loaded via home assistant the json was rendered below the when the image is output.
|
Beta Was this translation helpful? Give feedback.
-
mmmmm really? then give me a couple of minutes and let me check how we can avoid this and catch were is the problem. Thanks a lot for the info. Edit:
There are other options such as ValetudoPNG if you feel confident to use it please do, anyhow please also be so kind to wait until we can confirm that whatever it is happening and HA do not restart when you setup the camera.. this mean within the next release would be really appreciated if you would give it a try. |
Beta Was this translation helpful? Give feedback.
-
@tlpbu as discussed v1.5.7.1 is published and contain what above not mentioned in the RN that I will adjust later.. if the CPU goes over 80% but the first image for instance must be created the camera will return the last image without processing. |
Beta Was this translation helpful? Give feedback.
-
Didn't get any feedback here this discussion is getting closed. |
Beta Was this translation helpful? Give feedback.
-
Checklist
The problem
After fresh installation of Valetudo Vacuum Camera and restart on HA on RPi4 constant Home Assistant reboots start as soon as Vacuum device id is set in integration setup form. This unfortunatelly makes Valetudo Vacuum Camera unusable.
Luckily there is ~15 sec timeslot when HA has loaded enough to be able to access /config/integrations/dashboard and delete Valetudo Vacuum Camera integration. Then reboots stop immediately.
Nothing specific can be observed in HA logs execpt most likely unrelated:
What version of an integration has described problem?
v.1.5.7
What was the last working version of an integration?
No response
What vacuum model do you have problems with?
Dreame D9 Pro
Please firmware installed on your Vacuum.
2023.12.0
What version of Home Assistant do you use?
2024.1.5
What type of installation are you running?
Home Assistant Supervised
Camera's settings.
No response
Logs or Errors shown in the HA snapshots (please enable the Debug Mode)
No response
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions