Rules with Friends of Hue

A SwitchItem’s state can only be ON, OFF, NULL or UNDEF. It can’t be 16 or 20.

It sounds as though your Item is not properly defined and should be a NumberItem.

No you don’t :wink:. The UI rule editor is creating rules through the REST API, which makes JSON files. You can find these in your jsondb files and they are very difficult to write by hand. If you want to use the new rule engine and write script files, you’ll be much better off setting up Jython and the helper libraries using…