ksya / ha-nefiteasy

Nefit Easy connection for Home Assistant
74 stars 31 forks source link

sensor.boiler_indicator gone? #129

Closed sweetpants closed 2 years ago

sweetpants commented 2 years ago

Am i right that the sensor.boiler_indicator is gone? What's the replacement sensor?

RobBie1221 commented 2 years ago

Was there ever a sensor.boiler_indicator? Is that a self-assigned entity name? What information was this entity exposing?

Which version did you still have the sensor?

sweetpants commented 2 years ago

As far as I know there was a sensor with this name. The values it supplied where CH - Central Heating Active HW - Hot Water Active and a few other states

image

This morning I upgraded HA to 2022.4.0 and since that time I get 'unknown'

sweetpants commented 2 years ago

I have a custom integration that relies on this sensor so i know when to turn on/off my central heating pump (when this sensor goes to state CH). In the log of this integration i can see it stopped right after the upgrade of HA to 2022.4.0. Not sure if this is related. In the Nefit Easy integration entities I don't see this sensor either/anymore.

sweetpants commented 2 years ago

Looks like it has something to do with nefit.climate device

sweetpants commented 2 years ago

The code is still there

@property def hvac_action(self) -> str: """Return the current running hvac operation if supported.""" if ( self.coordinator.data.get("boiler_indicator") == "CH" ): # HW (hot water) is not for climate return CURRENT_HVAC_HEAT

    return CURRENT_HVAC_IDLE
RobBie1221 commented 2 years ago

Could this be a template sensor you have defined yourself?

RobBie1221 commented 2 years ago

I'm trying to figure out what changed. I can't find any boiler indicator ever being defined in this integration. It should not change with HA version, as long as you don't update the integration...

sweetpants commented 2 years ago

I found the culpritt. There used to be a boiler_indicator supplied bij climate.nefit. This has disappeared somehow. The climate.nefit now supplies hvac_acion which has values idle/heating. I have changed my custom integration to use that and now it works again. When heating is turned on, the circulation pump is turned on and when turned off, the pump is turned off after 10 minutes. issue closed

RobBie1221 commented 2 years ago

Ok, that makes sense.

Note, the boiler_indicator as a state attribute is still there, but changed to extra_state_attribute here #93 That probably broke your sensor, but was needed because device_state_attributes is deprecated.