Advertisement
Milfeldt

ESP32 C3 with Dallas DS18B20

Dec 18th, 2024
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.57 KB | None | 0 0
  1. esphome:
  2.   name: esp32-c3-zero
  3.   friendly_name: ESP32 C3 Zero
  4.  
  5. esp32:
  6.   board: esp32-c3-devkitm-1
  7.   framework:
  8.     type: esp-idf
  9.  
  10. #TEST of Dallasng because one_wire kept failing
  11. external_components:
  12.   - source: github://nrandell/dallasng    
  13.  
  14.  
  15. logger:
  16.  
  17. api:
  18.   encryption:
  19.     key: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  20.  
  21. ota:
  22.   - platform: esphome
  23.     password: "xxxxxxxxxxxxxxxxxxxx"
  24.  
  25. wifi:
  26.   ssid: !secret wifi_ssid
  27.   password: !secret wifi_password
  28.   manual_ip:
  29.     static_ip: xxx.xxx.xxx.xxx
  30.     gateway: xxx.xxx.xxx.xxx
  31.     subnet: xxx.xxx.xxx.xxx
  32.     dns1: xxx.xxx.xxx.xxx #dns1 not necessary
  33.  
  34.   # Enable fallback hotspot (captive portal) in case wifi connection fails
  35.   ap:
  36.     ssid: "Esp32-C3-Zero Fallback Hotspot"
  37.     password: "xxxxxxxxxxxxx"
  38.  
  39. captive_portal:
  40.  
  41. dallasng:
  42.   - pin: 0
  43.     update_interval: 3s
  44.  
  45. #one_wire: #replaced by dallasng
  46.   #- platform: gpio
  47.     #pin: 0  
  48.  
  49. sensor:
  50.   - platform: dallasng #dallas_temp #replaced by dallasng
  51.     address: 0x150300a2797eab28
  52.     name: Frem
  53.     resolution: 12
  54.     #update_interval: 1s #updateinterval moved to dallasng
  55.     accuracy_decimals: 1
  56.  
  57.   - platform: dallasng #dallas_temp #replaced by dallasng
  58.     address: 0xa90300a2792a2f28
  59.     name: Vandvarmer ud
  60.     resolution: 12
  61.     #update_interval: 1s #updateinterval moved to dallasng
  62.     accuracy_decimals: 1
  63.  
  64.   - platform: dallasng #dallas_temp #replaced by dallasng
  65.     address: 0x0eb110d71964ff28
  66.     name: Retur
  67.     resolution: 12
  68.     #update_interval: 1s #updateinterval moved to dallasng
  69.     accuracy_decimals: 1    
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement