Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- esphome:
- name: esp32-test
- platform: ESP32
- board: esp32dev
- # Enable logging
- logger:
- # Enable Home Assistant API
- api:
- ota:
- password: ""
- wifi:
- ssid: ""
- password: ""
- # Enable fallback hotspot (captive portal) in case wifi connection fails
- ap:
- ssid: "Esp32-Test Fallback Hotspot"
- password: ""
- captive_portal:
- output:
- - platform: ledc
- pin: GPIO25
- frequency: 25000 Hz
- id: gpio_25
- # Example usage in a light
- light:
- - platform: monochromatic
- output: gpio_25
- name: "testled"
- # output:
- # - platform: ledc
- # pin: GPIO19
- # frequency: 25000 Hz
- # id: fan_pwm
- fan:
- - platform: speed
- output: gpio_25
- name: "Fan"
- sensor:
- - platform: pulse_counter
- pin:
- number: GPIO27
- mode: INPUT_PULLUP
- unit_of_measurement: 'RPM'
- id: fan_speed
- name: Speed
- update_interval: 5s
- filters:
- - multiply: 0.5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement