Now I have a new thing in tuyalocal, and I have the entity as number.siren_humidity_15
I tried replacing the state code, but it doesn’t seem to work. I can’t test in the dev Template editor, where can I test it to work it out rather than keep rebooting to test?
Supplying a default value for your float filter is also recommended. If your entity contains something that can not be converted to a floating point number the default will be used. e.g. if the state is unknown:
|float gives an error |float(0) returns zero
If you want to understand more, have a read of this and practice in the template editor: