Ekman / home-assistant-pure-i9

Electrolux Pure i9 robot vacuum integration for Home Assistant.
MIT License
26 stars 5 forks source link

Add maps and zones #8

Open Ekman opened 3 years ago

Ekman commented 3 years ago

Ability to view maps and zones.

Originally suggested in https://github.com/Ekman/home-assistant-pure-i9/issues/4.

Ekman commented 3 years ago

See PR: https://github.com/Ekman/home-assistant-pure-i9/pull/19

AWahlqvist commented 3 years ago

Hi @Ekman ! Thank you for your effort on this, much appreciated and it works great!

At least for me, the only thing missing seems to be the ability to send the robot to a specific zone to clean which I'm guessing this is eventually aiming to solve?

I might take a stab at this later myself, but I checked the request from the Wellbeing app for sending the robot to specific zone, it seems to do a PUT (/api/Appliances/-id-/Commands) with this body: { "CustomPlay": { "PersistentMapId": "<MapGuid>", "Zones": [ { "ZoneId": "<ZoneGuid>" } ] } }

Of course I'm not posting this with the expectation to have it implemented, and you probably had that request figured out already but in case you didn't, wanted to make sure I provided that example in case it helps :-) (public API documentation would be really nice...)

If I manage to find out anything more when/if I get the time I'll make sure to post it here of course!

Again, thanks for your effort on this!

Ekman commented 3 years ago

I haven't really had the time too look more closely at this.

The best way to contribute would be to cooperate with the Phype/purei9_unofficial repository. I'm just using the functions that's available in there. There's an effort to get this to work here: https://github.com/Phype/purei9_unofficial/issues/8 😄

AWahlqvist commented 3 years ago

Very understandable, time for side projects is limited for most of us! :-)

If I get the time I'll try to contribute there, thanks for pointing me in the right direction!

Phype commented 2 years ago

I've added listing maps and zone and cleaning a specific zone to the v2 api, see https://github.com/Phype/purei9_unofficial/commit/f459fc236f5bd9dead00737d12236fa48af525d4

AWahlqvist commented 2 years ago

That's great, thank you @Phype ! :-)

Ekman commented 1 year ago

I'm working on the map functionality in #43.

Blocked by this currently unfortunately https://github.com/Phype/purei9_unofficial/issues/18.

Ekman commented 1 year ago

So, newer versions of the API have changed and it's not longer possible to get a map image "out-of-the-box". It requires some fiddling, see https://github.com/Phype/purei9_unofficial/issues/8.

Ah, the bane of not having an official Electrolux API. So annoying that they did not listen to the community. 😈