hello, i have ESP32 and esphome and i would like to do different pwm on output according to difference between temperature read and set. I am new with esphome and i dont know how to do that. I know my algorithm (it work me in nodered) but i really clogged with esphome.
my algorithm looks like
if tempread-1=tempset then set pwm 10%
else
if tempread-2=tempset then set pwm 20%
else
if tempread-3=tempset then set pwm 30%
else
…
i try many different way but stil is not what i want. i do not know what syntax for that should be or maybe you know easiest way to do that. So i need help.
You’ll need to provide some more information. For example are those tempread-1…tempread-3 three different temperature sensors? Or do you want to map the temperature of a single sensor to a PWM output? Might also be useful to post your yaml if you already setup the basics.
Yes, this is minus sign,
“tempread” this is temperature from sensor , “tempset” this is set temperature by user which means this is temperature what i want.
I dont have setup because of every time i have errors because i am not sure how to do that.