homematicip-rest-api icon indicating copy to clipboard operation
homematicip-rest-api copied to clipboard

Warnings about "HEAT_DEMAND_RULE_WITH_LEAD_ROOM"

Open Nihilissimis opened this issue 2 years ago • 2 comments

I'm getting two warnings mentioning HEAT_DEMAND_RULE_WITH_LEAD_ROOM: 1: homematicip.base.enums - WARNING - 'HEAT_DEMAND_RULE_WITH_LEAD_ROOM' isn't a valid option for class 'GroupType' 2: homematicip.home - WARNING - There is no class for group 'HEAT_DEMAND_RULE_WITH_LEAD_ROOM' yet

As far as I can tell this is coming from the HmIP-WHS2 Boiler switch that has this as assignment on one of the ports.

I took a quick stab at trying to fix this, but not familiar with the code and it seems that the group definitions are a bit complex. Happy to help/provide more information if needed.

Nihilissimis avatar Jan 24 '23 15:01 Nihilissimis

Yes of course. you can contact me via Discord or Email

hahn-th avatar Jan 25 '23 06:01 hahn-th

You have to do following things:

  • create the group class in group.py
  • create the async version in aio/group.py
  • add group type from json dump in base/enums.py -> GroupType Enum
  • assign your class from group.py to class_maps TYPE_GROUP_MAP
  • assign your async class from aio/group.py to TYPE_GROUP_MAP in aio/class_maps

hahn-th avatar Jan 25 '23 06:01 hahn-th