openhab / openhab-js

openHAB JavaScript Library for JavaScript Scripting Automation
https://www.openhab.org/addons/automation/jsscripting/
Eclipse Public License 2.0
38 stars 31 forks source link

[rules] Catch persistence exceptions in `SwitchableJSRule` creation #214

Closed florian-h05 closed 1 year ago

florian-h05 commented 1 year ago

When using SwitchableJSRule, script evaluation sometimes failed because the persistence service (in this case InfluxDB) has thrown an exception. This exception stopped script evaluation and therefore the rules below this SwitchableJSRule were not created.

Signed-off-by: Florian Hotze florianh_dev@icloud.com