JohNan / homeassistant-wellbeing

Get the status from your Electrolux devices connected to Wellbeing
MIT License
70 stars 17 forks source link

Add Pure 500 #90

Open jorgenseike opened 4 months ago

jorgenseike commented 4 months ago

Hi! Awesome integration, would it be possible to add more information on Pure 500 device? :) My Pure A9 works amazing, and has fan control, and P.M logging.

jorgenseike commented 4 months ago

I have started the Debug Logging, could you explain how to send it to you? :)

jorgenseike commented 4 months ago

Started/stopped the debug, and downloaded the file. This is the only line mentioning Welkbeing:

2024-03-13 09:44:33.449 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration wellbeing which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant

andrecunha-sb commented 3 months ago

Hello. So I also have this device. Was able to make it work by adding this to fan.py:

def _speed_range(self) -> tuple:
    return self.get_appliance.speed_range \
        if self.get_appliance.speed_range[1] != 0 \
        else (1, 3)

The problem with the Pure 500 is that unlike the other models, it supports only 3 modes (by 33% steps). So the default implementation gives a division by zero which can be solved this way. I think the Pure 500 probably takes 67% instead of 66% and that makes it not take the middle input but it works for the maximum and the minimum speeds.

andrecunha-sb commented 3 months ago

I have no clue on how to expose the air PM sensor on the Pure 500 though...

JohNan commented 3 months ago

@andrecunha-sb do you have a complete response from the api? With that we can probably handle it differently for this model.