Values of variables and fields are lost after a hard reset of the Homey Pro 2023

I notice that when I turn the power off and on again on the Homey Pro 2023, some variables and device fields appear to contain values from a few hours earlier. I suspect this corresponds to the time of the previous soft reset of Homey via a flow (I perform this three times a day to prevent slowness and crashes).

This is particularly noticeable with the device.capabilities field lastChanged, which causes a control script to incorrectly determine that a sensor is no longer (sufficiently) active.

I also observe this with the variable “Schemer” , which I use to indicate whether the lights should be turned off or on. It seems that the value displayed in the Homey UI does not match the internal value.

It appears that Homey caches these values for a prolonged period and only actually stores them before a soft reset.

Is anyone else familiar with this issue?

That’s madness.
In general my Homeys only reboot after firmware updates?

I think you should try to find the app(s) causing slowness and crashes.
And… what can cause slowness… for instance it can be a z-wave network with “chatty” devices (flooding the mesh with data).

Correct, but that is not the issue I want to solve right now. My question was about “Values of variables and fields are lost after a hard reset of the Homey Pro 2023.”

Hi Freek, …

There is a difference between Tags and Variables:
(although normally I do not loose the values of variables.)

Tags:
Tags are essentially variables that can be used within Homey flows. They can be of various types, including String, Number, Boolean, or Image. Tags are created automatically by Homey or smart home devices and can also be defined by users.

  • Tags are often used to store data that can trigger actions or conditions in flows. They can be local (usable only within a specific flow) or global (usable across all flows) and are persistent across reboots of the Homey device.

Variables:
Variables in Homey are placeholders for values that can be changed during the execution of a flow. They allow users to store information that may not necessarily be tied to device states.
There are three main types of variables: Yes/No (Boolean), Number, and Text. Each type serves different purposes, such as tracking device states or storing calculated values.

You can easily save values of Variables to Tags vv. with HomeyScript

My issue has been resolved in v12.3.0. See:

• Fixes an issue that could cause capability values to reset to an old value when Homey was restarted by pulling the plug.