rand256 / valetudo

Valetudo RE - experimental vacuum software, cloud free
Apache License 2.0
667 stars 73 forks source link

Json API results #83

Closed jacekpaszkowski closed 4 years ago

jacekpaszkowski commented 4 years ago

Description Any option to get api results in JSON like in orginal Valetudo? eg. i used to get api/map/lates in json for use in my Home Assistant.

Vacuum Model: D55

Valetudo Version: 0.8.1

rand256 commented 4 years ago

The reason why we began using binary data instead of JSON is shotrly described there. But yeah, sure we can rollback all those changesets for you. Or should we make a public poll first?

jacekpaszkowski commented 4 years ago

Poll is ok ;)

Or maybe you can tell me is there any way to get map json data in Valetudo RE? I also wasn't able to get it working over mqqt...

rand256 commented 4 years ago

The link I've posted above has the answer to your question. The same is written in valetudo-mapper readme.

jacekpaszkowski commented 4 years ago

I've seen that post. But vacuum doesn't publish any map data to mqqt broker. The topic shoud be valetudo/rockrobo/map_data? Right? I only get state and attributes over mqtt

rand256 commented 4 years ago

It does. If you set provideMapData to "true" in mqtt block of config.json. Exactly the same as in original valetudo.