Skip to content

Conversation

Guzz-T
Copy link
Contributor

@Guzz-T Guzz-T commented Sep 15, 2025

First pull request to gradually integrate the smart home interface. This pull request includes:

  • the definition of the SHI data fields
  • a data field object to make the information from the definition more easily accessible
  • new data types used in the SHI

Part1 for #190

Copy link

github-actions bot commented Sep 15, 2025

Coverage

Coverage Report
FileStmtsMissCoverMissing
luxtronik
   __init__.py1841194%42–43, 46–51, 257–258, 263
   __main__.py21210%3–49
   datatypes.py308199%82
   discover.py58198%62
luxtronik/scripts
   dump_changes.py43430%7–85
   dump_luxtronik.py26260%6–52
TOTAL72610386% 

Tests Skipped Failures Errors Time
139 0 💤 0 ❌ 0 🔥 4.329s ⏱️

@Guzz-T Guzz-T changed the title Issue/190/definitions Support Smart-Home-Interface Part 1 Sep 16, 2025
@Guzz-T Guzz-T force-pushed the issue/190/definitions branch from a35ce11 to f8a11e3 Compare September 21, 2025 21:18
@Guzz-T
Copy link
Contributor Author

Guzz-T commented Sep 21, 2025

The previously added class still requires revision. Therefore, I have removed everything except the field definitions and the new data types.

Please merge if everything is fine.

@Guzz-T Guzz-T changed the title Support Smart-Home-Interface Part 1 Support Smart-Home-Interface Part 1: Field definitions Sep 21, 2025
Comment on lines 922 to 925
0: "Normal", # No correction
1: "Increased", # Increase the temperature by the values within the SHI-settings
2: "Increased", # Increase the temperature by the values within the SHI-settings
3: "Decreased", # Decrease the temperature by the values within the SHI-settings
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just out of curiousity: Is there any reference for the exact meaning of those values? I assume it is correct (due to the fact that you're making use of this already), but I'm somewhat surprised that there are two values for Increased.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately, there is no documentation for the fields. At least with the holdings, you have the display on the controller itself. I don't know why there are (apparently) two equivalent values here. However, the behavior was the same twice on my heat pump.

Comment on lines 890 to 892
0: "No-Limit",
1: "Soft-Limit",
2: "Hard-Limit",
Copy link
Collaborator

@kbabioch kbabioch Sep 22, 2025

Choose a reason for hiding this comment

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

Nit-picking: Where are the dashes (-) coming from as separator? Are whitespaces allowed here?

For instance in ModeState you're using spaces.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right, it's not entirely consistent here. The heat pump also uses names with spaces.

"type": LevelMode,
"writeable": True,
"since": "3.92.0",
"description": "Increase or decrease the temperature by the SHI-offsets-setting",
Copy link
Collaborator

Choose a reason for hiding this comment

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

SHI is being used here without any introduction. Probably it would be helpful to have a short documentation about SHI in the top of the class, so anyone new to this project knows that this refers to "Smart Home Interface".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Collaborator

@kbabioch kbabioch left a comment

Choose a reason for hiding this comment

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

I really like the clean approach and the new class / holding definition. Especially the idea to store the firmware version since when a particular field is available.

I commented on some smaller details (mostly nit-picking), don't see any overall problems at all.

@Guzz-T
Copy link
Contributor Author

Guzz-T commented Sep 22, 2025

Thanks for the review, I've incorporated the points.

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