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
106 stars 7 forks source link

Valetudo RE offer Pre-Defined zones. #47

Closed sca075 closed 1 year ago

sca075 commented 1 year ago

Description

Would be nice to know the label and area so that could be passed to the card configuration, the card support pre-defined zones.

Solution

Found where the vacuum store those data, if in the map data decode them, if internal variable this function will not be implemented.

Alternatives

Add the pre-defined zones to be configured via the camera option.

Context

This option would a nice to have for both firmwares.

sca075 commented 1 year ago

We get the data from the v1.4.9 added topic destinations.

2023-11-05 15:57:18.204 INFO (MainThread) [custom_components.valetudo_vacuum_camera.valetudo.connector] valetudo/rockrobo_s5: Received vacuum destinations..{"spots":[],"zones":[{"name":"test zone","coordinates":[[24000,24000,25706,24717,1]]}],"rooms":[{"name":"bath room","id":17},{"name":"Bed Room","id":20},{"name":"entrance","id":16},{"name":"Kitchen","id":19},{"name":"living room","id":18}],"updated":1699196237802} from MQTT

I would be therefore possible to send to the card this zones, I guess to update this topic within the next week.

sca075 commented 1 year ago

Just as update: it was possible to create the attribute listing the predefined zone, but actually it needed to confirm if the card can get the attribute to generate the required template, in contact with @PiotrMachowski will update whenever it is possible or not to get those values in the card automatically.

sca075 commented 1 year ago

Okay.. we got confirmation that the card at this time do not support the auto configuration of the pre-defined-zones, the attribute zones will be anyhow implemented on the new release v1.5.0, with also the pre-defined-go_to (spot cleaning) destination.