Sergo, I found a solution for our problem.
This rule checks one critical sensor every 15 minutes whether it is offline. If yes, it enables all deconz based sensors in my system.
rule "EnableAquaraDevices"
// learned from https://community.openhab.org/t/unsupported-http-media-type-after-upgrade-to-3-2/130673
// ..../enable", ...'true' --> enable device
// ..../enable", ...'false' --> disable device
when
Time cron "0 */15 * ? * *" // every 15 minutes, see https://www.freeformatter.com/cron-expression-generator-quartz.html
then
val StatusAquara = getThingStatusInfo("deconz:presencesensor:00212E027726:00158d000xxxxx6c010406").getStatus()
if (StatusAquara.toString != "ONLINE"){
sendHttpPutRequest("http://username:password@192.168.0.163:8080/rest/things/deconz:presencesensor:00212E027726:00158d000xxxxx6c010406/enable", "text/plain", 'true')
....
Thread::sleep(1500)
}
end