Shelly Plug S Rule compare

OK, it’s a lot more useful to post actual code using How to use code fences than a screen shot.

What’s the definition of BroKellerSteckdosenleiste_Meter_currentWatts? Is it Number:Energy as rossko57 asked about? If so, the PaperUI generated Rules do not support Units of Measurement Items directly. You can use “a given script evaluates to true” with something like:

(items["BroKellerStechdosenleiste_Meter_currentWatts"].floatValue() > 5.0)

or even better since it respects the units

(items["BroKellerStechdosenleiste_Meter_currentWatts"] > new QuantityType(u"5.0  W"))