PowerOutlet state not restored

Hi OpenHab community.

I’m running OH 4.3.1 on Pi 5.
Quite standard with RRD4J persistence.

Today there has been a power outage in the city.
When the power came back, everything restarted, but my Zigbee poweroutlets were not restored to their previous status.

Quite annoying be cause they are necessary for some of my devices, for example my velux control bridge.

It I’m getting old maybe and I may be wrong, but I thought (saw ?) usually OH restored the statuses at startup ‘before’.
But before what, I don’t know.

Would any of you have an idea to solve this issue ?

Kind regards,

I think you have to change that directly in your ZigBee devices.
RestoreOnStartup only restores the item state, but it does not send a new command to the channel.

But if the device does not have any setting here, you could trigger a rule with a system event and restore the last known item state there: Persistence | openHAB either with

<item>.previousState()
#or
<item>.previousState(true)

with item being the name of the item you want to update

Thank you Sascha.

But today (did anyone happen to see a black cat ?) I had a Zigbee what (‘panic’ ?).
The ember coordinator crashed and many things would not work anymore :sob:.
Guess a side consequence of the power outage. Not clear.

Probably, this would self solve after some time, but I decided to reboot.

After reboot, my poweroutlets switches were restored to their active state (if any).
And my Xmas tree light garland shined (I know, we’re late !) and my Velux bridge and devices were ok.
Without any intervention of mine.

So, the problem seem to be linked to power outage.
I’m on disk. SSD, but SSD is disk.
And of course, I disable Zram quite a time ago.

Guess this will remain as another OH mystery.