XavierBerger / Solar-Router-for-ESPHome

Solar Router for ESPHome
https://xavierberger.github.io/Solar-Router-for-ESPHome/
GNU General Public License v3.0
11 stars 2 forks source link

Using the DS18B20 temperature sensor #19

Open dloriot opened 4 months ago

dloriot commented 4 months ago

I would like to add the DS18B20 temperature sensor to cut off the relay when a certain temperature is reached.

arduino framework :

one_wire:
  - platform: gpio
    pin: GPIO13
    id: dallas_d7

sensor:
  - platform: dallas_temp
    address: 0x0000000000000000
    one_wire_id: dallas_d7
    name: temperature
    update_interval: 30s

esp-idf framework :

external_components:
  - source: github://nrandell/dallasng

dallasng:
  - pin: GPIO13
    update_interval: 10s

sensor:
  - platform: dallasng
    name: Temperature
    id: temperature_sensor
    index: 0
    resolution: 12
    filters:
      - filter_out: NAN
image image