Automation Input_number

Hi,
I need some help, I’m a beginner, my knowledge is limited.
I want to create an automation when temperature read from one DS1820 connected to one esp32 reach limit set in one input_number to fire a trigger
I tried some exampled from google but still I receive error message
“Message malformed: expected float for dictionary value @ data[‘below’]”

This is Yaml of my automation
type: temperature
device_id: 678fcf09cabccc220f42db3c6d37cf7d
entity_id: 0f516bb1b94ffbd3f3409a5dbea7116f
domain: sensor
trigger: device
below: input_number.temp_limit

Thanks in advance for any hint

If you want to use an entity in the below option then you need to use a numeric state trigger, not a device trigger.

To me this feels more like a generic thermostat thing than an automation.
Can you post what else is going on?

Sorry, for poor details.
What I want to achieve, I have on DS1820 sensor connected to ESP32.
I created one helper, input_number which I want to use for set a limit for temp.
Now, I want to create an automation, when temperature read from DS1820 will reach limit set in input_number to trigger one Sonof Minir4m.

Yeah… that is a generic thermostat.
It’s the same thing as you describe but with a fancy interface and better backend.

Go to devices and services → helpers → create new helper → generic thermostat

Thx Hellis81,
But is not possible to read value set in one input_number ? asking for my scenario

type: temperature
device_id: 678fcf09cabccc220f42db3c6d37cf7d
entity_id: 0f516bb1b94ffbd3f3409a5dbea7116f
domain: sensor
trigger: device
below: 40

For Below value, instead of fix value 40, to be taken from helper input_number defined.

Thanks in advance

It is possible but as Tom already answered not with device triggers.
Your automation will break at times, I still suggest a generic thermostat.

Sorry, I did not succeed to reach desired scenario using generic thermostat.
I want expose more detailed what I need.
I have one temp sensor DS1820 connected to one ESP32
I need an automation in this way.
When Temp is below 40 Celsius to trigger one of my Sonoff MINIR4M, and when temp reach the 50 Celsius to turn off the MINIR4M.
I tried to create one helper for minim temp limit, of 40, because I need to be manual adjustable base on some condition.
For this reason I tried with helper to set for trigger the value

When I try to replace below value 40 with input_number, I receive error for float requirement

With thermostat I did not succeed to accomplish this scenario. I checked on Google advice from different solutions, but I think something I don’t understand, or it’s not work.

Thanks in advance

Maybe someone have better idea

As Tom posted earlier, Device triggers will not let you do that. Use a Numeric State trigger.

In the Automation editor you will find it under the “Entity” section:

Thanks a lot, also Tom, Hellis81 and entire team.
Now I know :))), it works perfectly !