Comments (9)
I just installed the 'main' version and that fixed it straight away and the room info showed instantly in developer tools. The Generate Room code now works in the Vacuum Map card.
Thanks so much for all your help with this!!
from valetudo_vacuum_camera.
@duffmiester I opened this issue to keep track.
from valetudo_vacuum_camera.
Have sent you an email with the Debug ZIP. :-)
from valetudo_vacuum_camera.
@duffmiester tested the data you kindly provided either in development and test environment (PI4 with HA OS and supervised) the camera output normally the rooms attribute:
rooms:
'1':
number: '1'
outline:
- - 2340
- 1625
- - 2745
- 1625
- - 2745
- 2185
- - 2340
- 2185
name: MasterBedroom
x: 2542
'y': 1905
'3':
number: '3'
outline:
- - 2420
- 2525
- - 2700
- 2525
- - 2700
- 2720
- - 2420
- 2720
name: Office
x: 2560
'y': 2622
'4':
number: '4'
outline:
- - 2300
- 2780
- - 2725
- 2780
- - 2725
- 3075
- - 2300
- 3075
name: GeorgeBedroom
x: 2512
'y': 2927
'5':
number: '5'
outline:
- - 2370
- 3085
- - 2690
- 3085
- - 2690
- 3365
- - 2370
- 3365
name: SpareBedroom
x: 2530
'y': 3225
'8':
number: '8'
outline:
- - 2345
- 2175
- - 2715
- 2175
- - 2715
- 2445
- - 2345
- 2445
name: Bathroom
x: 2530
'y': 2310
'9':
number: '9'
outline:
- - 2685
- 1875
- - 3345
- 1875
- - 3345
- 3415
- - 2685
- 3415
name: Living
x: 3015
'y': 2645
I confirmed also from your log data that the DEBUG:image_handler:Checking for rooms data.. was not there, I can't reproduce the issue.. Can you try to turn OFF and after a while ON again using the HA services? this should force the refresh..
from valetudo_vacuum_camera.
That is really weird, I wonder why it isn't getting the room data for me.
I have even tried removing the Vacuum camera completely from Integrations and HACS, rebooting, reinstalling the Vacuum Camera in HACS and rebooting and still when I check in Developer tools I am missing the room section. I also tried installing version 1.4.4 of the Vacuum camera, but that was the same.
I wonder what other differences there are between our setups. I am running HA in a VM using the HA VMWare image, I am running latest version of HA. I am using MQTT integration in HA for the vacuum.
from valetudo_vacuum_camera.
@duffmiester to be honest @rohankapoorcom had a similar issue with his S50 sometimes ago.. at that time it was just matter of time until the rooms attribute did show up (some magic probably).
In any case, whatever installation is indeed it must work.
I will add some debugging logs and release a new version at the end of this week. We do have check to remove this attribute (for vacuum not having segments) I need to double check, probably the issue is that C1 and S50 have either floor and segments and probably the camera is checking just once if there are rooms, if so I will add a retry to make sure the attribute is displayed within 3 retries..
This is the reason why I thank you for reporting this situation.. it's clear that some HA environment isn't reactive as the test environment we use.
from valetudo_vacuum_camera.
@duffmiester I just published the additional logging, now the state attribute will be update after the first frame. Can you please download from HACS the "main" version (this will download the fix I just published). I will wait for you to confirm before releasing officially this fix, I tested it and now also by suspending the frame basically it is forced to get the rooms attribute as soon available, this should solve your issue.
2023-10-12 19:25:43.284 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.image_handler] Crop and Trim image size: (2948, 2948)
2023-10-12 19:25:44.031 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.image_handler] Checking for rooms data..
2023-10-12 19:25:44.031 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.image_handler] Rooms data extracted!
2023-10-12 19:25:44.031 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.image_handler] Got Rooms Attributes.
2023-10-12 19:25:44.031 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] State attributes update: {'1': {'number': '1', 'outline': [(2340, 1625), (2745, 1625), (2745, 2185), (2340, 2185)], 'name': 'MasterBedroom', 'x': 2542, 'y': 1905}, '3': {'number': '3', 'outline': [(2420, 2525), (2700, 2525), (2700, 2720), (2420, 2720)], 'name': 'Office', 'x': 2560, 'y': 2622}, '4': {'number': '4', 'outline': [(2300, 2780), (2725, 2780), (2725, 3075), (2300, 3075)], 'name': 'GeorgeBedroom', 'x': 2512, 'y': 2927}, '5': {'number': '5', 'outline': [(2370, 3085), (2690, 3085), (2690, 3365), (2370, 3365)], 'name': 'SpareBedroom', 'x': 2530, 'y': 3225}, '8': {'number': '8', 'outline': [(2345, 2175), (2715, 2175), (2715, 2445), (2345, 2445)], 'name': 'Bathroom', 'x': 2530, 'y': 2310}, '9': {'number': '9', 'outline': [(2685, 1875), (3345, 1875), (3345, 3415), (2685, 3415)], 'name': 'Living', 'x': 3015, 'y': 2645}}
2023-10-12 19:25:44.031 DEBUG (MainThread) [custom_components.valetudo_vacuum_camera.camera] Applied silenttepidstinkbug image rotation: {180}
2023-10-12 19:25:44.032 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] Suspended the camera data processing for: silenttepidstinkbug.
2023-10-12 19:25:44.036 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.connector] Saved image data from MQTT in mqtt_silenttepidstinkbug.raw!
2023-10-12 19:25:44.104 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.image_handler] Getting Calibrations points
2023-10-12 19:25:45.096 INFO (MainThread) [custom_components.valetudo_vacuum_camera.camera] silenttepidstinkbug: Image update complete
from valetudo_vacuum_camera.
Thanks @duffmiester this was a great request from your side. It helps us to improve this add on, please feel free to get in contact with us (team) at any time;)
from valetudo_vacuum_camera.
Released v1.4.6 with the fix. This issue is closed.
from valetudo_vacuum_camera.
Related Issues (20)
- Index Out of range error on the image_draw.py HOT 1
- Index Error on Image_Draw.py HOT 4
- The Active User in the HA instance is incorrect. HOT 1
- Vacuum Status Text Disconnected cause Translations Error.
- Only one room available when configuring room colors HOT 13
- The camera crash from Home Assistant 2024.06.0 HOT 7
- Auto Zoom Fails for the last room
- Invalid Calibration, please check your config HOT 9
- Detected blocking call to open inside the event loop HOT 32
- Only one room available when configuring room colors (reopened) HOT 4
- Forks Immediate Mandatory Update to be done! HOT 6
- 🚨⚠️ Attention: Migrating from Valetudo to MQTT Vacuum Camera ⚠️🚨 HOT 7
- At HA Startup / Warning camera took longer than the scheduled update interval 0:00:03 HOT 1
- Another async issue just popped up in 2024.7.1:
- Issue while re-drawing the map. HOT 2
- Vacuums entity id with "_" such as "myvacuum_floor" Colours Config Not Possible. HOT 9
- Can not add camera via UI HOT 7
- The `schema` option is deprecated for MQTT vacuum HOT 4
- MQTT battery level as binary data. HOT 4
- Detect blocking point while coping the logs. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from valetudo_vacuum_camera.