HABApp 24

I guess I found the culprit.

Your __str__ methods of a dimmer or rollershutter item return the value, not str(value). So if one tries to print an item with {item} instead of {repr(item)}, it fails with " TypeError: __str__ returned non-string (type …)"

Presumably the __str__ is also called in event.describe(), which casues the error I posted

1 Like

Thank you for you help and thorough investigation. I’ll make sure to fix this issue with the next release.

Good news everyone!

HABApp 24.08.0 is out!

This is mostly a bugfix release which properly ignores all ItemTimeSeries events from OH4.2.
Also this is probably the last version to support Python 3.8 and Python 3.9 so if you are still running those please think about upgrading (currently to 3.10 or 3.11).


Changelog:

  • Fixed an issue with thing re-sync
  • Updated number parsing logic
  • ItemTimeSeriesEvent gets ignored
  • Removed verbose error messages when openHAB server disconnects
  • Updated dependencies
  • Reformatted some files
1 Like

i updated to 24.8.0 today in the morning and everything worked as before.

now i did a reboot of the rpi and now i have an endless loop when habapp starts like:

2024-08-01 18:49:15.224 [DEBUG] [HABApp.openhab.items                ] - Starting Thing sync
2024-08-01 18:49:15.290 [DEBUG] [HABApp.openhab.items                ] - Re-synced solarlog:meter:pv
2024-08-01 18:49:15.291 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_cenplus_scenario_control:bticino:Hwr_CenPlus_PIr
2024-08-01 18:49:15.292 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_dimmer:bticino:EWoK_Kueche_Li
2024-08-01 18:49:15.292 [DEBUG] [HABApp.openhab.items                ] - Re-synced onewire:basic:mybridge:OwTemp_Solar_KollektorRL
2024-08-01 18:49:15.293 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_dimmer:bticino:EWoK_Fenster_Li
2024-08-01 18:49:15.293 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_thermo_sensor:bticino:EWoK_Heizung_Slave
2024-08-01 18:49:15.294 [DEBUG] [HABApp.openhab.items                ] - Re-synced onewire:basic:mybridge:OwTemp_PufferMitte
2024-08-01 18:49:15.295 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_cenplus_scenario_control:bticino:Schlafzi_CenPl_Li
2024-08-01 18:49:15.295 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_dimmer:bticino:WC_Li
2024-08-01 18:49:15.296 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_dimmer:bticino:EWoK_TV_Li
2024-08-01 18:49:15.296 [DEBUG] [HABApp.openhab.items                ] - Re-synced onewire:basic:mybridge:OwTemp_Solar_PoolRL
2024-08-01 18:49:15.297 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_cenplus_scenario_control:bticino:WC_CenPl_Musik
2024-08-01 18:49:15.297 [DEBUG] [HABApp.openhab.items                ] - Re-synced onewire:basic:mybridge:OwTemp_KaminVL
2024-08-01 18:49:15.298 [DEBUG] [HABApp.openhab.items                ] - Re-synced onewire:basic:mybridge:OwTemp_KWL_Solebox
2024-08-01 18:49:15.299 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_cen_scenario_control:bticino:EGFlur_Cen_PIr
2024-08-01 18:49:15.299 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_cenplus_scenario_control:bticino:OGFlur_Treppe_CenPl
2024-08-01 18:49:15.300 [DEBUG] [HABApp.openhab.items                ] - Re-synced onewire:basic:mybridge:OwTemp_EGKl_Fbh_RL
2024-08-01 18:49:15.301 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_cenplus_scenario_control:bticino:Garage_CenPlus_PIr
2024-08-01 18:49:15.302 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_cen_scenario_control:bticino:Schlafzi_Cen_Li
2024-08-01 18:49:15.302 [DEBUG] [HABApp.openhab.items                ] - Re-synced onewire:basic:mybridge:OwTemp_Technikraum
2024-08-01 18:49:15.303 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_cen_scenario_control:bticino:EWoK_Cen_Abzug
2024-08-01 18:49:15.304 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_cen_scenario_control:bticino:Cen_MorgenFeiertag
2024-08-01 18:49:15.304 [DEBUG] [HABApp.openhab.items                ] - Re-synced onewire:basic:mybridge:OwTemp_BetriebPufferUnten
2024-08-01 18:49:15.305 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_cen_scenario_control:bticino:Hwr_Cen
2024-08-01 18:49:15.305 [DEBUG] [HABApp.openhab.items                ] - Re-synced onewire:basic:mybridge:OwTemp_PufferOben
2024-08-01 18:49:15.306 [DEBUG] [HABApp.openhab.items                ] - Re-synced onewire:basic:mybridge:OwTemp_KWL_Aussen
2024-08-01 18:49:15.306 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_thermo_zone:bticino:Hwr_Heizung
2024-08-01 18:49:15.307 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_thermo_zone:bticino:Abstell_Heizung
2024-08-01 18:49:15.308 [DEBUG] [HABApp.openhab.items                ] - Re-synced onewire:basic:mybridge:OwTemp_PufferUnten
2024-08-01 18:49:15.308 [DEBUG] [HABApp.openhab.items                ] - Re-synced onewire:basic:mybridge:OwTemp_Solar_KollektorVL
2024-08-01 18:49:15.309 [DEBUG] [HABApp.openhab.items                ] - Re-synced onewire:basic:mybridge:OwTemp_KaminRL
2024-08-01 18:49:15.310 [DEBUG] [HABApp.openhab.items                ] - Re-synced onewire:basic:mybridge:OwTemp_BetriebPufferOben
2024-08-01 18:49:15.310 [DEBUG] [HABApp.openhab.items                ] - Re-synced onewire:basic:mybridge:OwTemp_Solar_PoolVL
2024-08-01 18:49:15.311 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_cen_scenario_control:bticino:Buero_Cen_Ro
2024-08-01 18:49:15.311 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_thermo_zone:bticino:EGFlur_Heizung
2024-08-01 18:49:15.312 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_thermo_zone:bticino:Jana_Heizung
2024-08-01 18:49:15.313 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_cen_scenario_control:bticino:Schlafzi_Cen_Ro_Morg
2024-08-01 18:49:15.313 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_thermo_zone:bticino:Tim_Heizung
2024-08-01 18:49:15.314 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_cenplus_scenario_control:bticino:Schlafzi_CenPl_Hu_Li
2024-08-01 18:49:15.315 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_dry_contact_ir:bticino:Hwr_Kt
2024-08-01 18:49:15.315 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_cen_scenario_control:bticino:Garage_Cen_PIr
2024-08-01 18:49:15.316 [DEBUG] [HABApp.openhab.items                ] - Re-synced onewire:basic:mybridge:OwTemp_Pool
2024-08-01 18:49:15.316 [DEBUG] [HABApp.openhab.items                ] - Re-synced onewire:basic:mybridge:OwTemp_KWL_Abluft
2024-08-01 18:49:15.317 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_cenplus_scenario_control:bticino:Schlafzi_CenPl_TV
2024-08-01 18:49:15.318 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_cen_scenario_control:bticino:Schlafzi_Cen_Hundemelder
2024-08-01 18:49:15.318 [DEBUG] [HABApp.openhab.items                ] - Re-synced onewire:basic:mybridge:OwTemp_NotVL
2024-08-01 18:49:15.319 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_cen_scenario_control:bticino:OGFlur_Cen_PIr
2024-08-01 18:49:15.319 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_cen_scenario_control:bticino:Schlafzi_Cen_WC
2024-08-01 18:49:15.320 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_cen_scenario_control:bticino:WC_Cen_PIr
2024-08-01 18:49:15.321 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_thermo_zone:bticino:Bad_Heizung
2024-08-01 18:49:15.324 [DEBUG] [HABApp.openhab.items                ] - Re-synced onewire:basic:mybridge:OwTemp_KWL_Zuluft
2024-08-01 18:49:15.325 [DEBUG] [HABApp.openhab.items                ] - Re-synced onewire:basic:mybridge:OwTemp_FbhRL
2024-08-01 18:49:15.326 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_cenplus_scenario_control:bticino:Bad_CenPl_Div
2024-08-01 18:49:15.327 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_cen_scenario_control:bticino:Tim_Cen_Li
2024-08-01 18:49:15.327 [DEBUG] [HABApp.openhab.items                ] - Re-synced onewire:basic:mybridge:OwTemp_KWL_Fortluft
2024-08-01 18:49:15.328 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_thermo_zone:bticino:WC_Heizung
2024-08-01 18:49:15.329 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_cen_scenario_control:bticino:WC_Cen_Musik
2024-08-01 18:49:15.329 [DEBUG] [HABApp.openhab.items                ] - Re-synced onewire:basic:mybridge:OwTemp_NotRL
2024-08-01 18:49:15.330 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_cenplus_scenario_control:bticino:EWoK_CenPl_Li
2024-08-01 18:49:15.331 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_cen_scenario_control:bticino:Hwr_Cen_PIr
2024-08-01 18:49:15.331 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_cen_scenario_control:bticino:Schlafzi_Cen_Ro_Abend
2024-08-01 18:49:15.332 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_cen_scenario_control:bticino:Bad_Cen_Musik
2024-08-01 18:49:15.333 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_dry_contact_ir:bticino:Garage_TuereHolz_Kt
2024-08-01 18:49:15.334 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_cen_scenario_control:bticino:Jana_Cen_Li
2024-08-01 18:49:15.334 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_cen_scenario_control:bticino:EWoK_Cen_Lamellen
2024-08-01 18:49:15.335 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_dimmer:bticino:Abstell_Li
2024-08-01 18:49:15.336 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_cen_scenario_control:bticino:Hoftor_Cen
2024-08-01 18:49:15.336 [DEBUG] [HABApp.openhab.items                ] - Re-synced onewire:basic:mybridge:OwTemp_EGKl_Fbh_VL
2024-08-01 18:49:15.337 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_cenplus_scenario_control:bticino:EWoK_CenPl_Div
2024-08-01 18:49:15.338 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_cen_scenario_control:bticino:Bad_Cen_Li
2024-08-01 18:49:15.339 [DEBUG] [HABApp.openhab.items                ] - Re-synced onewire:basic:mybridge:OwTemp_FbhVL
2024-08-01 18:49:15.340 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_thermo_zone:bticino:OGFlur_Heizung
2024-08-01 18:49:15.340 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_cen_scenario_control:bticino:EWoK_Cen_Ja
2024-08-01 18:49:15.341 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_cenplus_scenario_control:bticino:Schlafzi_CenPl_Ro
2024-08-01 18:49:15.344 [DEBUG] [HABApp.openhab.items                ] - Starting Thing sync
2024-08-01 18:49:15.404 [DEBUG] [HABApp.openhab.items                ] - Re-synced solarlog:meter:pv
2024-08-01 18:49:15.405 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_cenplus_scenario_control:bticino:Hwr_CenPlus_PIr
2024-08-01 18:49:15.405 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_dimmer:bticino:EWoK_Kueche_Li
2024-08-01 18:49:15.408 [DEBUG] [HABApp.openhab.items                ] - Re-synced onewire:basic:mybridge:OwTemp_Solar_KollektorRL
2024-08-01 18:49:15.408 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_dimmer:bticino:EWoK_Fenster_Li
2024-08-01 18:49:15.409 [DEBUG] [HABApp.openhab.items                ] - Re-synced openwebnet:bus_thermo_sensor:bticino:EWoK_Heizung_Slave
2024-08-01 18:49:15.409 [DEBUG] [HABApp.openhab.items                ] - Re-synced onewire:basic:mybridge:OwTemp_PufferMitte

this does not end until i move all things (all file based) out of the things folder. after that i can move them back and then i do not see this loop again until next reboot.

i tried several reboots, cleared the cache, totally uninstalled habapp, removed the /opt/habapp folder and installed it again. tried to install manually as in the docs and with the openhabian-config menu.

did i miss something? i saved the log but i am not able to attach here because its size is more than 10mb (it covers 6 minutes). thank you for any hints

1 Like

Good news everyone!

HABApp 24.08.1 is out!

This fixes a possible infinite loop during the thing sync which @bastler was hitting

1 Like

I also updated to the latest version (24.08.1) and face no issues till now. Thanks for your work :slight_smile: