[SOLVED] A way to use JS script in rule


is there a way to use JS script (for exmaple like this https://community.openhab.org/t/easiest-way-to-convert-seconds-to-minutes/47057/19?u=thisisio) in the rule?


All transformations can be used in rules.

See: https://www.openhab.org/docs/configuration/transformations.html

1 Like

It’s also worth mentioning that you can write rules in JavaScript using scripted automation. See

1 Like