sca075 / mqtt_vacuum_camera

Camera Integration for Home Assistant to export and render all Vacuums connected via MQTT( including Valetudo Hypfer and RE(rand256)) Maps.
Apache License 2.0
93 stars 5 forks source link

Proxmox VE: The map fails to update after an unpredictable time interval. #75

Closed kodbuzz closed 7 months ago

kodbuzz commented 7 months ago

Checklist

The problem

In a fresh installation of version 1.5.7.1 with the Viomi V7, also known as Mi Robot Vacuum-Mop P, I'm utilizing both 'Hypfer/lovelace-valetudo-map-card' and 'Valetudo Vacuum's Camera' in conjunction with 'lovelace-xiaomi-vacuum-map-card.' However, I've noticed that the map image stops updating pretty randonly(usually within 10 min it stops) when using 'Valetudo Vacuum's Camera,' while the maps from 'Hypfer/lovelace-valetudo-map-card' and the Web GUI of Valetudo are functioning as expected.

Toggling any option that restarts the addon in the 'Configure - Valetudo Camera Options' workflow gets it working again for a brief period. However, it eventually stops again.

image

What version of an integration has described problem?

1.5.7.1

What was the last working version of an integration?

1.5.7.1

What vacuum model do you have problems with?

Mi Robot Vacuum-Mop P (Viomi v7)

Please firmware installed on your Vacuum.

0047 - Valetudo 2023.12.0

What version of Home Assistant do you use?

2024.1.6

What type of installation are you running?

Home Assistant OS

Camera's settings.

No response

Logs or Errors shown in the HA snapshots (please enable the Debug Mode)

Updating valetudo_vacuum_camera camera took longer than the scheduled update interval 0:00:03

Additional information

No response

sca075 commented 7 months ago

@kodbuzz I did acknowledge this too, but I didn't get that message (the reason is that the code did slow down due to the use of GC too often). I'm going to release another version in the next minutes (that should be equal to the 1.5.7 but with some CPU and memory safe guard) for another issue I'm trying to understand.. on Intel the update of the image is almost same as the one on the vacuum map... the technology used (java is faster than python) is different so yep there could be some delay but no stop on the rendering.. please give me a couple of minutes and we should be ready for fixing this ;)

sca075 commented 7 months ago

@kodbuzz in few minutes the v1.5.7.2 should be available please let me know if the issue can be closed ;) p.s. if you are satisfied please start this project :)

kodbuzz commented 7 months ago

After installing v1.5.7.2, the map turned completely gray following the initial reboot of HA. However, it returned to normal after restarting the addon. I plan to conduct a few test runs after the local quiet hours conclude, just a few hours, since unfortunately, the elderly woman who lives downstairs is unwell at home. I hope she recovers soon, and I don't want to disturb her.

btw, just starred this awesome project! :)

sca075 commented 7 months ago

well hope all will be okay with your neighbour, crossing the fingers for that.. anyhow I did a test too and here I share the result.. the rendering looks to be back to normal with the v1.5.7.2, I started the room cleaning and this video show that the camera can be just 1 / 2 frames behind.. and thanks for the star it really helps 👍

https://github.com/sca075/valetudo_vacuum_camera/assets/82227818/ed8cc591-33ba-461e-9d43-50cfd077843c

Please note that this run was on PI4 8GB with home assistant OS and the last beta core version of HA installed ;)

kodbuzz commented 7 months ago

I apologize for delivering discouraging news. After an unpredictable period, the map on my end turned completely gray once again, similar to when it ceased updating but instead became entirely gray. My setup involves Home Assistant OS [stable] running on Proxmox VE, with 4GB of RAM assigned and a CPU Pentium N6000 with 2 cores.

update: image Current - v1.5.7.2

image Prevous - v1.5.7.1

The system load before and after upgrading to v1.5.7.2 doesn't show much difference.

sca075 commented 7 months ago

@kodbuzz Proxmox VE unfortunately I didn't test it yet.. but let me explain.. I will try to setup a VE and investigate it once per all. in General (Edited)

sca075 commented 7 months ago

Upss I probably see the problem anyhow would you check the logs please and confirm? Estimated Margin of Memory usage: 2400.0 MiB Available memory: 2712.7 MiB??
if is so I can give you an hint for a small test we can make: in the valetudo/hypfer/image_handler.py there is..

def check_memory_with_margin(self, array, margin=24):

the value 2400.0 MiB can be converted to 1200 MiB by changing margin=12 (right now is 100% more than what required) if you can edit this value okay else I will do it on the repository "main" then you can download the "main" from HACS and we can give it a try.

kodbuzz commented 7 months ago

Happy and feeling honored if I could be of any help. Here's the debug log.

2024-02-05 14:26:57.064 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Camera desertedpalenightingale Starting up.. 2024-02-05 14:27:08.683 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] Received valetudo/DesertedPaleNightingale image data from MQTT 2024-02-05 14:27:08.683 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] valetudo/DesertedPaleNightingale: Received vacuum docked status. 2024-02-05 14:27:08.685 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] valetudo/DesertedPaleNightingale: Received vacuum Error: No error 2024-02-05 14:27:11.233 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] Processing valetudo/DesertedPaleNightingale data from MQTT 2024-02-05 14:27:11.236 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] valetudo/DesertedPaleNightingale: Extracting JSON Complete 2024-02-05 14:27:11.455 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Composing the image for the camera. 2024-02-05 14:27:11.455 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] Vacuum JSon ID: 773a448d-59d7-4cf5-8b69-7389fc856e64 at Frame 0. 2024-02-05 14:27:11.461 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Got zones: {} 2024-02-05 14:27:11.464 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Got virtual walls: [] 2024-02-05 14:27:11.467 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Got the points in the json: {'robot_position': [{'class': 'PointMapEntity', 'metaData': {'angle': 270}, 'points': [1963, 2001], 'type': 'robot_position'}], 'charger_location': [{'class': 'PointMapEntity', 'metaData': {'angle': 180.006957272999}, 'points': [1978, 2001], 'type': 'charger_location'}]} 2024-02-05 14:27:11.467 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale Position: [('x', 1963), ('y', 2001), ('angle', 270)] 2024-02-05 14:27:11.467 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] Charger Position: [('x', 1978), ('y', 2001)] of desertedpalenightingale 2024-02-05 14:27:11.467 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] All obstacle positions: [] 2024-02-05 14:27:11.467 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Calculating the hash of the image. 2024-02-05 14:27:11.467 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Layers to draw: dict_keys(['floor', 'wall', 'segment']) 2024-02-05 14:27:11.468 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Empty image with background color 2024-02-05 14:27:11.667 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Overlapping Layers 2024-02-05 14:27:12.205 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Rooms data extracted! 2024-02-05 14:27:12.205 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale changed room.. searching.. 2024-02-05 14:27:12.205 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale is in リビングルーム 2024-02-05 14:27:12.205 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Completed base Layers 2024-02-05 14:27:12.205 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Copying the array. 2024-02-05 14:27:12.325 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Frame number 1 2024-02-05 14:27:12.325 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Estimated Margin of Memory usage: 1464.84375 MiB 2024-02-05 14:27:12.327 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Available memory: 2687.8 MiB 2024-02-05 14:27:12.328 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Copying the array. 2024-02-05 14:27:14.295 WARNING (MainThread) [homeassistant.components.camera] Updating valetudo_vacuum_camera camera took longer than the scheduled update interval 0:00:03 2024-02-05 14:27:14.713 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.utils.draweble] Drawing desertedpalenightingale Robot With Angle: 90 2024-02-05 14:27:14.758 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Auto cropping the image with rotation: 0 2024-02-05 14:27:14.758 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Image original size (4000, 4000). 2024-02-05 14:27:16.010 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Found crop max and min values (y,x) (2084, 3204) (930,1880)... 2024-02-05 14:27:16.010 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Calculated trims coordinates right 3354, bottom 2234, left 1730, up 780. 2024-02-05 14:27:16.010 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Calculated trimmed image width 1624 and height 1454 2024-02-05 14:27:16.010 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Auto Crop and Trim Box data: (1730, 780, 3354, 2234) 2024-02-05 14:27:16.010 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Auto Crop and Trim image size: (1624, 1454) 2024-02-05 14:27:16.236 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.camera_processing] State attributes rooms update: {'2': {'number': '2', 'outline': [(1995, 1490), (2135, 1490), (2135, 2065), (1995, 2065)], 'name': None, 'x': 2065, 'y': 1777}, '10': {'number': '10', 'outline': [(1950, 1335), (2150, 1335), (2150, 1490), (1950, 1490)], 'name': '台所', 'x': 2050, 'y': 1412}, '11': {'number': '11', 'outline': [(2690, 935), (3160, 935), (3160, 1255), (2690, 1255)], 'name': '寝室', 'x': 2925, 'y': 1095}, '12': {'number': '12', 'outline': [(2435, 1130), (2680, 1130), (2680, 1275), (2435, 1275)], 'name': '廊2', 'x': 2557, 'y': 1202}, '13': {'number': '13', 'outline': [(2300, 1280), (2725, 1280), (2725, 1530), (2300, 1530)], 'name': '廊1', 'x': 2512, 'y': 1405}, '15': {'number': '15', 'outline': [(1885, 1495), (2365, 1495), (2365, 2075), (1885, 2075)], 'name': 'リビングルーム', 'x': 2125, 'y': 1785}} 2024-02-05 14:27:16.236 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] Getting desertedpalenightingale Calibrations points. 2024-02-05 14:27:16.236 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.camera_processing] Suspended the camera data processing for: desertedpalenightingale. 2024-02-05 14:27:16.605 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera_processing] desertedpalenightingale: Got 1 elements list.. 2024-02-05 14:27:16.754 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Snapshot acquired during docked Vacuum State. 2024-02-05 14:27:16.754 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Image update complete 2024-02-05 14:27:16.754 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Adjusted desertedpalenightingale: Frame interval: 5.572 2024-02-05 14:27:16.802 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale System CPU usage stat: 30.55% 2024-02-05 14:27:16.803 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale Camera Memory usage in GB: 0.61, 16.05% of Total. 2024-02-05 14:27:17.914 WARNING (MainThread) [homeassistant.helpers.entity] Update of light.tapo_camera_2cd5_floodlight_timed is taking over 10 seconds 2024-02-05 14:27:29.707 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] Received valetudo/DesertedPaleNightingale image data from MQTT 2024-02-05 14:27:32.337 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] No data from valetudo/DesertedPaleNightingale or vacuum docked 2024-02-05 14:27:32.340 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Image not processed. Returning not updated image. 2024-02-05 14:27:32.386 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale System CPU usage stat: 0.0% 2024-02-05 14:27:32.386 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale Camera Memory usage in GB: 0.65, 17.01% of Total. 2024-02-05 14:28:30.388 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] Received valetudo/DesertedPaleNightingale image data from MQTT 2024-02-05 14:28:32.388 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] No data from valetudo/DesertedPaleNightingale or vacuum docked 2024-02-05 14:28:32.392 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Image not processed. Returning not updated image. 2024-02-05 14:28:32.395 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale System CPU usage stat: 0.0% 2024-02-05 14:28:32.395 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale Camera Memory usage in GB: 0.64, 16.64% of Total. 2024-02-05 14:28:35.339 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:28:38.340 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:28:38.342 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:28:41.341 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:28:41.342 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:28:44.342 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:28:44.342 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:28:47.343 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:28:47.344 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:28:50.346 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:28:50.347 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:28:53.346 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:28:53.347 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:28:56.348 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:28:56.348 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:28:59.349 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:28:59.349 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:29:02.350 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:29:02.351 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:29:05.351 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:29:05.352 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:29:08.352 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:29:08.353 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:29:11.353 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:29:11.354 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:29:14.356 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:29:14.357 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:29:17.357 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:29:17.358 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:29:20.358 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:29:20.359 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:29:23.358 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:29:23.359 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:29:26.393 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:29:26.395 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:29:29.394 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:29:29.395 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:29:31.090 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] Received valetudo/DesertedPaleNightingale image data from MQTT 2024-02-05 14:29:32.394 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:29:32.395 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:29:35.395 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:29:35.396 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:29:38.395 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:29:38.397 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:29:41.396 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:29:41.396 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:29:44.396 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:29:44.397 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:29:47.397 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:29:47.399 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:29:50.398 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:29:50.399 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:29:53.423 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:29:53.424 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:29:56.424 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:29:56.426 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:29:59.425 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:29:59.425 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:30:02.425 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:30:02.426 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:30:05.426 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:30:05.427 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:30:08.428 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:30:08.428 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:30:11.438 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:30:11.440 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:30:14.439 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:30:14.440 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:30:17.454 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:30:17.455 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:30:20.453 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:30:20.455 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:30:23.455 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:30:23.456 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:30:26.455 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:30:26.456 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:30:29.455 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:30:29.456 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:30:32.457 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:30:32.458 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:30:35.457 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:30:35.459 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:30:38.459 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:30:38.461 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:30:41.459 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:30:41.461 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:30:44.459 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:30:44.460 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:30:47.460 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:30:47.462 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:30:50.501 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:30:50.502 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:30:53.502 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:30:53.503 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:30:56.503 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:30:56.504 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:30:59.504 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:30:59.505 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:31:02.506 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:31:02.507 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:31:05.507 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:31:05.509 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:31:08.508 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:31:08.510 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:31:11.509 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:31:11.509 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:31:14.509 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:31:14.511 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:31:17.510 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:31:17.511 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:31:20.512 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:31:20.513 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:31:23.512 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:31:23.513 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:31:26.513 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:31:26.513 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:31:29.514 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:31:29.520 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:31:32.514 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:31:32.515 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:31:35.515 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:31:35.517 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:31:38.516 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:31:38.517 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:31:41.517 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:31:41.517 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:31:44.517 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:31:44.519 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:31:47.518 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:31:47.520 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:31:50.520 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:31:50.521 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:31:53.520 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:31:53.521 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:31:56.521 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:31:56.522 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:31:59.526 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:31:59.533 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:32:02.527 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:32:02.529 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ...

kodbuzz commented 7 months ago

Upss I probably see the problem anyhow would you check the logs please and confirm? Estimated Margin of Memory usage: 2400.0 MiB Available memory: 2712.7 MiB?? if is so I can give you an hint for a small test we can make: in the valetudo/hypfer/image_handler.py there is..

def check_memory_with_margin(self, array, margin=24):

the value 2400.0 MiB can be converted to 1200 MiB by changing margin=12 (right now is 100% more than what required) if you can edit this value okay else I will do it on the repository "main" then you can download the "main" from HACS and we can give it a try.

Update: I suppose adjusting the margin to 12 did the trick in my case at least. Everything looks perfect now, and I'm keeping a close eye on it. So far so good.

Here goes the debug log after the change.

2024-02-05 14:50:53.743 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Camera desertedpalenightingale Starting up.. 2024-02-05 14:51:05.219 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] Received valetudo/DesertedPaleNightingale image data from MQTT 2024-02-05 14:51:05.219 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] valetudo/DesertedPaleNightingale: Received vacuum docked status. 2024-02-05 14:51:05.219 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] valetudo/DesertedPaleNightingale: Received vacuum Error: No error 2024-02-05 14:51:07.533 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] Processing valetudo/DesertedPaleNightingale data from MQTT 2024-02-05 14:51:07.535 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] valetudo/DesertedPaleNightingale: Extracting JSON Complete 2024-02-05 14:51:07.596 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Composing the image for the camera. 2024-02-05 14:51:07.596 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] Vacuum JSon ID: 1669fef5-39a9-4d18-8d81-08fce12ea432 at Frame 0. 2024-02-05 14:51:07.602 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Got zones: {} 2024-02-05 14:51:07.604 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Got virtual walls: [] 2024-02-05 14:51:07.607 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Got the points in the json: {'robot_position': [{'class': 'PointMapEntity', 'metaData': {'angle': 270}, 'points': [1963, 2001], 'type': 'robot_position'}], 'charger_location': [{'class': 'PointMapEntity', 'metaData': {'angle': 180.006957272999}, 'points': [1978, 2001], 'type': 'charger_location'}]} 2024-02-05 14:51:07.607 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale Position: [('x', 1963), ('y', 2001), ('angle', 270)] 2024-02-05 14:51:07.607 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] Charger Position: [('x', 1978), ('y', 2001)] of desertedpalenightingale 2024-02-05 14:51:07.607 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] All obstacle positions: [] 2024-02-05 14:51:07.607 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Calculating the hash of the image. 2024-02-05 14:51:07.607 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Layers to draw: dict_keys(['floor', 'wall', 'segment']) 2024-02-05 14:51:07.607 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Empty image with background color 2024-02-05 14:51:07.787 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Overlapping Layers 2024-02-05 14:51:08.815 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Rooms data extracted! 2024-02-05 14:51:08.815 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale changed room.. searching.. 2024-02-05 14:51:08.815 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale is in リビングルーム 2024-02-05 14:51:08.815 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Completed base Layers 2024-02-05 14:51:08.815 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Copying the array. 2024-02-05 14:51:08.875 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Frame number 1 2024-02-05 14:51:08.876 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Estimated Margin of Memory usage: 732.421875 MiB 2024-02-05 14:51:08.885 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Available memory: 2701.7 MiB 2024-02-05 14:51:08.885 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Copying the array. 2024-02-05 14:51:11.533 WARNING (MainThread) [homeassistant.components.camera] Updating valetudo_vacuum_camera camera took longer than the scheduled update interval 0:00:03 2024-02-05 14:51:11.821 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.utils.draweble] Drawing desertedpalenightingale Robot With Angle: 90 2024-02-05 14:51:11.824 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Auto cropping the image with rotation: 0 2024-02-05 14:51:11.824 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Image original size (4000, 4000). 2024-02-05 14:51:12.854 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Found crop max and min values (y,x) (2084, 3204) (930,1880)... 2024-02-05 14:51:12.854 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Calculated trims coordinates right 3354, bottom 2234, left 1730, up 780. 2024-02-05 14:51:12.854 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Calculated trimmed image width 1624 and height 1454 2024-02-05 14:51:12.854 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Auto Crop and Trim Box data: (1730, 780, 3354, 2234) 2024-02-05 14:51:12.854 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Auto Crop and Trim image size: (1624, 1454) 2024-02-05 14:51:13.034 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.camera_processing] State attributes rooms update: 2024-02-05 14:51:13.034 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] Getting desertedpalenightingale Calibrations points. 2024-02-05 14:51:13.034 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.camera_processing] Suspended the camera data processing for: desertedpalenightingale. 2024-02-05 14:51:13.059 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera_processing] desertedpalenightingale: Got 1 elements list.. 2024-02-05 14:51:13.210 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Snapshot acquired during docked Vacuum State. 2024-02-05 14:51:13.210 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Image update complete 2024-02-05 14:51:13.210 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Adjusted desertedpalenightingale: Frame interval: 5.724 2024-02-05 14:51:13.255 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale System CPU usage stat: 30.25% 2024-02-05 14:51:13.255 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale Camera Memory usage in GB: 0.59, 15.54% of Total.

kodbuzz commented 7 months ago

Oh no, it turned gray again just now, with the debug log reads:

2024-02-05 14:51:13.210 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Snapshot acquired during docked Vacuum State. 2024-02-05 14:51:13.210 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Image update complete 2024-02-05 14:51:13.210 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Adjusted desertedpalenightingale: Frame interval: 5.724 2024-02-05 14:51:13.255 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale System CPU usage stat: 30.25% 2024-02-05 14:51:13.255 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale Camera Memory usage in GB: 0.59, 15.54% of Total. 2024-02-05 14:51:49.809 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] Received valetudo/DesertedPaleNightingale image data from MQTT 2024-02-05 14:51:50.643 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] No data from valetudo/DesertedPaleNightingale or vacuum docked 2024-02-05 14:51:50.692 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Image not processed. Returning not updated image. 2024-02-05 14:51:50.741 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale System CPU usage stat: 0.0% 2024-02-05 14:51:50.741 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale Camera Memory usage in GB: 0.63, 16.39% of Total. 2024-02-05 14:52:50.643 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] Received valetudo/DesertedPaleNightingale image data from MQTT 2024-02-05 14:52:50.663 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] No data from valetudo/DesertedPaleNightingale or vacuum docked 2024-02-05 14:52:50.711 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Image not processed. Returning not updated image. 2024-02-05 14:52:50.714 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale System CPU usage stat: 27.0% 2024-02-05 14:52:50.715 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale Camera Memory usage in GB: 0.61, 16.06% of Total. 2024-02-05 14:53:51.684 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] Received valetudo/DesertedPaleNightingale image data from MQTT 2024-02-05 14:53:53.684 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] No data from valetudo/DesertedPaleNightingale or vacuum docked 2024-02-05 14:53:53.732 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Image not processed. Returning not updated image. 2024-02-05 14:53:53.735 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale System CPU usage stat: 180.3% 2024-02-05 14:53:53.735 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale Camera Memory usage in GB: 0.62, 16.06% of Total. 2024-02-05 14:54:52.427 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] Received valetudo/DesertedPaleNightingale image data from MQTT 2024-02-05 14:54:53.723 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] No data from valetudo/DesertedPaleNightingale or vacuum docked 2024-02-05 14:54:53.771 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Image not processed. Returning not updated image. 2024-02-05 14:54:53.774 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale System CPU usage stat: 27.23% 2024-02-05 14:54:53.774 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale Camera Memory usage in GB: 0.63, 16.42% of Total. 2024-02-05 14:55:53.135 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] Received valetudo/DesertedPaleNightingale image data from MQTT 2024-02-05 14:55:53.929 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] No data from valetudo/DesertedPaleNightingale or vacuum docked 2024-02-05 14:55:53.981 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Image not processed. Returning not updated image. 2024-02-05 14:55:53.985 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale System CPU usage stat: 0.0% 2024-02-05 14:55:53.986 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale Camera Memory usage in GB: 0.62, 16.2% of Total. 2024-02-05 14:55:56.906 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:55:59.850 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:55:59.851 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:56:02.851 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:56:02.852 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:56:05.852 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:56:05.853 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:56:08.852 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:56:08.853 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:56:11.880 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:56:11.886 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:56:14.880 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image 2024-02-05 14:56:14.881 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... 2024-02-05 14:56:17.881 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot

sca075 commented 7 months ago

2024-02-05 14:53:53.735 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale System CPU usage stat: 180.3% There is also that INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ... meaning somehow the camera is restarting all the time.. I think more that CPU and Memory I need to check it on VE locally. I will need a couple of hours for this..

sca075 commented 7 months ago

okay I probably understood were could be the problem. on the camera.py please try to deactivate..

# SCAN_INTERVAL = timedelta(seconds=3)

Line 117.. this will avoid the calls to MQTT and MQTT will decide to update the camera when it is the case.. this isn't a solution but I guess should avoid the Proxmox VE to manage too many networking request. @kodbuzz this would be just a test to see if it still restart and also I think I found why there is a grey image instead of the last, if you confirm that this is the cause I think I can do a small modification that should fix this once per all.

kodbuzz commented 7 months ago

Thank you for keeping me updated on the investigation. I regret to inform you that, even after commenting out the suggested line, it still falls into a restart loop for some unknown reason. Here goes the debug log:

2024-02-05 16:10:37.255 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Camera desertedpalenightingale Starting up..
2024-02-05 16:10:37.359 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] Received valetudo/DesertedPaleNightingale image data from MQTT
2024-02-05 16:10:37.360 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] valetudo/DesertedPaleNightingale: Received vacuum docked status.
2024-02-05 16:10:37.361 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] valetudo/DesertedPaleNightingale: Received vacuum Error: No error
2024-02-05 16:10:55.999 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] Received valetudo/DesertedPaleNightingale image data from MQTT
2024-02-05 16:11:07.267 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] Processing valetudo/DesertedPaleNightingale data from MQTT
2024-02-05 16:11:07.269 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] valetudo/DesertedPaleNightingale: Extracting JSON Complete
2024-02-05 16:11:07.319 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Composing the image for the camera.
2024-02-05 16:11:07.319 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] Vacuum JSon ID: 105d4104-2776-4b17-b08f-e030987f46e4 at Frame 0.
2024-02-05 16:11:07.325 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Got zones: {}
2024-02-05 16:11:07.327 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Got virtual walls: []
2024-02-05 16:11:07.330 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Got the points in the json: {'robot_position': [{'__class': 'PointMapEntity', 'metaData': {'angle': 270}, 'points': [1963, 2001], 'type': 'robot_position'}], 'charger_location': [{'__class': 'PointMapEntity', 'metaData': {'angle': 180.006957272999}, 'points': [1978, 2001], 'type': 'charger_location'}]}
2024-02-05 16:11:07.330 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale Position: [('x', 1963), ('y', 2001), ('angle', 270)]
2024-02-05 16:11:07.330 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] Charger Position: [('x', 1978), ('y', 2001)] of desertedpalenightingale
2024-02-05 16:11:07.330 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] All obstacle positions: []
2024-02-05 16:11:07.330 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Calculating the hash of the image.
2024-02-05 16:11:07.330 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Layers to draw: dict_keys(['floor', 'wall', 'segment'])
2024-02-05 16:11:07.330 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Empty image with background color
2024-02-05 16:11:07.488 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Overlapping Layers
2024-02-05 16:11:07.594 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Rooms data extracted!
2024-02-05 16:11:07.594 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale changed room.. searching..
2024-02-05 16:11:07.594 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale is in リビングルーム
2024-02-05 16:11:07.594 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Completed base Layers
2024-02-05 16:11:07.594 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Copying the array.
2024-02-05 16:11:07.651 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Frame number 1
2024-02-05 16:11:07.651 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Estimated Margin of Memory usage: 732.421875 MiB
2024-02-05 16:11:07.661 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Available memory: 2614.0 MiB
2024-02-05 16:11:07.661 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Copying the array.
2024-02-05 16:11:10.089 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.utils.draweble] Drawing desertedpalenightingale Robot With Angle: 90
2024-02-05 16:11:10.091 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Auto cropping the image with rotation: 0
2024-02-05 16:11:10.091 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Image original size (4000, 4000).
2024-02-05 16:11:11.031 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Found crop max and min values (y,x) (2084, 3204) (930,1880)...
2024-02-05 16:11:11.032 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Calculated trims coordinates right 3354, bottom 2234, left 1730, up 780.
2024-02-05 16:11:11.032 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Calculated trimmed image width 1624 and height 1454
2024-02-05 16:11:11.032 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Auto Crop and Trim Box data: (1730, 780, 3354, 2234)
2024-02-05 16:11:11.032 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Auto Crop and Trim image size: (1624, 1454)
2024-02-05 16:11:11.201 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.camera_processing] <REDACTED>
2024-02-05 16:11:11.201 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] Getting desertedpalenightingale Calibrations points.
2024-02-05 16:11:11.201 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.camera_processing] Suspended the camera data processing for: desertedpalenightingale.
2024-02-05 16:11:11.204 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera_processing] desertedpalenightingale: Got 1 elements list..
2024-02-05 16:11:11.351 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Snapshot acquired during docked Vacuum State.
2024-02-05 16:11:11.351 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Image update complete
2024-02-05 16:11:11.351 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Adjusted desertedpalenightingale: Frame interval: 4.087
2024-02-05 16:11:11.357 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale System CPU usage stat: 28.25%
2024-02-05 16:11:11.357 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale Camera Memory usage in GB: 0.71, 18.5% of Total.
2024-02-05 16:11:37.264 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image
2024-02-05 16:11:57.060 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] Received valetudo/DesertedPaleNightingale image data from MQTT
2024-02-05 16:12:07.265 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image
2024-02-05 16:12:07.267 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ...
2024-02-05 16:12:37.299 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image
2024-02-05 16:12:37.301 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ...
2024-02-05 16:13:07.301 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image
2024-02-05 16:13:07.301 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ...
2024-02-05 16:13:37.301 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image
2024-02-05 16:13:37.303 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ...
2024-02-05 16:14:07.302 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image
2024-02-05 16:14:07.304 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ...
2024-02-05 16:14:37.302 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image
2024-02-05 16:14:37.303 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ...
kodbuzz commented 7 months ago

To try to align with your setup, which doesn't experience map issues, I attempted to assign 8GB of RAM to the HAOS VM in Proxmox VE (32GB in total on the host machine). I tested both Ballooning=0 and Ballooning=1, but unfortunately, the restart loop issue persists. attaching the log:

2024-02-05 16:28:40.467 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Camera desertedpalenightingale Starting up..
2024-02-05 16:28:50.244 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] Received valetudo/DesertedPaleNightingale image data from MQTT
2024-02-05 16:28:50.244 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] valetudo/DesertedPaleNightingale: Received vacuum docked status.
2024-02-05 16:28:50.244 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] valetudo/DesertedPaleNightingale: Received vacuum Error: No error
2024-02-05 16:29:10.814 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] Processing valetudo/DesertedPaleNightingale data from MQTT
2024-02-05 16:29:10.816 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] valetudo/DesertedPaleNightingale: Extracting JSON Complete
2024-02-05 16:29:10.858 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Composing the image for the camera.
2024-02-05 16:29:10.858 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] Vacuum JSon ID: 70f33eb8-5b42-4789-9a47-d150ba54adc1 at Frame 0.
2024-02-05 16:29:10.863 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Got zones: {}
2024-02-05 16:29:10.866 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Got virtual walls: []
2024-02-05 16:29:10.868 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Got the points in the json: {'robot_position': [{'__class': 'PointMapEntity', 'metaData': {'angle': 270}, 'points': [1963, 2001], 'type': 'robot_position'}], 'charger_location': [{'__class': 'PointMapEntity', 'metaData': {'angle': 180.006957272999}, 'points': [1978, 2001], 'type': 'charger_location'}]}
2024-02-05 16:29:10.868 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale Position: [('x', 1963), ('y', 2001), ('angle', 270)]
2024-02-05 16:29:10.869 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] Charger Position: [('x', 1978), ('y', 2001)] of desertedpalenightingale
2024-02-05 16:29:10.869 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] All obstacle positions: []
2024-02-05 16:29:10.869 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Calculating the hash of the image.
2024-02-05 16:29:10.869 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Layers to draw: dict_keys(['floor', 'wall', 'segment'])
2024-02-05 16:29:10.869 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Empty image with background color
2024-02-05 16:29:11.010 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Overlapping Layers
2024-02-05 16:29:11.106 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Rooms data extracted!
2024-02-05 16:29:11.107 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale changed room.. searching..
2024-02-05 16:29:11.107 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale is in リビングルーム
2024-02-05 16:29:11.107 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Completed base Layers
2024-02-05 16:29:11.107 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Copying the array.
2024-02-05 16:29:11.154 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Frame number 1
2024-02-05 16:29:11.154 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Estimated Margin of Memory usage: 732.421875 MiB
2024-02-05 16:29:11.204 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Available memory: 6708.2 MiB
2024-02-05 16:29:11.204 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Copying the array.
2024-02-05 16:29:11.908 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] Received valetudo/DesertedPaleNightingale image data from MQTT
2024-02-05 16:29:12.453 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.utils.draweble] Drawing desertedpalenightingale Robot With Angle: 90
2024-02-05 16:29:12.464 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Auto cropping the image with rotation: 0
2024-02-05 16:29:12.465 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Image original size (4000, 4000).
2024-02-05 16:29:13.459 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Found crop max and min values (y,x) (2084, 3204) (930,1880)...
2024-02-05 16:29:13.460 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Calculated trims coordinates right 3354, bottom 2234, left 1730, up 780.
2024-02-05 16:29:13.460 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Calculated trimmed image width 1624 and height 1454
2024-02-05 16:29:13.460 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Auto Crop and Trim Box data: (1730, 780, 3354, 2234)
2024-02-05 16:29:13.460 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Auto Crop and Trim image size: (1624, 1454)
2024-02-05 16:29:13.624 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.camera_processing] <REDACTED>
2024-02-05 16:29:13.624 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] Getting desertedpalenightingale Calibrations points.
2024-02-05 16:29:13.624 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.camera_processing] Suspended the camera data processing for: desertedpalenightingale.
2024-02-05 16:29:13.626 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera_processing] desertedpalenightingale: Got 1 elements list..
2024-02-05 16:29:13.748 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] Saved image data from MQTT in desertedpalenightingale.raw!
2024-02-05 16:29:13.766 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Snapshot acquired during docked Vacuum State.
2024-02-05 16:29:13.766 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Image update complete
2024-02-05 16:29:13.766 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Adjusted desertedpalenightingale: Frame interval: 2.993
2024-02-05 16:29:13.770 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale System CPU usage stat: 26.45%
2024-02-05 16:29:13.770 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale Camera Memory usage in GB: 0.65, 8.36% of Total.
2024-02-05 16:29:40.774 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image
2024-02-05 16:30:10.775 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image
2024-02-05 16:30:10.776 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ...
2024-02-05 16:30:40.776 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image
2024-02-05 16:30:40.777 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ...
2024-02-05 16:31:10.778 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] /config/www/snapshot_desertedpalenightingale.png: searching Snapshot image
2024-02-05 16:31:10.779 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Starting up ...
sca075 commented 7 months ago

2024-02-05 16:29:13.624 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.camera_processing] I think we found the issue (security ???) then the component restart when the logger output the rooms attributes. I will remove this line and also I will modify any other specious points.. Anyway I need to say we are doing quite a good team work here.. thanks a lot for this.

kodbuzz commented 7 months ago

2024-02-05 16:29:13.624 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.camera_processing] I think we found the issue (security ???) then the component restart when the logger output the rooms attributes. I will remove this line and also I will modify any other specious points.. Anyway I need to say we are doing quite a good team work here.. thanks a lot for this.

no no, I apologize for the confusion, the <REDACTED> mark was made by me. I commented out my room layout information for privacy concerns, from the logs, left a <REDACTED> there as a place holder.

sca075 commented 7 months ago

I will remove anyhow this log entry it is a good catch.. privacy is high priority for us..

sca075 commented 7 months ago

@kodbuzz currently working on it and for the most studding a possible solution. I think from the logs and also our conversation...

I did some modification in the camera, so that we do not search the screenshot directly but output the last image grabbed.. and also some change on the MQTT part, that I'm currently testing. The next message would be to confirm when all it is okay that you can download the main version.

sca075 commented 7 months ago

@kodbuzz, Okay..

kodbuzz commented 7 months ago

Thank you for keeping up with this matter! I've updated to the latest commit, and the debug log is provided here. Unfortunately, the issue still persists. However, the log seems to offer more clarity in addressing the problem. Despite reporting high CPU usage, the system-wide CPU usage and load appear to be normal. System wide CPU usage is around 12% and loads 1-5-15 are below 0.2

2024-02-05 20:35:42.438 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration valetudo_vacuum_camera which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-02-05 20:36:21.146 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Camera desertedpalenightingale Starting up..
2024-02-05 20:36:33.543 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] Received valetudo/DesertedPaleNightingale image data from MQTT
2024-02-05 20:36:33.543 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] valetudo/DesertedPaleNightingale: Received vacuum docked status.
2024-02-05 20:36:33.543 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] valetudo/DesertedPaleNightingale: Received vacuum Error: No error
2024-02-05 20:36:36.291 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] Processing valetudo/DesertedPaleNightingale data from MQTT
2024-02-05 20:36:36.292 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] valetudo/DesertedPaleNightingale: Extracting JSON Complete
2024-02-05 20:36:36.337 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Composing the image for the camera.
2024-02-05 20:36:36.337 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] Vacuum JSon ID: 6af556d9-59ea-4f26-8581-d9cb2b063b6b at Frame 0.
2024-02-05 20:36:36.338 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Got zones: {}
2024-02-05 20:36:36.339 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Got virtual walls: []
2024-02-05 20:36:36.340 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Got the points in the json: {'robot_position': [{'__class': 'PointMapEntity', 'metaData': {'angle': 180.006957272999}, 'points': [1963, 2001], 'type': 'robot_position'}], 'charger_location': [{'__class': 'PointMapEntity', 'metaData': {'angle': 180.006957272999}, 'points': [1978, 2001], 'type': 'charger_location'}]}
2024-02-05 20:36:36.340 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale Position: [('x', 1963), ('y', 2001), ('angle', 180.006957272999)]
2024-02-05 20:36:36.341 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] Charger Position: [('x', 1978), ('y', 2001)] of desertedpalenightingale
2024-02-05 20:36:36.341 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] All obstacle positions: []
2024-02-05 20:36:36.341 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Calculating the hash of the image.
2024-02-05 20:36:36.341 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Layers to draw: dict_keys(['floor', 'wall', 'segment'])
2024-02-05 20:36:36.341 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Empty image with background color
2024-02-05 20:36:36.505 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Overlapping Layers
2024-02-05 20:36:36.696 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Rooms data extracted!
2024-02-05 20:36:36.696 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale changed room.. searching..
2024-02-05 20:36:36.696 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale is in リビングルーム
2024-02-05 20:36:36.697 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Completed base Layers
2024-02-05 20:36:36.697 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Copying the array.
2024-02-05 20:36:36.750 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Frame number 1
2024-02-05 20:36:36.751 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Estimated Margin of Memory usage: 1464.84375 MiB
2024-02-05 20:36:36.753 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Available memory: 6727.7 MiB
2024-02-05 20:36:36.753 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Copying the array.
2024-02-05 20:36:36.810 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.utils.draweble] Drawing desertedpalenightingale Robot With Angle: 0.006957272998988628
2024-02-05 20:36:36.811 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Auto cropping the image with rotation: 0
2024-02-05 20:36:36.811 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Image original size (4000, 4000).
2024-02-05 20:36:37.724 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Found crop max and min values (y,x) (2089, 3204) (930,1880)...
2024-02-05 20:36:37.724 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Calculated trims coordinates right 3354, bottom 2239, left 1730, up 780.
2024-02-05 20:36:37.724 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Calculated trimmed image width 1624 and height 1459
2024-02-05 20:36:37.724 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Auto Crop and Trim Box data: (1730, 780, 3354, 2239)
2024-02-05 20:36:37.724 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Auto Crop and Trim image size: (1624, 1459)
2024-02-05 20:36:37.891 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.camera_processing] State attributes rooms updated
2024-02-05 20:36:37.891 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] Getting desertedpalenightingale Calibrations points.
2024-02-05 20:36:37.891 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.camera_processing] Suspended the camera data processing for: desertedpalenightingale.
2024-02-05 20:36:37.908 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera_processing] desertedpalenightingale: Got 1 elements list..
2024-02-05 20:36:37.909 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Image from Json.
2024-02-05 20:36:38.020 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Snapshot acquired during docked Vacuum State.
2024-02-05 20:36:38.020 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Image update complete
2024-02-05 20:36:38.021 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Adjusted desertedpalenightingale: Frame interval: 1.773
2024-02-05 20:36:38.025 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale System CPU usage stat: 31.27%
2024-02-05 20:36:38.025 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale Camera Memory usage in GB: 0.6, 7.76% of Total.
2024-02-05 20:36:49.677 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] Received valetudo/DesertedPaleNightingale image data from MQTT
2024-02-05 20:36:51.254 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] No data from valetudo/DesertedPaleNightingale or vacuum docked
2024-02-05 20:36:51.307 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Image not processed. Returning not updated image.
2024-02-05 20:36:51.360 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale System CPU usage stat: 0.0%
2024-02-05 20:36:51.361 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale Camera Memory usage in GB: 0.64, 8.21% of Total.
2024-02-05 20:37:50.506 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] Received valetudo/DesertedPaleNightingale image data from MQTT
2024-02-05 20:37:51.370 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] No data from valetudo/DesertedPaleNightingale or vacuum docked
2024-02-05 20:37:51.418 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Image not processed. Returning not updated image.
2024-02-05 20:37:51.421 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale System CPU usage stat: 170.18%
2024-02-05 20:37:51.422 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale Camera Memory usage in GB: 0.63, 8.1% of Total.
2024-02-05 20:38:51.586 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] Received valetudo/DesertedPaleNightingale image data from MQTT
2024-02-05 20:38:54.436 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] No data from valetudo/DesertedPaleNightingale or vacuum docked
2024-02-05 20:38:54.439 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Image not processed. Returning not updated image.
2024-02-05 20:38:54.443 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale System CPU usage stat: 191.53%
2024-02-05 20:38:54.443 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale Camera Memory usage in GB: 0.64, 8.22% of Total.
2024-02-05 20:39:52.204 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] Received valetudo/DesertedPaleNightingale image data from MQTT
2024-02-05 20:39:54.421 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] No data from valetudo/DesertedPaleNightingale or vacuum docked
2024-02-05 20:39:54.470 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Image not processed. Returning not updated image.
2024-02-05 20:39:54.473 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale System CPU usage stat: 21.25%
2024-02-05 20:39:54.474 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale Camera Memory usage in GB: 0.65, 8.38% of Total.
2024-02-05 20:39:57.420 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-05 20:39:57.526 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-05 20:40:00.420 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-05 20:40:00.520 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-05 20:40:03.421 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-05 20:40:03.516 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
sca075 commented 7 months ago

But now I think I know where is the problem 😉 will work on it and let you know soon

kodbuzz commented 7 months ago

Great! But please don't push yourself too hard. Wishing you a wonderful night!

sca075 commented 7 months ago

@kodbuzz, Good morning, just for clarity.. it looks the calculation of the CPU usage is the guilty part.. as well there is a problem that I need to solve to read the snapshot in the www folder if it is there (as per it can be deleted by option). The camera startup message was coming from the this function. Then now.. if you would be so kind to test also the new commits I posted few minutes ago at your convenience.. In general it should happen the following:

kodbuzz commented 7 months ago

Good morning, sorry for the delay. I just updated to the most recent commit, and I believe I may have some interesting discoveries.

According to the debug log, it appears that the addon suddenly returns only the last valid image and continues to do so. Interestingly, around the same time this behavior started, I noticed that the entity of the map data source, in my case 'camera.valetudo_desertedpalenightingale_mapdata,' went Unavailable for a very brief period, like 1s, since then, the addon stops updating. I'm unsure if these events are somehow related. **^1_ Seems not related.**

Here comes the debug log, and screenshots.

2024-02-06 10:38:21.982 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] All obstacle positions: []
2024-02-06 10:38:21.982 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Calculating the hash of the image.
2024-02-06 10:38:21.982 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Frame number 4
2024-02-06 10:38:21.982 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Estimated Margin of Memory usage: 732.4 MiB
2024-02-06 10:38:21.986 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Available memory: 6679.9 MiB
2024-02-06 10:38:21.986 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Copying the array.
2024-02-06 10:38:22.087 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.utils.draweble] Drawing desertedpalenightingale Robot With Angle: 90.0
2024-02-06 10:38:22.088 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Auto cropping the image with rotation: 0
2024-02-06 10:38:22.088 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Auto Crop and Trim Box data: (1730, 780, 3354, 2239)
2024-02-06 10:38:22.088 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Auto Crop and Trim image size: (1624, 1459)
2024-02-06 10:38:22.256 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera_processing] desertedpalenightingale: Got 1 elements list..
2024-02-06 10:38:22.256 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Image from Json.
2024-02-06 10:38:22.359 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Image update complete
2024-02-06 10:38:22.359 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Adjusted desertedpalenightingale: Frame interval: 0.431
2024-02-06 10:38:22.363 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale System CPU usage stat: 24.88%
2024-02-06 10:38:22.363 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale Camera Memory usage in GB: 0.69, 8.95% of Total.
2024-02-06 10:38:23.554 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] Received valetudo/DesertedPaleNightingale image data from MQTT
2024-02-06 10:38:24.928 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:38:25.026 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:38:27.929 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Camera image data update available: True
2024-02-06 10:38:27.980 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] Processing valetudo/DesertedPaleNightingale data from MQTT
2024-02-06 10:38:27.981 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] valetudo/DesertedPaleNightingale: Extracting JSON Complete
2024-02-06 10:38:27.986 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Composing the image for the camera.
2024-02-06 10:38:27.986 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] Vacuum JSon ID: b6623a3f-17fe-42ea-a77c-95a383a4e65a at Frame 4.
2024-02-06 10:38:27.987 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Got zones: {}
2024-02-06 10:38:27.988 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Got virtual walls: []
2024-02-06 10:38:27.989 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Got the points in the json: {'robot_position': [{'__class': 'PointMapEntity', 'metaData': {'angle': 90}, 'points': [2305, 2058], 'type': 'robot_position'}], 'charger_location': [{'__class': 'PointMapEntity', 'metaData': {'angle': 180.03806106373668}, 'points': [1981, 2001], 'type': 'charger_location'}]}
2024-02-06 10:38:27.989 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale Position: [('x', 2305), ('y', 2058), ('angle', 90.0), ('in_room', 'リビングルーム')]
2024-02-06 10:38:27.989 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] Charger Position: [('x', 1981), ('y', 2001)] of desertedpalenightingale
2024-02-06 10:38:27.989 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] All obstacle positions: []
2024-02-06 10:38:27.989 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Calculating the hash of the image.
2024-02-06 10:38:27.989 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Frame number 5
2024-02-06 10:38:27.989 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Estimated Margin of Memory usage: 732.4 MiB
2024-02-06 10:38:27.994 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Available memory: 6682.4 MiB
2024-02-06 10:38:27.994 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Copying the array.
2024-02-06 10:38:28.098 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.utils.draweble] Drawing desertedpalenightingale Robot With Angle: 90.0
2024-02-06 10:38:28.099 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Auto cropping the image with rotation: 0
2024-02-06 10:38:28.099 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Auto Crop and Trim Box data: (1730, 780, 3354, 2239)
2024-02-06 10:38:28.099 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Auto Crop and Trim image size: (1624, 1459)
2024-02-06 10:38:28.272 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera_processing] desertedpalenightingale: Got 1 elements list..
2024-02-06 10:38:28.273 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Image from Json.
2024-02-06 10:38:28.382 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Image update complete
2024-02-06 10:38:28.382 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Adjusted desertedpalenightingale: Frame interval: 0.452
2024-02-06 10:38:28.386 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale System CPU usage stat: 24.45%
2024-02-06 10:38:28.386 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale Camera Memory usage in GB: 0.69, 8.93% of Total.
2024-02-06 10:38:29.227 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] Received valetudo/DesertedPaleNightingale image data from MQTT
2024-02-06 10:38:30.930 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:38:31.032 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:38:33.931 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Camera image data update available: True
2024-02-06 10:38:33.934 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] Processing valetudo/DesertedPaleNightingale data from MQTT
2024-02-06 10:38:33.936 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] valetudo/DesertedPaleNightingale: Extracting JSON Complete
2024-02-06 10:38:33.985 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Composing the image for the camera.
2024-02-06 10:38:33.985 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] Vacuum JSon ID: fab67dce-4ccf-490d-a734-5df77536d37e at Frame 5.
2024-02-06 10:38:33.986 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Got zones: {}
2024-02-06 10:38:33.987 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Got virtual walls: []
2024-02-06 10:38:33.988 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Got the points in the json: {'robot_position': [{'__class': 'PointMapEntity', 'metaData': {'angle': 81}, 'points': [2363, 2064], 'type': 'robot_position'}], 'charger_location': [{'__class': 'PointMapEntity', 'metaData': {'angle': 180.03806106373668}, 'points': [1981, 2001], 'type': 'charger_location'}]}
2024-02-06 10:38:33.988 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale changed room.. searching..
2024-02-06 10:38:33.988 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale not located in any Room
2024-02-06 10:38:33.988 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale Position: [('x', 2363), ('y', 2064), ('angle', 81.0)]
2024-02-06 10:38:33.988 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] Charger Position: [('x', 1981), ('y', 2001)] of desertedpalenightingale
2024-02-06 10:38:33.988 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] All obstacle positions: []
2024-02-06 10:38:33.988 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Calculating the hash of the image.
2024-02-06 10:38:33.988 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Frame number 0
2024-02-06 10:38:33.988 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Estimated Margin of Memory usage: 732.4 MiB
2024-02-06 10:38:33.991 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Available memory: 6675.5 MiB
2024-02-06 10:38:33.991 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Copying the array.
2024-02-06 10:38:34.102 INFO (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.utils.draweble] Drawing desertedpalenightingale Robot With Angle: 81.0
2024-02-06 10:38:34.104 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Auto cropping the image with rotation: 0
2024-02-06 10:38:34.104 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Auto Crop and Trim Box data: (1730, 780, 3354, 2239)
2024-02-06 10:38:34.104 DEBUG (desertedpalenightingale_camera_0) [custom_components.valetudo_vacuum_camera.valetudo.hypfer.image_handler] desertedpalenightingale: Auto Crop and Trim image size: (1624, 1459)
2024-02-06 10:38:34.279 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera_processing] desertedpalenightingale: Got 1 elements list..
2024-02-06 10:38:34.280 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Image from Json.
2024-02-06 10:38:34.389 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale: Image update complete
2024-02-06 10:38:34.389 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Adjusted desertedpalenightingale: Frame interval: 0.458
2024-02-06 10:38:34.394 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale System CPU usage stat: 25.48%
2024-02-06 10:38:34.394 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] desertedpalenightingale Camera Memory usage in GB: 0.7, 9.0% of Total.
2024-02-06 10:38:36.932 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:38:37.031 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:38:37.032 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.MQTT.connector] Received valetudo/DesertedPaleNightingale image data from MQTT
2024-02-06 10:38:39.933 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:38:40.030 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:38:42.934 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:38:43.028 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:38:45.934 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:38:46.028 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:38:48.936 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:38:49.040 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:38:51.937 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:38:52.031 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:38:54.938 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:38:55.035 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:38:57.938 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:38:58.035 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:39:00.939 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:39:01.036 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:39:03.940 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:39:04.035 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:39:06.940 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:39:07.036 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:39:09.941 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:39:10.038 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:39:12.943 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:39:13.037 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:39:15.953 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:39:16.052 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:39:18.953 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:39:19.049 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:39:21.955 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:39:22.050 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:39:24.955 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:39:25.052 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:39:27.955 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:39:28.078 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:39:30.956 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:39:31.051 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:39:33.957 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:39:34.051 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:39:36.957 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:39:37.059 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:39:39.959 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:39:40.056 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:39:42.959 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:39:43.053 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:39:45.960 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:39:46.054 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:39:48.961 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:39:49.055 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:39:51.962 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:39:52.057 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:39:54.962 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:39:55.067 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:39:57.963 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:39:58.058 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:40:00.964 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:40:01.073 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:40:03.965 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:40:04.062 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:40:06.966 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:40:07.060 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:40:09.967 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:40:10.060 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:40:12.982 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:40:13.419 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:40:15.982 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:40:16.076 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:40:18.982 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:40:19.076 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:40:21.984 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:40:22.079 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:40:24.985 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:40:25.080 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:40:27.986 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:40:28.081 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:40:30.987 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:40:31.084 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:40:33.988 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:40:34.091 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:40:36.989 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:40:37.086 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:40:39.989 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:40:40.087 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:40:42.989 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:40:43.092 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:40:45.991 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:40:46.089 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:40:48.991 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:40:49.087 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:40:51.991 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:40:52.086 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:40:54.991 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:40:55.086 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:40:57.992 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:40:58.084 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:41:00.993 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:41:01.094 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:41:03.994 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:41:04.101 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:41:06.995 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:41:07.094 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:41:09.996 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:41:10.095 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:41:12.998 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:41:13.093 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:41:16.025 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:41:16.165 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:41:19.025 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:41:19.120 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:41:22.049 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:41:22.147 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:41:25.050 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:41:25.144 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:41:28.050 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:41:28.144 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:41:31.051 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:41:31.172 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:41:34.051 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:41:34.146 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:41:37.051 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:41:37.145 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:41:40.052 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:41:40.172 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:41:43.053 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:41:43.146 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:41:46.053 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:41:46.149 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:41:49.054 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:41:49.150 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:41:52.055 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:41:52.151 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:41:55.057 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:41:55.152 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:41:58.057 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:41:58.157 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:42:01.058 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:42:01.155 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:42:04.059 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:42:04.154 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:42:07.060 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:42:07.159 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:42:10.061 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:42:10.156 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:42:13.062 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:42:13.156 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:42:16.078 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:42:16.188 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:42:19.078 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:42:19.177 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.
2024-02-06 10:42:22.079 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Last Image.
2024-02-06 10:42:22.173 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] No MQTT, or CPU usage too high. Returning not updated image.

image Screenshot 2024-02-06 104038

Update1: There's also a warning in the log besides debug logs:

/config/custom_components/valetudo_vacuum_camera/camera.py:422: SyntaxWarning: "is not" with a literal. Did you mean "!="? if self._cpu_percent > 100 and self._shared.vacuum_state is not "cleaning":

Update2: ^1: Just tested another round, and this time it stops updating while the map data source didn't go unavailable. So, it seems unlikely that they are related.

Update3: I'm gonna rename all my rooms from Japanese to English to see if there were any issues related to codepage traps.

sca075 commented 7 months ago

Okay thanks once again for the help here I will check again and come back to you in any case eventually please replace the line line 422 of camara.py with

if self._cpu_percent > 100 or (self._shared.vacuum_state != "docked"):

and I think the Japanese rooms names are not the problem.

by changing this line at 100% it should reset the value back to 0 and stop to loop.

sca075 commented 7 months ago

@kodbuzz

First of apologies for the syntax error I just committed the above correction.

Also I skipped the earlier return of the image for the time be.

Initially the camera did work also if sometimes it was necessary to restart it.

v1.5.7.1 is a kind of trap release for another issue. The original version 1.5.7 may have work as the one we are here troubleshooting.

This CPU routine will now output only the log theCPU is too high (in your case this is not really true).

I guess this makes sense. Thanks again for your cooperation here.

kodbuzz commented 7 months ago

I'm truly sorry to say that despite efforts, the issue persists with either the most recent commit or v1.5.7. I'm beginning to wonder if my case is unique and unrepresentative. If that's the case, I wouldn't want to waste your time further on this matter. I'm incredibly grateful for your consistent attention and help!

sca075 commented 7 months ago

I'm truly sorry to say that despite efforts, the issue persists with either the most recent commit or v1.5.7. I'm beginning to wonder if my case is unique and unrepresentative. If that's the case, I wouldn't want to waste your time further on this matter. I'm incredibly grateful for your consistent attention and help!

It is my pleasure to support you, and I really appreciate your efforts too. There are other users using the VE as you do and I will deeply investigate it (this anyway is going to take time as per I will need to setup an environment for the tests) I'm sorry it didn't work.

De facto you also confirmed that the rendering of the image happened without to influence Home Assistant (and that is already a progress)

Unfortunately the camera as it is structured is relatively heavy to handle on those environments (I did test it on real hardware instead) therefore I'm considering to use an old laptop to setup one VE and proximos to understand this issue at a deeper level.

I'm really grateful to you for the great support and cooperation demonstrated and especially the time you spent on it.. this is the kind of cooperation we really need more than just pointing out "that doesn't work" ... I hope soon to arrive to a tested and surely working solution in the next days will let you know when all is ready

kodbuzz commented 7 months ago

Just wanted to give you props for the time and effort you've put into helping me out with this. Really appreciate it. But gotta admit, I can't help but feel a sense of concern regarding the possibility that my problem might be an isolated case. If indeed it is, I would feel selfish to have consumed your time solely on my individual issue. In such a scenario, I would genuinely feel remorseful.

But hey, if it's something bigger, count me in for more testing or whatever else needs to be done. Your proactive approach to fixing stuff is pretty awesome, and I've got mad respect for your dedication to making things better for users like me.

Working together with you has been a blast, seriously. Once again, thank you for your patience, support, and dedication. I appreciate your efforts immensely. Your patience and support mean a lot. Keep being awesome!

Have a fantastic day ahead!

sca075 commented 7 months ago

@kodbuzz I guess to start soon, by the way, I had few minutes and noticed that the vacuum data were missing also to the card "Vacuum" on the top of the Xaiomi Card.. the entity missing is actually the valetudo PNG with the data of the map (that honestly I do not use anymore) it looks the data are missing due to a networking issue, or some connection to mqtt that didn't went well.. the last test I would ask you to do is to backup the configuration of the Vacuum map card and remove it and keep the Camera and Xaiomi Card for the last test if you can and have time for that. Have a fantastic evening. Will keep you posted ;)

kodbuzz commented 7 months ago

Good evening, I've removed the Valetudo Map Card from both Lovelace and HACS, then got HA restarted, and waited for few minutes and sadly, turned out valetudo_vacuum_camera fails eventually as the debug log looks exactly the same like before. Plus I found the entity of the map data source went unavailable just once the system restarts, and it is stable afterwards.

sca075 commented 7 months ago

okay it was just to better understand... I found an old laptop meanwhile and I will setup proxmox on it.. will let you know thanks once again :)

sca075 commented 7 months ago

@kodbuzz finally I got running a proxmox instance and I'm setting up home assistant on it.. if all goes well soon we can start to work on it ;) Edit: the laptop were I installed proximox and try to install home assistant isn' having the VT setting in BIOS so it fails to start the VE. The laptop has also only 2GB memory (it is not okay as proxmox took the 50% of it) = I need to found a different hardware for this to happen. Wont give up (but I need some time for it).

kodbuzz commented 7 months ago

finally I got running a proxmox instance and I'm setting up home assistant on it.. if all goes well soon we can start to work on it ;) Edit: the laptop were I installed proximox and try to install home assistant isn' having the VT setting in BIOS so it fails to start the VE. The laptop has also only 2GB memory (it is not okay as proxmox took the 50% of it) = I need to found a different hardware for this to happen. Wont give up (but I need some time for it).

Firstly, I want to extend my apologies for the delay in getting back to you, it was a tough week for me. and once again, thank you for your continued efforts and commitment to resolving this issue, yyour persistence is truly inspiring. Take your time with it as I'm here as a tester whenever you're ready to proceed. :)

sca075 commented 7 months ago

Please note that I give you a sing as soon we are ready to test it and of course, please do not stress on checking daily here.. I will use the @ so that if you use github on mobile you will be notified. Thanks once again for you kind availability.. I will update in any cases the progress on this issue (just for tracking ;). Wish you a beautiful weekend.

sca075 commented 7 months ago

@kodbuzz as you probably noticed there's some other discussion in progress about similar issues reported by other users.

I'm not 100% familiar with PROXMOX but I have read that 1.7.0 was actually running 2 vacuums in same VM.

I could somehow reproduce a behavior we are discussing here, apparently if the camera polling stop the connection with MQTT will be lost.

Reloading the component = re establish the connection with MQTT, also I noticed that networking can create some strange behavior on the camera regarding (I had issues with my Wi-Fi and the image sometimes froze or reloaded from scratch on Crome).

It is a quite interesting troubleshooting, the hardware for testing PROMOX and camera will be available today in the late noon.

Will let you know as soon I'm done but I'm also quite confident that we will fix those issues with PROXMOX within the next regular release 😉

kodbuzz commented 7 months ago

Thanks for staying on top of this issue👍. I'll check out version 1.7.0 later today when I get back home, btw good luck with ProxmoxVE! all the best!

sca075 commented 7 months ago

@kodbuzz https://github.com/sca075/valetudo_vacuum_camera/issues/78 Tests on Promox are passed, I will keep the robot in standby for this time and I still need to enable a couple of thinks like VS code but on issue #78 I did post the link of the procedure I followed for the setup of the VE and also the settings I used to create it... Base Hardware is actually made for OpenSense (Celeron J1900 8GB with 4x GB-LAN) and it connected directly to the main router.

kodbuzz commented 7 months ago

@kodbuzz #78 Tests on Promox are passed, I will keep the robot in standby for this time and I still need to enable a couple of thinks like VS code but on issue #78 I did post the link of the procedure I followed for the setup of the VE and also the settings I used to create it... Base Hardware is actually made for OpenSense (Celeron J1900 8GB with 4x GB-LAN) and it connected directly to the main router.

Everything is running smoothly on my end as well. I've been testing v1.5.7.5 since yesterday evening, and it's been about 23 hours now, only seamless map updates, never got another gray map. Congratulations on the great work! Thank you! I'll go ahead and close this issue since the problem has been resolved.

kodbuzz commented 7 months ago

If anyone else is encountering the same issue, I kindly suggest updating to v1.5.7.5.

sca075 commented 7 months ago

only seamless map updates, The version I'm testing is whit-out the CPU over peaks detection and render the images as per the video I posted earlier.. this probably is the V1.5.8 once I can confirm also the rand256 firmware. This code is available on the main, but I would confirm it and plush it as an official release, if you are up to test it would be nice, but isn't a must at this point. @kodbuzz thanks once again for raising and helping me to troubleshoot this issue.

sca075 commented 7 months ago

@kodbuzz v1.5.8 is now available, hope you will enjoy it at your disposal for any future requirements or ideas. If you wold be so be so kind to translate in Japanese the menus would be really apppriciated. thanks once again for the excellent cooperation.

kodbuzz commented 7 months ago

@kodbuzz v1.5.8 is now available, hope you will enjoy it at your disposal for any future requirements or ideas. If you wold be so be so kind to translate in Japanese the menus would be really apppriciated. thanks once again for the excellent cooperation.

Sorry for the huge delay, I'll do my best to address it once I'm back home, starting this coming Sunday. I believe we can figure it out next week. Have a great weekend by thw way!

sca075 commented 7 months ago

Sorry my late relay @kodbuzz (if you use @ I get notified) .. next week I will be aboard for work, and I perfectly understand that we can't replay immediately.. take your time and have a wonderful weekend too. I will keep my ProxMox test instance running and use it to confirm whatever changes will be in the future. Please feel free to open a discussion or issue / proposal at any time and if you wish to contribute to this project, as mentioned.. have a look to the translations and commit a jp.json when you can and have time for it, thanks once in again in advance.

kodbuzz commented 7 months ago

Sorry my late relay @kodbuzz (if you use @ I get notified) .. next week I will be aboard for work, and I perfectly understand that we can't replay immediately.. take your time and have a wonderful weekend too. I will keep my ProxMox test instance running and use it to confirm whatever changes will be in the future. Please feel free to open a discussion or issue / proposal at any time and if you wish to contribute to this project, as mentioned.. have a look to the translations and commit a jp.json when you can and have time for it, thanks once in again in advance.

@sca075 Hello there, good day! I've just submitted two language packs: one for Japanese (jp.json) and another for Taiwanese Mandarin (zh-Hant). I hope I'm not too late. I apologize for not being able to keep up with the topic closely last week, as I was sent to Valencia for work. While it was a wonderful trip overall, I can't help but wish it was for vacation instead of work.😂

Wishing you a safe and enjoyable journey ahead!👍