Migrating Rules with item.state from OH2 to OH3

Sure, work with units instead of against them.

if ( (lux.state < 1000 | lux) && (t_aussen.state > 10 | °C) ...

Some handling tips -

All this was introduced in OH2, but more binding channels come with units in OH3

1 Like