Duplicate item updates during single switch

Good morning openHABians,

i do have a question regarding item updates. I start using HABApp and there looking into the HABApp_events.log. This log file represents all item changes AND UPDATES. Now i recognized, that item updates are recorded twice when switching in the sitemap Ui. I posted in this section here, as the fact which i am talking about is independent from HABApp and only based on the core behaviour of openHAB (see also comment from @Spaceman_Spiff here https://community.openhab.org/t/habapp-easy-automation-with-openhab/59669/746

Background: Using openHAB 3.4.4, python3.11, HABApp1.0.8, textual configuration, classical sitemap view, iPhone App, toggeling in the iPhone App or via Browser.

173 [2023-06-10 20:43:33,131] [HABApp.EventBus] INFO | MQTT_EG_Kinderzimmer_Links: <ItemCommandEvent name: MQTT_EG_Kinderzimmer_Links, value: OFF>
174 [2023-06-10 20:43:33,147] [HABApp.EventBus] INFO | MQTT_EG_Kinderzimmer_Links: <ItemStatePredictedEvent name: MQTT_EG_Kinderzimmer_Links, value: OFF>
175 [2023-06-10 20:43:33,147] [HABApp.EventBus] INFO | MQTT_EG_Kinderzimmer_Links: <ItemStateEvent name: MQTT_EG_Kinderzimmer_Links, value: OFF>
176 [2023-06-10 20:43:33,151] [HABApp.EventBus] INFO | MQTT_EG_Kinderzimmer_Links: <ItemStateChangedEvent name: MQTT_EG_Kinderzimmer_Links, value: OFF, old_value: ON>
177 [2023-06-10 20:43:33,162] [HABApp.EventBus] INFO | MQTT_EG_Kinderzimmer_Links: <ItemStateEvent name: MQTT_EG_Kinderzimmer_Links, value: OFF>

Can anybody tell me, why one can see two “ItemStateEvents” which is update of the item?

Thanks for your help
Patrick

Can you try with autoupdate false?

Have tried it with autoupdate=“false” and now it reduces to only one occurance. Seems as if autoupdate triggers the state update once and when my MQTT item sends the new status back it also triggers the state update.

What is the general recommendation on autoupdate with MQTT items? True or False?

236 [2023-06-11 21:48:01,001] [HABApp.EventBus] INFO | MQTT_EG_Kinderzimmer_Links: <ItemCommandEvent name: MQTT_EG_Kinderzimmer_Links, value: ON>
237 [2023-06-11 21:48:01,036] [HABApp.EventBus] INFO | MQTT_EG_Kinderzimmer_Links: <ItemStateEvent name: MQTT_EG_Kinderzimmer_Links, value: ON>
238 [2023-06-11 21:48:01,041] [HABApp.EventBus] INFO | MQTT_EG_Kinderzimmer_Links: <ItemStateChangedEvent name: MQTT_EG_Kinderzimmer_Links, value: ON, old_value: OFF>

Thanks again one more time @Spaceman_Spiff !

Patrick

Depends:
https://habapp.readthedocs.io/en/latest/tips.html#autoupdate