chickey

Untitled

Jun 1st, 2019
2,954
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. esphome:
  2. name: office_temp_sensor
  3. platform: ESP8266
  4. board: esp01_1m
  5.  
  6. wifi:
  7. ssid: "*****"
  8. password: "*****************"
  9.  
  10. # Enable logging
  11. logger:
  12.  
  13. # Enable Home Assistant API
  14. api:
  15.  
  16. ota:
  17.  
  18. # Example configuration entry
  19. dallas:
  20. - pin: GPIO02
  21. update_interval: 5s
  22.  
  23. # Individual sensors
  24. sensor:
  25. - platform: dallas
  26. address: 0xAD0217B0683FFF28
  27. name: "Office Room Temperature"
  28. filters:
  29. #- offset: -5.0
  30. - calibrate_linear:
  31. # Map 0.0 (from sensor) to 0.0 (true value)
  32. - 0.0 -> 0.0
  33. - 22.8 -> 20.7
  34. - platform: adc
  35. pin: VCC
  36. name: "VCC Voltage"
  37.  
  38. #Sleep between readings
  39. deep_sleep:
  40. run_duration: 6s
  41. sleep_duration: 2min
Advertisement
Add Comment
Please, Sign In to add comment