Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mqtt] Support for Home Assistant Component: Vacuum #8988

Closed
nullket opened this issue Nov 9, 2020 · 2 comments · Fixed by #11216
Closed

[mqtt] Support for Home Assistant Component: Vacuum #8988

nullket opened this issue Nov 9, 2020 · 2 comments · Fixed by #11216
Labels
enhancement An enhancement or new feature for an existing add-on

Comments

@nullket
Copy link

nullket commented Nov 9, 2020

Problem

OpenHAB supports already a couple of the "offical" Home Assistant mqtt schemes that many devices follow. But not all of them: The Xioami/Roborock vacuum robots are used by quite a lot of people and most just use the miio binding (which is great btw). But in order to get rid of the cloud used by the robot (for privacy, independence ande feature extension reasons) one can use Valetudo.. Valetudo offers mqtt for the robot with the implementation of the Home Assistant vaccum-scheme. Unfortunately, this scheme is not implemented in openHAB yet.

Solution

Integration of the Home Assistant vacuum-scheme in the openHAB mqtt binding.

I am far away of knowing enough java to implement this myself, but maybe there is somebody willing to help with this.

Your Environment

  • Version used: openHAB 2.5.10 Release Build
  • Environment name and version (e.g. Chrome 76, Java 8, Node.js 12.9, ...): docker:latest
  • Operating System and version (desktop or mobile, Windows 10, Raspbian Buster, ...): Ubuntu 20.04
@nullket nullket added the enhancement An enhancement or new feature for an existing add-on label Nov 9, 2020
@t2000
Copy link
Contributor

t2000 commented Feb 17, 2021

Just a short notice here: I have started working on the implementation.

A short teaser is here ;-)

image

However, it turns out to be quite tricky to get the full setup running. As I just learned it is nto enough to have valetudo (or in my case valetudo re) running on the robot. One also needs the valetudo_mapper which takes the raw information published by the robot to mqtt and converts them to a PNG image, which the valetudo_mapper then publishes to mqtt (different topic) as well.

Other than that I am still reading through the code and doing some reverse engineering to find out how to use all the datastructured and helper methods that are already offered :-)

@t2000
Copy link
Contributor

t2000 commented Feb 17, 2021

FYI: I just noticed that I do not need to write any line of code for the map to work :)

Start up the "valetudo_mapper" and it provides a "camera" that will be detected by the homeassistent mqtt auto detection.

image

I was wondering why I suddenly had 2 map channels in my system :)

t2000 added a commit to t2000/openhab2-addons that referenced this issue Sep 7, 2021
Closes openhab#8988

Signed-off-by: Stefan Triller <github@stefantriller.de>
t2000 added a commit to t2000/openhab2-addons that referenced this issue Sep 9, 2021
Closes openhab#8988

Signed-off-by: Stefan Triller <github@stefantriller.de>
t2000 added a commit to t2000/openhab2-addons that referenced this issue Nov 3, 2021
Closes openhab#8988

Signed-off-by: Stefan Triller <github@stefantriller.de>
t2000 added a commit to t2000/openhab2-addons that referenced this issue Nov 7, 2021
Closes openhab#8988

Signed-off-by: Stefan Triller <github@stefantriller.de>
fwolter pushed a commit that referenced this issue Nov 7, 2021
#11216)

* Implement Vacuum discovery for Homeassistant MQTT

Closes #8988

Signed-off-by: Stefan Triller <github@stefantriller.de>

* Addressed review comments

Signed-off-by: Stefan Triller <github@stefantriller.de>

* Spotless run again

Signed-off-by: Stefan Triller <github@stefantriller.de>
dschoepel pushed a commit to dschoepel/openhab-addons that referenced this issue Nov 9, 2021
openhab#11216)

* Implement Vacuum discovery for Homeassistant MQTT

Closes openhab#8988

Signed-off-by: Stefan Triller <github@stefantriller.de>

* Addressed review comments

Signed-off-by: Stefan Triller <github@stefantriller.de>

* Spotless run again

Signed-off-by: Stefan Triller <github@stefantriller.de>
Signed-off-by: Dave J Schoepel <dave@theschoepels.com>
jpg0 pushed a commit to jpg0/openhab-addons that referenced this issue Nov 10, 2021
openhab#11216)

* Implement Vacuum discovery for Homeassistant MQTT

Closes openhab#8988

Signed-off-by: Stefan Triller <github@stefantriller.de>

* Addressed review comments

Signed-off-by: Stefan Triller <github@stefantriller.de>

* Spotless run again

Signed-off-by: Stefan Triller <github@stefantriller.de>
NickWaterton pushed a commit to NickWaterton/openhab-addons that referenced this issue Dec 30, 2021
openhab#11216)

* Implement Vacuum discovery for Homeassistant MQTT

Closes openhab#8988

Signed-off-by: Stefan Triller <github@stefantriller.de>

* Addressed review comments

Signed-off-by: Stefan Triller <github@stefantriller.de>

* Spotless run again

Signed-off-by: Stefan Triller <github@stefantriller.de>
Signed-off-by: Nick Waterton <n.waterton@outlook.com>
mischmidt83 pushed a commit to mischmidt83/openhab-addons that referenced this issue Jan 9, 2022
openhab#11216)

* Implement Vacuum discovery for Homeassistant MQTT

Closes openhab#8988

Signed-off-by: Stefan Triller <github@stefantriller.de>

* Addressed review comments

Signed-off-by: Stefan Triller <github@stefantriller.de>

* Spotless run again

Signed-off-by: Stefan Triller <github@stefantriller.de>
Signed-off-by: Michael Schmidt <mi.schmidt.83@gmail.com>
nemerdaud pushed a commit to nemerdaud/openhab-addons that referenced this issue Jan 28, 2022
openhab#11216)

* Implement Vacuum discovery for Homeassistant MQTT

Closes openhab#8988

Signed-off-by: Stefan Triller <github@stefantriller.de>

* Addressed review comments

Signed-off-by: Stefan Triller <github@stefantriller.de>

* Spotless run again

Signed-off-by: Stefan Triller <github@stefantriller.de>
marcfischerboschio pushed a commit to bosch-io/openhab-addons that referenced this issue May 5, 2022
openhab#11216)

* Implement Vacuum discovery for Homeassistant MQTT

Closes openhab#8988

Signed-off-by: Stefan Triller <github@stefantriller.de>

* Addressed review comments

Signed-off-by: Stefan Triller <github@stefantriller.de>

* Spotless run again

Signed-off-by: Stefan Triller <github@stefantriller.de>
andan67 pushed a commit to andan67/openhab-addons that referenced this issue Nov 6, 2022
openhab#11216)

* Implement Vacuum discovery for Homeassistant MQTT

Closes openhab#8988

Signed-off-by: Stefan Triller <github@stefantriller.de>

* Addressed review comments

Signed-off-by: Stefan Triller <github@stefantriller.de>

* Spotless run again

Signed-off-by: Stefan Triller <github@stefantriller.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants