gvigroux / hon

Support of all Haier, Candy, Hoover appliances integrated in the official hOn mobile app. Direct access to all possible services and parameters
MIT License
135 stars 51 forks source link

States have changed to numerical since latest updates #131

Closed Jaykurb closed 5 months ago

Jaykurb commented 6 months ago

I updated the HA OS and this integration recently, and now the status of my washing machine is showing as a numerical value only. As you can see in the attached screenshot, the UI shows the washing machine state as running, but the dev tools indicate that the state is 2. I can make edits to accommodate numerical values, but I wanted to confirm if this change is permanent or if it will revert back to how it was before.

Screenshot 2024-03-18 at 11 55 07

gvigroux commented 6 months ago

It's not normal because it should user the list below for the Washing Machine. I've made an update, can you please test the last version?

"0": "Disconnected", "1": "Ready", "2": "Running", "3": "Paused", "5": "Scheduled", "6": "Error", "7": "Finished"

Jaykurb commented 6 months ago

I updated it to 0.6.16 but I am still getting numerical values.

Screenshot 2024-03-19 at 14 00 03

stickmanbrad commented 6 months ago

I can confirm I’m also having this exact issue. I also updated to 0.6.16, and it’s still doing this numeric state. Hopefully this can be easily resolved. Kind regards :-)

gvigroux commented 6 months ago

not normal at all... let me check this

gvigroux commented 6 months ago

Could you please check in the logs and tell me the "applianceTypeId" value ? To activate logs, you can add the lines below in your configuration.yaml

logger:
  logs:
    custom_components.hon: debug
willhaggan commented 6 months ago

Just to add, I have found quite the opposite with my Hoover HDISH 700 Dishwasher, after 0.6.12 i was losing entities all together so i stuck .12. After updating to 0.6.15 i have now got the correct information for program name, phase and mode which was always mixed up prior to .12.

Jaykurb commented 6 months ago

applianceTypeId

'applianceTypeId': 1

stickmanbrad commented 6 months ago

Has there been any progress on this? - I did see an update was pushed but I’m still seeing numbers? Can provide more information following @Jaykurb ‘s response if needed. Kind regards :-)

gvigroux commented 6 months ago

I'm really stick on this one:

I guess there is an error on my side but I'm still looking into it

gvigroux commented 5 months ago

I'm not able to find the error on the washing machines... can someone share an account for one day or two (in private) ? I will obviously not touch anything just try to understand why the mapping fails.

Jaykurb commented 5 months ago

mapping

I don't mind doing this but I won't be able to do it till Wednesday as I am away.

gvigroux commented 5 months ago

Perfect, let's do it later this week :)

Jaykurb commented 5 months ago

Perfect, let's do it later this week :)

Hi, sorry was a bit of manic week. I am ready whenever you are.

gvigroux commented 5 months ago

You can send me some credentials here: gvigroux@free.fr

gvigroux commented 5 months ago

I've made an update :) please try

Jaykurb commented 5 months ago

Screenshot 2024-04-18 at 14 39 31

Not working for me, unfortunately.

gvigroux commented 5 months ago

If you want to launch a program, you should do something different. What are you trying to achieve ? (I can also test on my side thanks to you)

Jaykurb commented 5 months ago

Sorry, I think I misunderstood.

I thought the update was addressing the issue where the washing machine state changed to numerical value only.

I mean it isn't a big deal being numerical anyway.

gvigroux commented 5 months ago

There are multiple values. With your machine I have only one numerical value, all the rest is text: Program phase "ready" Program name "Perfect White" Mode "ready"

I've added the program code (136) in case it's usefull

Capture2

Jaykurb commented 5 months ago

Yes I have text within HA UI but the states seem to be numerical still when viewed in developer tools.

image

image

I have changed my automations to cater for numerical states now so it doesn't bother me too much.

Will take a look at the update later when home though, thank you.

gvigroux commented 5 months ago

yes you're right. I changed the value to numerical because the HA translation system has changed and it was easier for me. Now I understand your point :)

gvigroux commented 5 months ago

Values will stays numerical