Does condition: numeric_state need to be integer?

Hi,

I have a pond heater that heats when automations set a light entity toon and doesn’t heat when the entity is set off. So I do a normal condition: numeric_state with a “below:” argument of 51.2

So my questions are:

  1. does that argument mean 51 degrees C or degrees F (as I want)?

  2. as the temperature difference between 51 and 52 is a bit of a lot for a water heater, can I use “51.2”? The sensor resolves the temperature in real numbers…i.e. the current temp is showing as 51.1 Degrees F.

  3. I suppose a third question would be as my 52.2 is used in both the light-on and light-off automations, is there a way to make that static 52.2 be a variable in my config.yaml somewhere that is a constant I can use in both automations, then change it in the yaml file without changing the automation…or maybe even a fake entity I could enter, like a thermostat (except there’s no thermostat just some construct on a Lovelace page) or a text-entry field?

Thanks for your help, as always!

Regards,

Ambi

Whatever unit the sensor uses. Look in developer tools / states.

Yes it accepts floating point numbers.

Store that value in an input_number. You can then change this easily from the frontend and use it in your automations.

1 Like

Great, thanks!