Hi,
maybe someone can help me with with the following migration issue. I have an text item that is changed to the uuid of a scene that should be called and a rule that should trigger the scene with the new item state
configuration: {}
triggers:
- id: "1"
configuration:
itemName: System_startRule
type: core.ItemCommandTrigger
conditions: []
actions:
- inputs: {}
id: "2"
label: löse die Szene aus
configuration:
type: application/javascript
script: rules.runRule(event.itemCommand.toString(), {});
type: script.ScriptAction
(this is f.e. also discussed here How to run scene from rule - #2 by jimtng)
This works fine on 5.1.4 but not on 5.2.x; the i get an error Failed to execute rule 'uuid' and wasn’t able to get more details.
I had seen a couple of changes for JS and Threads in the changelog, but it seems there is no migration guide for rules.RunRule(uuid, params) so i would expect this to work as before.
Any ideas?
Best regards