1
0

Add esphome devices back

This commit is contained in:
Przemek Grondek 2024-08-21 00:33:52 +02:00
parent fb9fa9a46b
commit 462b7ba0f8
6 changed files with 314 additions and 2 deletions

View File

@ -1,6 +1,5 @@
# ESP32 BT proxy
esphome:
name: bt-proxy
name: bt-proxy-1
project:
name: esphome.bluetooth-proxy
version: "1.0"

View File

@ -0,0 +1,73 @@
esphome:
name: esp12-kvm
friendly_name: esp12-kvm
esp8266:
board: esp01_1m
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key:
ota:
password:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Kvm Fallback Hotspot"
password:
captive_portal:
binary_sensor:
- platform: gpio
id: pc1_selected
pin:
number: 5
mode: INPUT
on_press:
then:
- select.set:
id: select_input
option: PC 1
- platform: gpio
id: pc2_selected
pin:
number: 4
mode: INPUT
on_press:
then:
- select.set:
id: select_input
option: PC 2
select:
- platform: template
id: select_input
name: "KVM Select Input"
options:
- PC 1
- PC 2
optimistic: true
switch:
- platform: gpio
pin:
number: 12
inverted: true
mode:
output: True
open_drain: True
id: change_input
name: "Switch input"
on_turn_on:
- delay: 50ms
- switch.turn_off: change_input

View File

@ -0,0 +1,92 @@
esphome:
name: esp32-3dprinter-controller
friendly_name: esp32-3dprinter-controller
esp32:
board: esp32-s2-saola-1
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key:
ota:
- platform: esphome
password:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esp-3Dprinter-Controller"
password:
captive_portal:
output:
- platform: ledc
id: mk4_nevermore
pin: 18
- platform: ledc
id: mk4_exhaust
pin: 16
# - platform: ledc
# pin: 7
# id: mk4_led_r
# - platform: ledc
# pin: 9
# id: mk4_led_g
# - platform: ledc
# pin: 11
# id: mk4_led_b
# - platform: ledc
# pin: 12
# id: mk4_led_w
- platform: ledc
id: mini_nevermore
pin: 33
# - platform: ledc
# pin: 37
# id: led_mini_r
# - platform: ledc
# pin: 35
# id: led_mini_g
# - platform: ledc
# pin: 33
# id: led_mini_b
# - platform: ledc
# pin: 18
# id: led_mini_w
# light:
# - platform: rgbw
# name: "Prusa MK3.9 light"
# red: mk4_led_r
# green: mk4_led_g
# blue: mk4_led_b
# white: mk4_led_w
# - platform: rgbw
# name: "Prusa MINI light"
# red: led_mini_r
# green: led_mini_g
# blue: led_mini_b
# white: led_mini_w
fan:
- platform: speed
output: mk4_nevermore
name: "MK4 nevermore"
- platform: speed
output: mk4_exhaust
name: "MK4 exhaust"
- platform: speed
output: mini_nevermore
name: "MINI nevermore"

View File

@ -0,0 +1,49 @@
esphome:
name: esp32-cam
friendly_name: esp32-cam
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key:
ota:
- platform: esphome
password:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esp32-Cam Fallback Hotspot"
password:
captive_portal:
esp32_camera:
name: ESP32 Camera
external_clock:
pin: GPIO0
frequency: 20MHz
i2c_pins:
sda: GPIO26
scl: GPIO27
data_pins: [GPIO5, GPIO18, GPIO19, GPIO21, GPIO36, GPIO39, GPIO34, GPIO35]
vsync_pin: GPIO25
href_pin: GPIO23
pixel_clock_pin: GPIO22
power_down_pin: GPIO32
resolution: 2560x1920
jpeg_quality: 10
idle_framerate: 0.2 fps
max_framerate: 1 fps

View File

@ -0,0 +1,45 @@
esphome:
name: "esp32-office-co2"
friendly_name: "esp32-office-co2"
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key:
ota:
- platform: esphome
password:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esp-Rack-Fans Fallback Hotspot"
password:
captive_portal:
bluetooth_proxy:
active: true
uart:
baud_rate: 9600
rx_pin: 1
tx_pin: 3
sensor:
- platform: senseair
co2:
name: "Office CO2 Value"
update_interval: 60s

View File

@ -0,0 +1,54 @@
esphome:
name: eps32-rack-control
friendly_name: eps32-rack-control
esp32:
board: esp32-c3-devkitm-1
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key:
ota:
- platform: esphome
password:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Eps32-Rack-Control"
password:
captive_portal:
output:
- platform: ledc
id: pwm_1
pin: 2
frequency: "25000 Hz"
fan:
- platform: speed
output: pwm_1
name: "Fan"
id: fan_1
sensor:
- platform: dht
pin: 20
temperature:
name: Rack temperature
id: rack_temp
humidity:
name: Rack humidity
id: rack_hum
update_interval: 60s