Creating Solar rules for energy consumption/production

According to this log, your item has a quantity. That means you have to take the unit into account when doing the numerical comparison.

if (Grid_Power.state < 0|W) {

For a more in-depth explanation see here (even though you’re using power and not temp):

1 Like