jdk.nashorn.internal.runtime.Undefined error with ItemStateUpdateTrigger & ItemStateChangeTrigger

David, if you are using my JS rewrite you need use the Jython style rule syntax. As I stated in your other thread, there is an example in an expandable section at the bottom of my first post in this thread.

I don’t remember if I put the old style JS syntax back in (your mild success would suggest I did) but I never tested it in OH3 so there may be changes that are needed which are causing you these problems.