I have some items that are not bound directly to a device/channel but that are used by one of my rules to drive multiple devices. For example one item would be ‘Switch BedroomRadiators’. When that is changed all bedroom radiators are either set to 7 (off) or 20 (on) degrees.
This works fine, except when I restart openhab. At that point these unbound items are not initialized with the actual current values of my radiator thermostats - which arrive asynchronously. So even though the radiators might actually be set to 20C, the ‘BedroomRadiators’ item could still have its bootup value of ‘OFF’.
How can I improve my setup so that on restart from openhab these derived items are properly initialized based on actual device values as they come in?