#I am starting to pull my hair out on

1 messages · Page 1 of 1 (latest)

hallow orchid
#

fan_speed: !lambda "return (id(my_temperature).state - 20.0) * 0.05;"
This should return 0.0 when my_temp is 20°, 0.5 when temp is 30° and 1.0 when it's 40°. Also, negative values if it's below 20° and values >1 when above 40°, but I think ESPHome will ignore those anyway

#

should probably ask in the ESPHome discord, thats what it's there for :D

novel pagoda
#

Oh wow, that is very clean. Thanks!
I did try to ask over there but no one is sure, the general response was to try climate.pid but that doesn't work the same way. The only issue now is attempting to get that to actually work. lol ESPHome is complaining about lambda not working with fan.speed.

hallow orchid
#

do you mean this?
speed (Optional, int, templatable): Set the speed level of the fan. Can be a number between 1 and the maximum speed level of the fan.

#
then:
  - fan.turn_on:
      id: fan_1
      speed: !lambda "return (id(my_temperature).state - 20.0) * 0.05;"
novel pagoda
#

Yeah, I think that needs to be updated because ESPHome complains speed has been depreciated

#

I am wondering if I should just make a switch component, "Automatic Fan Control", with that in it that then sets the fan speed separately.

#

I think I've seen some examples of that and I should be able to modify that lambda.

#

Right, ESPHome had an update issue awhile ago. Updating the add-on and seeing if it'll work.