Thanks. The syntax at least works. Problem is it doesn’t ignore where type != power it puts in zero (or blank if else clause is omitted). Is there a way to say “no change” as in else keep last value?
personally, i’d make separate topics for these devices instead of having a single topic for all devices. But if this is what you want then just get the state of itself.