Hi,
I.m adapting a Tile for my washing machine which I have connected to power via a wall plug with energy metering I want to display a Text Label ( “Active”) when the Power is more than 1 Watt.
I tried to do this with a datatrigger but cannot get it to work.
I don’t know how to put this in fhe “value field”
Screenshot:
You will need to use a Regular Expression (regex). I found an expression on Stack Overflow that should work. ^(?:[2-9]|\d\d\d*)$
The other thing you could do is just reverse you logic. Set your defaults to show the Label & add a DataTrigger to hide the Label. That’s probably what I would do.