Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

I want to blink an LED at rising Tempeature and constant on when °C reached

$
0
0

@TiBo wrote:

Hello,
i need a little help programming an ESP.

My ESP has following setup:

  • at GPIO2 an LED
  • at GPIO4 an Dallas ds18b20
  • at GPIO13 an Relay
    (it is an Sonoff TH16 V2.1 2019 with PIN EXT-LOG aka GPIO2 )
  1. I want that the LED is slowly blinking when the temperature is rising. (~20° - 86°)
  2. above 86°C the LED the LED is constant on
  3. if the temperature is falling below 85° the LED is fast blinking
  4. below 60° the LED turns off.

is this possible with ESPhome configuration and lambda programming?
at the moment i use as on_value_range with some steps but the rising/falling is much smarter :slight_smile: . also it should be possible to track times.

optional i want to track the Time how long it takes to reach the 86°C Temperature. Starting point to measure the Time is switch the relay on

(why 86° and not 85°? If the Dallas chip has problems with the wires the sensor gives 85° back)

I’m looking forward to the solution.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles