ZHA makes devices unavailable after 6 hours

I noticed that the Ubisys H1 thermostat became unavailable over night. Only a reset to factory state could make it available (and, of course usable) again.

I rather think that the Global Option ‘consider battery powered devices unavailable after’ is responsible for this. It is set to 6 hours (21600 seconds).

I tried to disable that option but was unable to do so.

  • Leaving the field empty restores it to the default value
  • Setting the field to zero apparently makes the option immediately effective (after zero seconds)
  • Setting the field to minus one restores it to the default value

I see a few other topics where devices become ‘unavailable’ after several hours. Those might be due to this option.

I think that it should be possible to disable this option either globally or at least for devices which are difficult to re-instate.

Is there a workaround such as setting some value every few hours using a timer loop?

Did you get a response or find a way around this? I have the same issue. At the moment I have been increasing the timeout to 172,800 seconds (48 hours) and it seems to help but is not a perfect solution because I have some devices (e.g. door or motion sensors) which are not changed for weeks.

Do you have anything in your log?
How is the signal quality of that device?

I have a sensor which was not triggered since a couple of months ago and it still working without any special settings on ZHA, so maybe you are not in the best track to solve this.

I set both values for main powered devices and battery powered devices to 10000000000000000 secs which is about 300M years. That should do the job

2 Likes

i like this solution the best!

In the meantime, I have re-done the whole network from scratch. Instead of the deConz I’m now using the SkyConnect dongle and I added an IKEA Zigbee repeater or two on each floor. The thermostats have been running rock-steady ever since, and so do most other Zigbee gadgets.