Help using Input number in Automation

Hey there!
I have a Govee Hygrometer setup and successfully connected to HA. I also have 2 automations running, one for turning an air humidifier on below a certain humidity % and another one to turn it off above a certain humidity %.
I would like to use an input numbers for the above and below percentage value, so I can easily change them in my dashboard.
I tried using a Device trigger and a Numeric state trigger, both of them not working.
Here is the code I have been trying to use:

below: "{{ states('input_number.turn_on_below') }}"

Using a normal float value works without any issues, but if I try using the input number, I always get this error:

Message malformed: expected float for dictionary value @ data[‘below’]

Am I doing something wrong? Any help is appreciated. Thanks!

No need for a template, you can use it like this (in a numeric state trigger, not a device trigger):

below: input_number.turn_on_below

See the 4th example here: Automation Trigger - Home Assistant

1 Like

This worked. Thank you!