Think I found the solution, I removed the JavaScript binding, restarted, re-installed the binding, and restarted again. That seems to have fixed it.
Strange, happy to hear you managed to fix it yourself!
similar here (1 x restart, clean cache (because it was seeing duplicate uninstalled binding for Homie) and a second restart after the clean cache and then had a strange restart mid day that i could not debug, but otherwise seems v-good
Updating my docker installation from 5.1.4 to 5.2.1 results in the following error:
+ IFS='
'
+ '[' -n Etc/UTC ']'
+ mountpoint -q /etc/localtime
+ echo 'Warning: /etc/localtime is mounted. Please remove this volume mount and use the TZ environment variable instead.'
Warning: /etc/localtime is mounted. Please remove this volume mount and use the TZ environment variable instead.
++ find /usr/lib/jvm -mindepth 1 -maxdepth 1 -type d
+ export JAVA_HOME=/usr/lib/jvm/java-21-openjdk-amd64
+ JAVA_HOME=/usr/lib/jvm/java-21-openjdk-amd64
+ '[' unlimited = unlimited ']'
+ echo 'Configuring Java unlimited strength cryptography policy...'
Configuring Java unlimited strength cryptography policy...
+ sed -i 's/^crypto.policy=limited/crypto.policy=unlimited/' /usr/lib/jvm/java-21-openjdk-amd64/conf/security/java.security
+ capsh --print
+ grep -E Current:.+,cap_net_admin,cap_net_raw,.+
+ rm -f '/var/lock/LCK..*'
+ rm -f /openhab/userdata/tmp/instances/instance.properties
rm: cannot remove '/openhab/userdata/tmp/instances/instance.properties': Permission denied
Regarding Warning: /etc/localtime is mounted. Please remove this volume mount and use the TZ environment variable instead.
The current docs still list it as one of the volumes which one should mount. Or do I misunderstand something?
Regarding the failed rm, not sure why it fails, since permissions on the host seem ok.

I removed it manually which results in:
++ cmp /openhab/userdata/etc/version.properties /openhab/dist/userdata/etc/version.properties
+ '[' '!' -z '/openhab/userdata/etc/version.properties /openhab/dist/userdata/etc/version.properties differ: byte 267, line 8' ']'
+ echo 'Image and userdata versions differ! Starting an upgrade.'
+ tee /openhab/userdata/logs/update.log
tee: /openhab/userdata/logs/update.log: Permission denied
Image and userdata versions differ! Starting an upgrade.
Again, permissions on the host seem ok:
![]()
Seems to be related to selinux. Disabling it for the upgrade âsolvedâ the issue. Strange that this did work for previous upgrades of the docker image.
Please open an issue on the openhab-docs repo. The docs are correct on the openhab-docker and openhab/openhab - Docker Image but the main docs were not updated. Indeed, the volume should be removed in favor of the environment variable. New Debian and Alpine OSâs do not use the /etc/timezone file anymore.
Not sure if this was already in 5.2.0, but in 5.2.1 comparison doesnât work anymore. Can someone check with 5.2.0?
Screenshot is from Demo and I see the same in my setup.
Just got both pieces installed. Wonât seem to connect to my local openhab and claims the watch side is not installed. Pixel 9a and Pixel Watch 4. Android 17 July 5 update, Wear OS 7
Updating from 5.2.0 to 5.2.1 broke my OH, I can acces the UI but it seems that nothing can be install.
I have this error in the UI log :
Logger Class
org.openhab.core.karaf.internal.FeatureInstaller
Message
Failed installing 'openhab-binding-matter, openhab-core-config-discovery-addon-mdns, openhab-binding-deconz, openhab-core-config-discovery-addon-upnp, openhab-core-config-discovery-addon-sddp, openhab-binding-nest, openhab-misc-openhabcloud, openhab-binding-network, openhab-persistence-inmemory, openhab-ui-habpanel, openhab-automation-jsscripting, openhab-binding-ddwrt, openhab-persistence-rrd4j, openhab-ui-basic, openhab-binding-openweathermap, openhab-binding-astro, openhab-binding-enocean, openhab-binding-androiddebugbridge, openhab-core-config-discovery-addon-usb, openhab-core-config-discovery-addon-ip': Error: Error downloading mvn:net.i2p.crypto/eddsa/0.3.0
and this in the console :
org.apache.karaf.features.internal.util.MultiException: Error:
Error downloading mvn:net.i2p.crypto/eddsa/0.3.0
at org.apache.karaf.features.internal.download.impl.MavenDownloadManager$MavenDownloader.<init>(MavenDownloadManager.java:91)
at org.apache.karaf.features.internal.download.impl.MavenDownloadManager.createDownloader(MavenDownloadManager.java:72)
at org.apache.karaf.features.internal.region.Subsystem.downloadBundles(Subsystem.java:474)
at org.apache.karaf.features.internal.region.Subsystem.downloadBundles(Subsystem.java:469)
at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:223)
at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:399)
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1069)
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:1004)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1583)
Suppressed: java.io.IOException: Error downloading mvn:net.i2p.crypto/eddsa/0.3.0
at org.apache.karaf.features.internal.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:77)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
... 3 more
Caused by: java.io.IOException: Error resolving artifact net.i2p.crypto:eddsa:jar:0.3.0: [Could not find artifact net.i2p.crypto:eddsa:jar:0.3.0 in openhab (https://openhab.jfrog.io/openhab/libs-release/)]
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.configureIOException(AetherBasedResolver.java:811)
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:559)
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:405)
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:352)
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:322)
at org.apache.karaf.features.internal.download.impl.MavenDownloadTask.download(MavenDownloadTask.java:52)
at org.apache.karaf.features.internal.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:60)
... 6 more
Before the update I already had errors when trying to install new bindings, but everything else was running well.
Any idea what went wrong ?
It obviously failed in downloading a dependency: net.i2p.crypto/eddsa/0.3.0
Not sure if it needs an upload on jfrog @florian-h05 and what binding or feature depends on it.
A clean cache will probably not help, but also not hurt.
The culprit was the ddwrt binding, I manually removed it from the addons.config and it installed everything fine.
Updating from 5.1.4 to 5.2.1 in the Docker container on my UGREEN NAS went without any issues.
Since upgrading from 5.1.4 to 5.2.1, I have found that offsets no longer work in my oh-aggregate-series charts. Series with no offset display, but series with an offset do not display. I am using infliuxdb as the persistence service and using the date picker to go back in time shows that the data is still visible. Code and screenshot are below: the previous yearâs data for each month should display in bars with a dashed border.
version: 1
widgets:
Offset_Test_Chart:
tags:
- card
- energy
props:
parameters: []
parameterGroups: []
component: f7-card
config:
title: Compressor Cycles
slots:
default:
- component: oh-chart
config:
chartType: year
slots:
grid:
- component: oh-chart-grid
config:
containLabel: true
left: 3%
right: 3%
show: true
series:
- component: oh-aggregate-series
config:
aggregationFunction: diff_last
animation: false
color: yellow
dimension1: month
item: Vitocal200_Compressor_Switching_Cycles_6830
itemStyle:
borderColor: black
borderType: dashed
borderWidth: 1
label:
show: false
name: Last Year
offsetAmount: 1
offsetUnit: year
type: bar
yAxisIndex: 0
- component: oh-aggregate-series
config:
aggregationFunction: diff_last
animation: false
color: yellow
dimension1: month
item: Vitocal200_Compressor_Switching_Cycles_6830
itemStyle:
borderColor: black
borderType: solid
borderWidth: 1
label:
show: false
name: This Year
type: bar
yAxisIndex: 0
xAxis:
- component: oh-category-axis
config:
categoryType: year
gridIndex: 0
monthFormat: short
yAxis:
- component: oh-value-axis
config:
gridIndex: 0
I have run into a bit of weirdness with some rules since the upgrade to OH 5.2.1, primarily with OpenHAB Rule Tools (TimerMgr). It actually seems to be happening with most, but not all scripts using TimerMgr
As an example, the original script that failed to run after the 5.2.1 upgrade was:
if(event.itemName != undefined)
{
//Stops script from running if triggered via OpenHAB console - Event would be undefined, and fail
var {TimerMgr} = require('openhab_rules_tools');
var timers = cache.shared.get('gate_tm', () => TimerMgr());
triggeringItem = items[event.itemName].name
if(triggeringItem.indexOf("_force") === (triggeringItem.length()-6))
{
otherItem = triggeringItem.substring(0,triggeringItem.length()-6)
}
else
{
otherItem = triggeringItem + "_force"
}
if (items[otherItem].state != items[triggeringItem].state) {
console.log("Gate Force Rule Running - Triggered by",triggeringItem,"- Changing item state for",otherItem,"to",items[triggeringItem].state);
items[otherItem].sendCommand(items[triggeringItem].state);
timers.check(otherItem+"_off_tm",0,null,false,null,otherItem+"_off_tm");
}
if((triggeringItem === "Gate_Open_force") && (items["Daylight"].state === "OFF") && (items["Gate_Open_force"].state === "ON"))
{
items["Gate_Lights_force"].sendCommandIfDifferent("ON");
items["Gate_ButtonLights_force"].sendCommandIfDifferent("ON");
console.log("Gate Force Rule - Turning on force lights");
}
if((triggeringItem === "Gate_Open_force") && (items["Gate_Open_force"].state === "OFF"))
{
items["Gate_Lights_force"].sendCommandIfDifferent("OFF");
items["Gate_ButtonLights_force"].sendCommandIfDifferent("OFF");
console.log("Gate Force Rule - Turning off force lights");
}
}
The error I started seeing was:
2026-08-05 19:37:29.250 [ERROR] [.handler.AbstractScriptModuleHandler] - Script execution of rule with UID 'gate_force_control' failed: TypeError: timers.check is not a function in <eval> at line number 21 at column number 5
I then checked, and found I was running version 2.0.3 of OpenHAB Rule tools, so did an update to 2.1.0. The same behaviour still occurred.
Out of desperation to just get the rules running, I did try Gemini, and it proposed the following change (Adding the ânewâ in the first line below, plus adding the block below that.)
var timers = cache.shared.get('gate_tm', () => new TimerMgr());
if (!timers || typeof timers.check !== 'function') {
timers = new TimerMgr();
cache.shared.put('gate_tm', timers);
}
It appears to work (but not fully tested all scenarios), so I am just treating this as a workaround, until can actually figure what changed, and address the root cause, rather than bloating out all my rules with these extra lines.
One confounding variable may be that the JDK updated from 21.0.11-3 to 21.0.12-1 at the same time as the OpenHAB update ranâŠ
Has any one else run into issues similar to the above, and any clues - Could it be something in this Release v5.21.0 · openhab/openhab-js · GitHub (Wild guess only, as nothing else in the 5.2.1 release notes seemed loosely related)??
Cheers
This seems to be a bug in openHAB release 5.2.1. I have downgraded to 5.2.0 and all good.
I have created an issue:
I have the same issue moving from 5.1.1 to 5.2.1. I had done testing before on 5.2.0 (without checking App Access). In that regard, 5.2.1 had been running for a few days properly.
Moving to 5.2.1, I discovered something interesting: 1. Locally, the Openhab APP (Android) does not work and is unable to connect. Trying on 5G, interestingly enough, it does work.
I completely uninstalled and reinstalled; local access does not work.
I switched back to 5.1.1, and the app works perfectly locally and on 5G.
I was not able to debug beyond that.
Thoughts?
Thank you
Espresso
Doesnât that get upgraded automatically? I never check which version Iâm running
Iâm running with TimerMgr everywhere, and I made no changes to TimerMgr for quite some time. I use it in my Time Based State Machine and how you originally had it written still works for me.
const timers = cache.private.get('timers', () => TimerMgr());
// Wait a minute after the last time the rule is triggered to make sure all Items are done changing (e.g.
// Astro Items) before calculating the new state.
timers.check('debounce',
'PT10S',
createTimersGenerator(timers),
true,
() => { console.debug('Flapping detected, waiting before creating timers for today'); });
If there is nothing in the cache, it should create a new TimerMgr and add it to the cache and then return the newly created one. So the if statement you added should be unnecessary.
The 5.21.0 additions of âjavaifyâ stuff might be breaking this though. When you add something to the shared cache, javaify gets called on it to convert it to a Java Object to avoid multithreaded exceptions.
I never thought someone would be trying to share a TimerMgr between rules. Are you really sharing this across rules or scripts? If so, you may need to use a basic OH Timer for that. If not, use the private cache. Thatâs what you should be using anyway and javaify doesnât get called there.
Unfortunately javaify strips out the functions so when you put a TimerMgr into the shared cache, what comes out has no functions anymore.
So for now make sure that you only use the shared cache when there the timer is shared across scripts and use the private cache when only the one script accesses the value in the cache.
For those cases you cannot convert to use the private cache, youâll have to revert to using a standard Java OH timer.
It depends. OHRT is a third part library, not a part of openHAB proper. openHABian upgrades it automatically if you installed it using openHABian. Otherwise, you must upgrade OHRT manually. My releases are few and far between and the changes between releases are usually very small. Itâs been years since the last release, not because Iâm not maintaining it, but because it works and no new features have needed to be added.
But the recent changes made to make passing values to other rules when calling them and to the shares cache makes it impossible to add a JS Object with functions in these ways. javaify gets called which strips off the functions.
Note, if you have installed OHRT to enable one of my rule templates to work, the rule templates have a check when they first run to make sure both OHRT and openhab-js are supported versions.
Hi Rich,
Thanks for the response - Yes unfortunately I am using TimerMgr across multiple scripts, requiring the shared cache. I am using private for those which only are accessed by one script.
This post explains why I originally made this architectural change, to align things around âeventsâ:
The TimerMgr function you created, and the availability of the shared cache based timers, made my rules super-simple, and they have worked wonderfully ever since 2023!!!
After I posted my earlier reply in this thread last night, I did further testing, and found that in fact those additional lines I added were junk, and whilst it got me past the error, it didnât make for a properly working TimerMgr under the shared cache on OH 5.2.1.
Which then got me thinking - could there be an option for a Rules Tools to work against the Shared Cache, so I donât need to add hundreds of lines of code back into my scriptsâŠ
So I cobbled the following together last night, again with significant help from Gemini. It actually seemed to work ok, across a wide variety of scenarios, and edge-cases (Well those that I could think of last night anyway). I will be in a position to come back and have a deeper look at this next week, but in the meantime would be interested in your general thoughts on this approach, as I am somewhat out of my swimlane here !!
They are architecturally quite diverse, but they appear to be functionally equivalent. I know there is some âsmoke and mirrorsâ in there however (e.g. ânameâ you pass when creating a timer is really just a prefix, not the actual instance). Also the âkeyâ (6th Parameter) is accepted, but ignored when using the timers.check()
/etc/openhab/automation/js/node_modules/test_rules_tools/index.js
module.exports = {
get sharedTimerMgr() {
console.warn('require SharedTimerMgr instead of sharedTimerMgr and use new SharedTimerMgr().');
return require('./SharedTimerMgr.js');
},
get SharedTimerMgr() {
return require('./SharedTimerMgr.js').SharedTimerMgr;
}
}
/etc/openhab/automation/js/node_modules/test_rules_tools/package.json
{
"name": "test_rules_tools",
"version": "1.0.0",
"description": "Custom shared timer utility for openHAB 5.2.1+ JS Scripting, based on the Original openhab_rules_tools TimerMgr by Rich Koshak",
"main": "index.js",
"author": "Glen McGeachen+Gemini",
"license": "EPL-2.0"
}
/etc/openhab/automation/js/node_modules/test_rules_tools/SharedTimerMgr.js
/**
* SharedTimerMgr - Thread-safe multi-rule timer manager for openHAB 5.2+ (GraalVM JS)
* Uses native Java timers stored in cache.shared with full backward-compatibility support.
*/
class SharedTimerMgr {
/**
* @param {string} cacheNamespace - Namespace key for cache.shared (e.g. 'gate_tm')
*/
constructor(cacheNamespace = 'default_tm') {
this.namespace = cacheNamespace;
}
_getKey(timerName) {
return `${this.namespace}_${timerName}`;
}
/**
* Check, create, or reschedule a shared timer.
*
* @param {string} timerName - Unique identifier for the timer within this namespace
* @param {number|string|time.ZonedDateTime|null} duration - Seconds (number), ISO duration ('PT10S'), or ZonedDateTime / string representation. If 0/null, cancels timer.
* @param {function} callback - Callback executed on expiration
* @param {boolean} [reschedule=true] - Whether to reschedule if timer is already active
* @param {function} [onReschedule=null] - Optional callback executed if rescheduled
*/
check(timerName, duration, callback, reschedule = true, onReschedule = null) {
// 1. Always enforce the internal namespaced key (ignore any 6th legacy parameter)
const key = this._getKey(timerName);
// 2. Cancellation: 0, '0', null, or undefined
if (duration === 0 || duration === '0' || duration === null || duration === undefined) {
return this.cancel(timerName);
}
let targetTime;
// 3. Convert duration or timestamp format into ZonedDateTime safely
if (typeof duration === 'number') {
targetTime = time.ZonedDateTime.now().plusSeconds(duration);
} else if (typeof duration === 'string') {
if (!isNaN(duration)) {
targetTime = time.ZonedDateTime.now().plusSeconds(Number(duration));
} else if (duration.startsWith('P') || duration.startsWith('p')) {
// Parse ISO-8601 Duration string (e.g. "PT10S", "PT15M")
targetTime = time.ZonedDateTime.now().plus(time.Duration.parse(duration));
} else {
// Parse ISO ZonedDateTime / LocalDateTime string directly (e.g. schedtime.toString())
targetTime = time.ZonedDateTime.parse(duration);
}
} else {
targetTime = duration;
}
// 4. Safely convert to Java ZonedDateTime across GraalVM polyglot boundary
let javaTargetTime = targetTime;
if (targetTime && typeof targetTime.toInstant === 'function') {
javaTargetTime = java.time.ZonedDateTime.parse(targetTime.toString());
}
let existingTimer = cache.shared.get(key);
if (existingTimer !== null && existingTimer !== undefined && !existingTimer.hasTerminated()) {
if (reschedule) {
existingTimer.reschedule(javaTargetTime);
if (typeof onReschedule === 'function') onReschedule();
}
return;
}
// 5. Create native Java timer stored in openHAB cache.shared under the namespaced key
let newTimer = actions.ScriptExecution.createTimer(javaTargetTime, () => {
try {
if (typeof callback === 'function') callback();
} finally {
cache.shared.remove(key);
}
});
cache.shared.put(key, newTimer);
}
/**
* Cancel an active timer.
* @param {string} timerName
* @returns {boolean} True if an active timer was found and canceled
*/
cancel(timerName) {
const key = this._getKey(timerName);
let existingTimer = cache.shared.get(key);
if (existingTimer !== null && existingTimer !== undefined && !existingTimer.hasTerminated()) {
existingTimer.cancel();
cache.shared.remove(key);
return true;
}
return false;
}
/**
* Check if a timer is currently active.
* @param {string} timerName
* @returns {boolean}
*/
hasTimer(timerName) {
const key = this._getKey(timerName);
let existingTimer = cache.shared.get(key);
return existingTimer !== null && existingTimer !== undefined && !existingTimer.hasTerminated();
}
}
module.exports = { SharedTimerMgr };
And a sample of a pair of test scripts I have used to test the check, cancel, and has timer across scripts, saves of the scripts while running, including using the legacy cancel approach from âcheckâ:
//testtimerule1
var { SharedTimerMgr } = require('test_rules_tools');
var timers = new SharedTimerMgr('test_gate_tm');
console.info("=== [testtimerule1 Execution] ===");
// 1. Channel 1171: 10-second timer using ISO duration string ('PT10S')
var item1 = "CBUSTestChan1171_LightChannel";
var timer1Name = item1 + "_off_tm";
items.getItem(item1).sendCommandIfDifferent("ON");
timers.check(
timer1Name,
"PT10S", // ISO-8601 duration string
() => {
console.info(">>> [CALLBACK 1] 10s Timer Expired! Turning off " + item1);
items.getItem(item1).sendCommandIfDifferent("OFF");
},
true,
() => console.info(">>> [RESCHEDULE 1] " + timer1Name + " rescheduled for 10s!"),
timer1Name // 6th parameter ignored
);
// 2. Channel 0170: 15-second timer using ZonedDateTime object
var item2 = "CBUSTestChan0170_LightChannel";
var timer2Name = item2 + "_off_tm";
items.getItem(item2).sendCommandIfDifferent("ON");
timers.check(
timer2Name,
time.ZonedDateTime.now().plusSeconds(15), // ZonedDateTime target object
() => {
console.info(">>> [CALLBACK 2] 15s Timer Expired! Turning off " + item2);
items.getItem(item2).sendCommandIfDifferent("OFF");
},
true,
() => console.info(">>> [RESCHEDULE 2] " + timer2Name + " rescheduled!"),
timer2Name // 6th parameter ignored
);
console.info("Status " + timer2Name + " (Initial ZDT):", timers.hasTimer(timer2Name) ? "ACTIVE" : "INACTIVE");
// 3. Cancel Timer 2 using legacy method
console.info("Cancelling " + timer2Name + " using legacy check(0)...");
timers.check(timer2Name, 0, null, false, null, timer2Name);
console.info("Status " + timer2Name + " (Post-Cancel):", timers.hasTimer(timer2Name) ? "ACTIVE" : "CANCELED");
// 4. Re-schedule Timer 2 using stringified ZonedDateTime ISO string
console.info("Scheduling " + timer2Name + " again using ZDT string format...");
var schedTime = time.ZonedDateTime.now().plusSeconds(20);
timers.check(
timer2Name,
schedTime.toString(), // Stringified ZonedDateTime ISO timestamp
() => {
console.info(">>> [CALLBACK 2 - REARMED] 20s String Timer Expired! Turning off " + item2);
items.getItem(item2).sendCommandIfDifferent("OFF");
},
true,
() => console.info(">>> [RESCHEDULE 2] " + timer2Name + " rescheduled!"),
timer2Name // 6th parameter ignored
);
console.info("Status " + timer1Name + " (10s PT10S):", timers.hasTimer(timer1Name) ? "ACTIVE" : "INACTIVE");
console.info("Status " + timer2Name + " (20s ZDT String):", timers.hasTimer(timer2Name) ? "ACTIVE" : "INACTIVE");
var { SharedTimerMgr } = require('test_rules_tools');
var timers = new SharedTimerMgr('test_gate_tm');
var timer1Name = "CBUSTestChan1171_LightChannel_off_tm";
var timer2Name = "CBUSTestChan0170_LightChannel_off_tm";
console.info("=== [testtimerrule2 Execution] ===");
if (timers.hasTimer(timer1Name) || timers.hasTimer(timer2Name)) {
console.info("Found active timers from Rule 1. Cancelling both...");
// Cancel Timer 1 using legacy .check(name, 0, ...)
timers.check(timer1Name, 0, null, false, null, timer1Name);
// Cancel Timer 2 using direct .cancel(name)
timers.cancel(timer2Name);
console.info("Post-cancel status " + timer1Name + ":", timers.hasTimer(timer1Name) ? "ACTIVE (FAIL)" : "CANCELED (SUCCESS)");
console.info("Post-cancel status " + timer2Name + ":", timers.hasTimer(timer2Name) ? "ACTIVE (FAIL)" : "CANCELED (SUCCESS)");
} else {
console.info("No active timers found. Triggering testtimerule1 now...");
rules.runRule("testtimerule1");
}
I have been through a few versions of these last night, and managed to get clean runs working. (My biggest issue was an old expire timer I had left on an test item, that I forgot about !! - Drove me crazy for a while).
Cheers
Hi!
I used to get the triggering member in a (JS) rule triggered by a GroupStateUpdatedEvent using
var triggeringItemName = event.raw.event.getMemberName();
After updating to 5.2.1 (not sure if it also happened in 5.2.0) I noticed these errors in the logs:
TypeError: undefined has no such function "getMemberName"
Apparently event.raw.event is undefined so I printed the raw event:
{6.lastStateUpdate=2026-08-05T22:06:17.548653797+02:00[Europe/Amsterdam], ruleUID=8b438a4d8c, 6.state=OFF, 6.event=Group 'Residents_present' updated to OFF through Tom_present}
And I noticed that lastStateUpdate, state and event have â6.â in front of them, so I changed my rule to
var triggeringItemName = event.raw['6.event'].getMemberName()
And it started working again.
Is this expected behavior? I couldnât find anything about it


