JohNan / homeassistant-wellbeing

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

Add Pure 500 #90

Closed jorgenseike closed 3 months ago

jorgenseike commented 8 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 8 months ago

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

jorgenseike commented 8 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 7 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 7 months ago

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

JohNan commented 7 months ago

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

andrebcunha 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.

@JohNan No. But I can do it. Do you have any scripts I can run or do I need to make something on my own?

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.

@JohNan No. But I can do it. Do you have any scripts I can run or do I need to make something on my own?

With the latest release I have added better logging. Add this to your configuration.yaml

logger:
  logs:
    pyelectroluxgroup.appliance: debug

Search for pyelectroluxgroup.appliance in the logs and post the result here.

andrebcunha commented 3 months ago

@JohNan wellbeing_log.txt

Please note that the API access tokens and key are no longer active as of now.

JohNan commented 3 months ago

@JohNan wellbeing_log.txt

Please note that the API access tokens and key are no longer active as of now.

Thank you. What is the model name? You can find it on the device in HA

Screenshot 2024-08-15 at 07 35 49
andrebcunha commented 3 months ago

image

The Pure 500 is known as Muju for some reason. I can tell you some differences: It only supports 3 speeds (hence why fan control is broken and the hack I previously posted works) and it has only a PM2.5 sensor which I cannot see anywhere. if you need any help just ask.

image

image