Advertisement
pqpxoxa

Cabby

Dec 28th, 2024 (edited)
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.67 KB | None | 0 0
  1. esphome:
  2. name: cabby
  3. friendly_name: cabby
  4.  
  5. esp32:
  6. board: esp32dev
  7. framework:
  8. type: arduino
  9.  
  10. # Enable logging
  11. logger:
  12.  
  13. # Enable Home Assistant API
  14. api:
  15. encryption:
  16. key: "uEFNEgFU1O8OGbnZ9dKlY="
  17.  
  18. ota:
  19. - platform: esphome
  20. password: "767905572006f89"
  21.  
  22. wifi:
  23. ssid: !secret wifi_ssid
  24. password: !secret wifi_password
  25.  
  26. # Enable fallback hotspot (captive portal) in case wifi connection fails
  27. ap:
  28. ssid: "Cabby Fallback Hotspot"
  29. password: "8j1hwlY"
  30.  
  31. output:
  32. - platform: ledc
  33. pin: GPIO23
  34. frequency: 25000 Hz
  35. id: fan_pwm
  36. min_power: 0%
  37. max_power: 80%
  38. fan:
  39. - platform: speed
  40. output: fan_pwm
  41. name: "Cabby Fan"
  42.  
  43. button:
  44. - platform: restart
  45. name: "Cabby Restart"
  46. - platform: shutdown
  47. name: "Cabby Shutdown"
  48.  
  49. text_sensor:
  50. - platform: version
  51. name: "Cabby ESPHome Version"
  52. - platform: wifi_info
  53. ip_address:
  54. name: Cabby ESP IP Address
  55. ssid:
  56. name: Cabby ESP Connected SSID
  57. bssid:
  58. name: Cabby ESP Connected BSSID
  59. mac_address:
  60. name: Cabby ESP Mac Wifi Address
  61. scan_results:
  62. name: Cabby ESP Latest Scan Results
  63. dns_address:
  64. name: Cabby ESP DNS Address
  65.  
  66. esp32_ble_tracker:
  67. scan_parameters:
  68. interval: 1100ms
  69. window: 1100ms
  70. active: true
  71.  
  72. bluetooth_proxy:
  73. active: true
  74.  
  75. sensor:
  76. - platform: pulse_counter
  77. pin:
  78. number: GPIO21
  79. mode: INPUT_PULLUP
  80. unit_of_measurement: 'RPM'
  81. id: fan_speed1
  82. name: Cabby Fan Speed 1
  83. update_interval: 1s
  84. filters:
  85. - multiply: 1
  86. - platform: pulse_counter
  87. pin:
  88. number: GPIO22
  89. mode: INPUT_PULLUP
  90. unit_of_measurement: 'RPM'
  91. id: fan_speed2
  92. name: Cabby Fan Speed 2
  93. update_interval: 1s
  94. filters:
  95. - multiply: 1
  96. - platform: dht
  97. pin: GPIO18
  98.  
  99. temperature:
  100. name: "Cabby fan abinet Temperature"
  101. id: temp
  102. humidity:
  103. name: "Cabby fan Cabinet Humidity"
  104. id: humid
  105. update_interval: 10s
  106. - platform: uptime
  107. name: Uptime Sensor
  108.  
  109. light:
  110. - platform: neopixelbus
  111. type: GRB
  112. variant: WS2811
  113. pin: GPIO32
  114. num_leds: 105
  115. name: "Cabby Cabinet LEDs"
  116. effects:
  117. - addressable_scan:
  118. - addressable_scan:
  119. name: Scan Effect With Custom Values
  120. move_interval: 100ms
  121. scan_width: 1
  122. - pulse:
  123. - pulse:
  124. name: "Fast Pulse"
  125. transition_length: 0.5s
  126. update_interval: 0.5s
  127. min_brightness: 0%
  128. max_brightness: 100%
  129. - pulse:
  130. name: "Slow Pulse"
  131. # transition_length: 1s # defaults to 1s
  132. update_interval: 2s
  133. - pulse:
  134. name: "Asymmetrical Pulse"
  135. transition_length:
  136. on_length: 1s
  137. off_length: 500ms
  138. update_interval: 1.5s
  139.  
  140. font:
  141. - file: "Roboto-Bold.ttf"
  142. id: my_font
  143. size: 14
  144.  
  145. image:
  146. - file: "logs2.png"
  147. id: alert
  148. use_transparency: true
  149. resize: 38x38
  150. - file: mdi:dots-vertical
  151. id: line
  152. resize: 40x40
  153. - file: mdi:fan
  154. id: fans
  155. resize: 24x24
  156. - file: mdi:led-on
  157. id: leds
  158. resize: 25x25
  159. i2c:
  160. sda: GPIO26
  161. scl: GPIO25
  162.  
  163. display:
  164. - platform: ssd1306_i2c
  165. model: "SSD1306 128x32"
  166. address: 0x3C
  167. lambda: |-
  168. // Draw the image my_image at position [x=0,y=0]
  169. it.image(0, 1, id(alert));
  170. it.printf(45, 5, id(my_font), "%.0f°C", id(temp).state);
  171. it.printf(45, 18, id(my_font), "%.0f%%", id(humid).state);
  172. it.image(80, 9, id(fans));
  173. it.image(110, 8, id(leds));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement