Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- esphome:
- name: cabby
- friendly_name: cabby
- esp32:
- board: esp32dev
- framework:
- type: arduino
- # Enable logging
- logger:
- # Enable Home Assistant API
- api:
- encryption:
- key: "uEFNEgFU1O8OGbnZ9dKlY="
- ota:
- - platform: esphome
- password: "767905572006f89"
- wifi:
- ssid: !secret wifi_ssid
- password: !secret wifi_password
- # Enable fallback hotspot (captive portal) in case wifi connection fails
- ap:
- ssid: "Cabby Fallback Hotspot"
- password: "8j1hwlY"
- output:
- - platform: ledc
- pin: GPIO23
- frequency: 25000 Hz
- id: fan_pwm
- min_power: 0%
- max_power: 80%
- fan:
- - platform: speed
- output: fan_pwm
- name: "Cabby Fan"
- button:
- - platform: restart
- name: "Cabby Restart"
- - platform: shutdown
- name: "Cabby Shutdown"
- text_sensor:
- - platform: version
- name: "Cabby ESPHome Version"
- - platform: wifi_info
- ip_address:
- name: Cabby ESP IP Address
- ssid:
- name: Cabby ESP Connected SSID
- bssid:
- name: Cabby ESP Connected BSSID
- mac_address:
- name: Cabby ESP Mac Wifi Address
- scan_results:
- name: Cabby ESP Latest Scan Results
- dns_address:
- name: Cabby ESP DNS Address
- esp32_ble_tracker:
- scan_parameters:
- interval: 1100ms
- window: 1100ms
- active: true
- bluetooth_proxy:
- active: true
- sensor:
- - platform: pulse_counter
- pin:
- number: GPIO21
- mode: INPUT_PULLUP
- unit_of_measurement: 'RPM'
- id: fan_speed1
- name: Cabby Fan Speed 1
- update_interval: 1s
- filters:
- - multiply: 1
- - platform: pulse_counter
- pin:
- number: GPIO22
- mode: INPUT_PULLUP
- unit_of_measurement: 'RPM'
- id: fan_speed2
- name: Cabby Fan Speed 2
- update_interval: 1s
- filters:
- - multiply: 1
- - platform: dht
- pin: GPIO18
- temperature:
- name: "Cabby fan abinet Temperature"
- id: temp
- humidity:
- name: "Cabby fan Cabinet Humidity"
- id: humid
- update_interval: 10s
- - platform: uptime
- name: Uptime Sensor
- light:
- - platform: neopixelbus
- type: GRB
- variant: WS2811
- pin: GPIO32
- num_leds: 105
- name: "Cabby Cabinet LEDs"
- effects:
- - addressable_scan:
- - addressable_scan:
- name: Scan Effect With Custom Values
- move_interval: 100ms
- scan_width: 1
- - pulse:
- - pulse:
- name: "Fast Pulse"
- transition_length: 0.5s
- update_interval: 0.5s
- min_brightness: 0%
- max_brightness: 100%
- - pulse:
- name: "Slow Pulse"
- # transition_length: 1s # defaults to 1s
- update_interval: 2s
- - pulse:
- name: "Asymmetrical Pulse"
- transition_length:
- on_length: 1s
- off_length: 500ms
- update_interval: 1.5s
- font:
- - file: "Roboto-Bold.ttf"
- id: my_font
- size: 14
- image:
- - file: "logs2.png"
- id: alert
- use_transparency: true
- resize: 38x38
- - file: mdi:dots-vertical
- id: line
- resize: 40x40
- - file: mdi:fan
- id: fans
- resize: 24x24
- - file: mdi:led-on
- id: leds
- resize: 25x25
- i2c:
- sda: GPIO26
- scl: GPIO25
- display:
- - platform: ssd1306_i2c
- model: "SSD1306 128x32"
- address: 0x3C
- lambda: |-
- // Draw the image my_image at position [x=0,y=0]
- it.image(0, 1, id(alert));
- it.printf(45, 5, id(my_font), "%.0f°C", id(temp).state);
- it.printf(45, 18, id(my_font), "%.0f%%", id(humid).state);
- it.image(80, 9, id(fans));
- it.image(110, 8, id(leds));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement