openHAB integration without "View the map"-workaround #1169
Locked
ingoschi
announced in
zzz_Archive
Replies: 1 comment
-
The option mqtt.publishAsBase64 is now added to ICantBelieveItsNotValetudo. I'll do a PR for the change of openhab integration documentation later tonight. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I found a way to do the openHAB integration much easier without any "View the map"-workaround.
I changed my ICantBelieveItsNotValetudo implementation to optionally publish the map as base64-encoded string to
MQTT 'MapData/map' instead of the png image.
I didn't want to use an additional topic, because Valetudo only registers 'MapData/map' for Homie autodiscovery.
Now I can add in openHAB for my vacuum thing the Map channel and create an image type item, and the image will directly update when ICantBelieveItsNotValetudo draws and publishes a new map to MQTT.
In openHAB event.log will only occur one row:
2021-10-17 22:22:46.163 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'DreameD9_Map' changed from raw type (image/png): 10007 bytes to raw type (image/png): 9843 bytes
There will be no change needed in Valetudo (besides the openhab integration documentation)
and ICantBelieveItsNotValetudo would get an option mqtt.publishAsBase64 with default false.
Beta Was this translation helpful? Give feedback.
All reactions