Skip to content

Fix setup/initialization error, add TV appliance type and add more sensors to dishwashers and washing machines#285

Open
gregoriohc wants to merge 5 commits intogvigroux:masterfrom
gregoriohc:master
Open

Fix setup/initialization error, add TV appliance type and add more sensors to dishwashers and washing machines#285
gregoriohc wants to merge 5 commits intogvigroux:masterfrom
gregoriohc:master

Conversation

@gregoriohc
Copy link
Copy Markdown

@gregoriohc gregoriohc commented Mar 8, 2026

Fix KeyError for appliances missing 'series' field

Some appliances returned by the API don't include the 'series' field, causing a KeyError during setup. Changed all direct accesses to appliance["series"] to use .get("series", "") in device.py, climate.py, and hon.py.

Add TV sensors and statistics-based program counter

Add TV (typeId=25) to APPLIANCE_TYPE and APPLIANCE_DEFAULT_NAME.
New sensors: volume, displayed app, and mute status for TV devices.
Add total programs counter sensor from statistics data for DW and WM.

Add additional sensors for WM and DW devices

WM sensors: current wash cycle, remaining rinse iterations, detergent
level/weight, softener weight. WM binary sensors: pause, night wash,
steam, energy saving.
DW sensors: water hardness, delay time. DW binary sensors: extra dry,
half load, open door at end, eco express.

Add TV (typeId=25) to APPLIANCE_TYPE and APPLIANCE_DEFAULT_NAME.
New sensors: volume, displayed app, and mute status for TV devices.
Add total programs counter sensor from statistics data for DW and WM.
@gregoriohc gregoriohc changed the title Fix KeyError for appliances missing 'series' field Fix KeyError for appliances missing 'series' field and add TV appliance type Mar 8, 2026
WM sensors: current wash cycle, remaining rinse iterations, detergent
level/weight, softener weight. WM binary sensors: pause, night wash,
steam, energy saving.

DW sensors: water hardness, delay time. DW binary sensors: extra dry,
half load, open door at end, eco express.
@gregoriohc gregoriohc changed the title Fix KeyError for appliances missing 'series' field and add TV appliance type Fix setup/initialization error, add TV appliance type and add more sensors to dishwashers and washing machines Mar 8, 2026
@karst
Copy link
Copy Markdown

karst commented Mar 10, 2026

I cannot seem to test this due to an api update which has not been pushed to your branch. Could you rebase the master of https://github.com/gregoriohc/hon so it's up to date?

I keep running into an issue where it tells me it cannot login. Which I believe should have been patched in the four commits that you are behind.
image

@karst
Copy link
Copy Markdown

karst commented Mar 11, 2026

I was able to create my own branch to test on but sadly the main branch even doesn't allow me to login to hon anymore. So I cannot test this until that's fixed.

Merge gvigroux/hon latests commits
@gregoriohc
Copy link
Copy Markdown
Author

@karst I have merged back the "gvigroux/hon" changes, but the changes were minimal (italian translation and readme update) and they didn't seem to be related to my fix.

@gregoriohc
Copy link
Copy Markdown
Author

@karst have you tried changing your password here?
https://account2.hon-smarthome.com/s/login/

@karst
Copy link
Copy Markdown

karst commented Mar 14, 2026 via email

Copy link
Copy Markdown

@karst karst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was able to login again by changing my password. Strange that that fixed that part. This PR works as intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants