logo elektroda
logo elektroda
X
logo elektroda

Temperature reading from DS18B20 in ESPHome only when the unit is switched on

Honsu 1251 1
ADVERTISEMENT
This content has been translated flag-pl » flag-en View the original version here
  • #1 21121071
    Honsu
    Level 3  
    Posts: 76
    Rate: 5
    How to realize in esphome the reading of temperature from ds18b20 only at the time of switching on a particular device. Also, the read data would only be sent to the HA when the device is switched on and at a time interval of e.g. 5 sec.
  • ADVERTISEMENT
  • #2 21121152
    xury
    Automation specialist
    Posts: 7078
    Help: 878
    Rate: 1495
    And isn't it better to read every given interval and ignore the readings that don't interest you?
ADVERTISEMENT