Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2022
748
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.93 KB | None | 0 0
  1. esphome:
  2.   name: esp32-test
  3.   platform: ESP32
  4.   board: esp32dev
  5.  
  6. # Enable logging
  7. logger:
  8. # Enable Home Assistant API
  9. api:
  10. ota:
  11.   password: ""
  12.  
  13. wifi:
  14.   ssid: ""
  15.   password: ""
  16.  
  17.   # Enable fallback hotspot (captive portal) in case wifi connection fails
  18.   ap:
  19.     ssid: "Esp32-Test Fallback Hotspot"
  20.     password: ""
  21.  
  22. captive_portal:
  23. output:
  24.   - platform: ledc
  25.     pin: GPIO25
  26.     frequency: 25000 Hz
  27.     id: gpio_25
  28.  
  29. # Example usage in a light
  30. light:
  31.   - platform: monochromatic
  32.     output: gpio_25
  33.     name: "testled"
  34.  
  35. # output:
  36. #   - platform: ledc
  37. #     pin: GPIO19
  38. #     frequency: 25000 Hz
  39. #     id: fan_pwm
  40.  
  41. fan:
  42.   - platform: speed
  43.     output: gpio_25
  44.     name: "Fan"
  45.    
  46.  
  47. sensor:
  48.   - platform: pulse_counter
  49.     pin:
  50.       number: GPIO27
  51.       mode: INPUT_PULLUP
  52.     unit_of_measurement: 'RPM'
  53.     id: fan_speed
  54.     name: Speed
  55.     update_interval: 5s
  56.     filters:
  57.       - multiply: 0.5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement