Hi I recently started using HA. Now, I want to do some “custom” stuff. For that, I need to use the YAML. I don’t completely understand it, but here’s what I’ve done so far.
My problem remains in the trigger part. I get the following error :
Message malformed: expected float for dictionary value @ data[‘above’]
I want to use an input_number (from helpers) as the condition. If i replace all
It’s that way because the docs say so. Every field has different requirements for what it can and cannot accept.
In the case of the numeric state trigger, the above: or below: fields only accept numbers or entities while the value_template: field only accepts templates.
Unrelated, but you may want to choose a default for the float filter so that you do not get errors when the esp32 sensor goes to unavailable or unknown. For example, you could use float(100) so that the trigger doesn’t fire in that scenario.