I’m trying to implement first in basic version the Generic Thermostat component but I have an issue with it about Float variable for target_temp setting:
Very confused here how to use the float command (I have checked multiple threads here but still not sure of correct syntax !!) or should I change the variable genre created by the input_number slider ??
Thanks for your message but very confused here about link between my cast problem on variables and templating ?? My goal here is to be able to setup in frontend a slider for heater temperature !! I created an input slider and wants to pass value of that input slider at the generic_thermostat automation
I’m saying I don’t think you can do {{ math stuff }} on a platform: generic_thermostat. I think you need to use platform: template with the value_template to get the value.
“I think” because I’ve done this maybe once. These yaml files aren’t exactly code, it’s more like configuration data with some code-like attributes available in some cases. That’s how I think of it.
oki so I tried to use sensor template but nothing really better Is it me or it’s really missing somewhere a basic cookbook about how all these parts work together ? as it’s very confusing which way to go even for basic automations like heating system
So I created an input number on frontend to be able to adjust temperature I want in configuration.yaml
But HA always complain about Float type for generic_thermostat so completely lost and disappointed here by all the hassle it is just to get basic features to work
I noticed also that my sensor code to convert to float is not working, the “float” variable never gets any value whatever I move the input number slider in front office…
You actually can’t use a template in the platform: generic_thermostat initial config but you can get the behavior you want as part of automations. What you want to do is adjust the target temperature whenever the input_number is moved. So you want to just set the target_temp initially to some default value (e.g. 22) and then use an automation like:
hi, I have a similar question and another one, I am trying to make the light brightness adjustment through the query. now value rezulirovki I have under climate slider is changing and in status I read roughly so 100.0 and forth, I think that I correctly made okruzlenie and on izmenniyu, as in example higher. But did I do the right thing how to concatenate the query and the value to change the brightness of " input_number.hall_main_pwm_temp". You can tell me how best to do it. Or maybe there’s another way?
switch: