DanfossAirUnit: Handling of lost connection

Hi @pravussum

Once in a while this happens:

2021-08-11 21:14:54.842 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'DanfossHRV_Main_ManualFanSpeed' changed from 10 to 0
2021-08-11 21:14:54.844 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'DanfossHRV_Main_ExtractFanSpeed' changed from 2396 to 0
2021-08-11 21:14:54.845 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'DanfossHRV_Main_SupplyFanSpeed' changed from 1868 to 0
2021-08-11 21:14:54.847 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'DanfossHRV_Main_ExtractFanStep' changed from 77 to 0
2021-08-11 21:14:54.853 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'DanfossHRV_Main_SupplyFanStep' changed from 55 to 0
2021-08-11 21:14:54.861 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'DanfossHRV_RoomTemperature' changed from 24.2 °C to 0 °C
2021-08-11 21:14:54.868 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'DanfossHRV_OutdoorTemperature' changed from 17.6 °C to 0 °C
2021-08-11 21:14:54.872 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'DanfossHRV_Humidity' changed from 57.6 to 0.0
2021-08-11 21:14:54.875 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'DanfossHRV_Recuperator_SupplyAirTemperature' changed from 25.2 °C to 0 °C
2021-08-11 21:14:54.877 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'DanfossHRV_Recuperator_ExtractAirTemperature' changed from 25.8 °C to 0 °C
2021-08-11 21:14:54.879 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'DanfossHRV_Recuperator_ExhaustAirTemperature' changed from 19.4 °C to 0 °C
2021-08-11 21:14:54.881 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'DanfossHRV_Service_RemainingFilterLife' changed from 16.078432083129883 to 0.0

All values are set to 0. I have a rule for sending me a push notification when DanfossHRV_Service_RemainingFilterLife is changed to a value less than 10%, so this is something I’ll notice and take action upon. These have been my ways to mitigate:

  • Wait it out. Sometimes it happens when I’m sleeping or working, so I’ll not react in a timely manner, and when I attend to it, problem already resolved itself.
  • Other times it has helped to restart the binding.
  • A few times I have restarted the unit to fix the issue.
  • Restarting the unit felt too aggresive, so also tried pulling the Ethernet cable from my switch and put it back. Also seemed to resolve it.

I don’t know exactly why it happens (lost connection or unit acting strange?), but actually my question is if it would be possible to change the way it’s handled in the binding? Instead of zero’ing all values, would it be possible to mark the Thing as offline instead? This would still make it possible to detect the issue (e.g. from a rule), and persisted values wouldn’t become 0 and break graphs, statistics, calculations etc. IMHO it would be better to not update the values when no new values are available, which seems to be the case here.

Similar: [squeezebox] Map player connection state to thing status by maniac103 · Pull Request #10778 · openhab/openhab-addons ·

Best regards,
Jacob Laursen

Created [danfossairunit] All channels updated to zero · Issue #11188 · openhab/openhab-addons · GitHub

@pravussum - I finally found the reason for this and created a pull request with a proposed fix:

1 Like

Thanks a lot for taking the time to investigate and fix this!