Initial commit of first ESPHome projects.
This commit is contained in:
67
3d-printer-control.yaml
Normal file
67
3d-printer-control.yaml
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
esphome:
|
||||||
|
name: 3d-printer-control
|
||||||
|
platform: ESP32
|
||||||
|
board: esp32cam
|
||||||
|
|
||||||
|
# Enable logging
|
||||||
|
logger:
|
||||||
|
|
||||||
|
# Enable Home Assistant API
|
||||||
|
api:
|
||||||
|
|
||||||
|
ota:
|
||||||
|
password: "a540327cb63deda6aa4ddfedfe42df83"
|
||||||
|
|
||||||
|
wifi:
|
||||||
|
ssid: "EasyBox-368239"
|
||||||
|
password: "inginf95"
|
||||||
|
|
||||||
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||||
|
ap:
|
||||||
|
ssid: "3D-Printer-Control"
|
||||||
|
password: "YUnLlGxWjXgs"
|
||||||
|
|
||||||
|
|
||||||
|
#currently not used:
|
||||||
|
binary_sensor:
|
||||||
|
- platform: gpio
|
||||||
|
pin:
|
||||||
|
number: GPIO02
|
||||||
|
mode: INPUT_PULLUP
|
||||||
|
inverted: true
|
||||||
|
name: "3D-Printer-Button"
|
||||||
|
|
||||||
|
captive_portal:
|
||||||
|
|
||||||
|
#switches for LED and SWPower
|
||||||
|
switch:
|
||||||
|
- platform: gpio
|
||||||
|
name: "3D-Printer-LED"
|
||||||
|
pin: GPIO04
|
||||||
|
- platform: gpio
|
||||||
|
name: "3D-PCPower"
|
||||||
|
pin: GPIO14
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: wifi_signal
|
||||||
|
name: "3D-Printer-WiFiSignal"
|
||||||
|
update_interval: 60s
|
||||||
|
- platform: uptime
|
||||||
|
name: "3D-Printer-Uptime"
|
||||||
|
|
||||||
|
#Camera settings, maybe increase resolution in future
|
||||||
|
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
|
||||||
|
|
||||||
|
# Image settings
|
||||||
|
name: "3d-Printer-Camera"
|
||||||
69
esphome-test.yaml
Normal file
69
esphome-test.yaml
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
esphome:
|
||||||
|
name: esphome-test
|
||||||
|
platform: ESP32
|
||||||
|
board: esp32dev
|
||||||
|
|
||||||
|
# Enable logging
|
||||||
|
logger:
|
||||||
|
|
||||||
|
# Enable Home Assistant API
|
||||||
|
api:
|
||||||
|
|
||||||
|
ota:
|
||||||
|
password: "43d59971c41accde738ca62238a7f6e9"
|
||||||
|
|
||||||
|
wifi:
|
||||||
|
ssid: "EasyBox-368239"
|
||||||
|
password: "inginf95"
|
||||||
|
|
||||||
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||||
|
ap:
|
||||||
|
ssid: "Esphome-Test Fallback Hotspot"
|
||||||
|
password: "XGUHn79QsuAb"
|
||||||
|
|
||||||
|
mqtt:
|
||||||
|
broker: montana2020
|
||||||
|
port: 1884
|
||||||
|
username: nils
|
||||||
|
password: inginf95
|
||||||
|
|
||||||
|
i2c:
|
||||||
|
sda: 21
|
||||||
|
scl: 22
|
||||||
|
scan: true
|
||||||
|
id: bus_a
|
||||||
|
|
||||||
|
switch:
|
||||||
|
- platform: gpio
|
||||||
|
name: "LED"
|
||||||
|
pin: GPIO2
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: mqtt_subscribe
|
||||||
|
name: "Temperatur B<>ro"
|
||||||
|
id: DachTemperatur
|
||||||
|
topic: stat/Dach/MA/temperature
|
||||||
|
- platform: wifi_signal
|
||||||
|
name: "WiFi Signal Sensor"
|
||||||
|
update_interval: 60s
|
||||||
|
- platform: uptime
|
||||||
|
name: Uptime Sensor
|
||||||
|
- platform: esp32_hall
|
||||||
|
name: "ESP32 Hall Sensor"
|
||||||
|
update_interval: 60s
|
||||||
|
- platform: bmp280
|
||||||
|
temperature:
|
||||||
|
name: "BME280 Temperature"
|
||||||
|
oversampling: 16x
|
||||||
|
pressure:
|
||||||
|
name: "BME280 Pressure"
|
||||||
|
address: 0x76
|
||||||
|
update_interval: 60s
|
||||||
|
|
||||||
|
web_server:
|
||||||
|
port: 80
|
||||||
|
auth:
|
||||||
|
username: nils
|
||||||
|
password: inginf95
|
||||||
|
|
||||||
|
captive_portal:
|
||||||
153
hs-test.yaml
Normal file
153
hs-test.yaml
Normal file
@@ -0,0 +1,153 @@
|
|||||||
|
esphome:
|
||||||
|
name: hs-test
|
||||||
|
platform: ESP32
|
||||||
|
board: esp32dev
|
||||||
|
|
||||||
|
# Enable logging
|
||||||
|
logger:
|
||||||
|
|
||||||
|
# Enable Home Assistant API
|
||||||
|
api:
|
||||||
|
|
||||||
|
ota:
|
||||||
|
password: "dd9d2a5e573d1d0ed1435d5c176b580c"
|
||||||
|
|
||||||
|
wifi:
|
||||||
|
ssid: "EasyBox-368239"
|
||||||
|
password: "inginf95"
|
||||||
|
|
||||||
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||||
|
ap:
|
||||||
|
ssid: "Hs-Test Fallback Hotspot"
|
||||||
|
password: "Innr1HW7mk9e"
|
||||||
|
|
||||||
|
switch:
|
||||||
|
- platform: gpio
|
||||||
|
name: "Ventil 1"
|
||||||
|
id: vent1
|
||||||
|
pin: GPIO32
|
||||||
|
inverted: true
|
||||||
|
- platform: gpio
|
||||||
|
name: "Ventil 2"
|
||||||
|
id: vent2
|
||||||
|
pin: GPIO33
|
||||||
|
inverted: true
|
||||||
|
- platform: gpio
|
||||||
|
name: "Ventil 3"
|
||||||
|
id: vent3
|
||||||
|
pin: GPIO25
|
||||||
|
inverted: true
|
||||||
|
- platform: gpio
|
||||||
|
name: "Ventil 4"
|
||||||
|
id: vent4
|
||||||
|
pin: GPIO26
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
|
||||||
|
mqtt:
|
||||||
|
broker: 192.168.178.76
|
||||||
|
port: 1884
|
||||||
|
username: nils
|
||||||
|
password: inginf95
|
||||||
|
# Reaction to target temperature
|
||||||
|
on_message:
|
||||||
|
- topic: stat/HS1/HK1/temperature
|
||||||
|
then:
|
||||||
|
- if:
|
||||||
|
condition:
|
||||||
|
lambda: 'return (esphome::parse_float(x)) < (id(TargetHK1).state);'
|
||||||
|
then:
|
||||||
|
- logger.log: "Turn on vent 1!"
|
||||||
|
- switch.turn_on: vent1
|
||||||
|
else:
|
||||||
|
- logger.log: "Turn off vent 1!"
|
||||||
|
- switch.turn_off: vent1
|
||||||
|
- topic: stat/HS1/HK2/temperature
|
||||||
|
then:
|
||||||
|
- if:
|
||||||
|
condition:
|
||||||
|
lambda: 'return (esphome::parse_float(x)) < (id(TargetHK2).state);'
|
||||||
|
then:
|
||||||
|
- logger.log: "Turn on vent 2!"
|
||||||
|
- switch.turn_on: vent2
|
||||||
|
else:
|
||||||
|
- logger.log: "Turn off vent 2!"
|
||||||
|
- switch.turn_off: vent2
|
||||||
|
- topic: stat/HS1/HK3/temperature
|
||||||
|
then:
|
||||||
|
- if:
|
||||||
|
condition:
|
||||||
|
lambda: 'return (esphome::parse_float(x)) < (id(TargetHK3).state);'
|
||||||
|
then:
|
||||||
|
- logger.log: "Turn on vent 3!"
|
||||||
|
- switch.turn_on: vent3
|
||||||
|
else:
|
||||||
|
- logger.log: "Turn off vent 3!"
|
||||||
|
- switch.turn_off: vent3
|
||||||
|
- topic: stat/HS1/HK4/temperature
|
||||||
|
then:
|
||||||
|
- if:
|
||||||
|
condition:
|
||||||
|
lambda: 'return (esphome::parse_float(x)) < (id(TargetHK4).state);'
|
||||||
|
then:
|
||||||
|
- logger.log: "Turn on vent 4!"
|
||||||
|
- switch.turn_on: vent4
|
||||||
|
else:
|
||||||
|
- logger.log: "Turn off vent 4!"
|
||||||
|
- switch.turn_off: vent4
|
||||||
|
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
# Current Temperatures
|
||||||
|
- platform: mqtt_subscribe
|
||||||
|
name: "Current HK1"
|
||||||
|
id: CurrentHK1
|
||||||
|
topic: stat/HS1/HK1/temperature
|
||||||
|
- platform: mqtt_subscribe
|
||||||
|
name: "Current HK2"
|
||||||
|
id: CurrentHK2
|
||||||
|
topic: stat/HS1/HK2/temperature
|
||||||
|
- platform: mqtt_subscribe
|
||||||
|
name: "Current HK3"
|
||||||
|
id: CurrentHK3
|
||||||
|
topic: stat/HS1/HK3/temperature
|
||||||
|
- platform: mqtt_subscribe
|
||||||
|
name: "Current HK4"
|
||||||
|
id: CurrentHK4
|
||||||
|
topic: stat/HS1/HK4/temperature
|
||||||
|
|
||||||
|
# Target Temperatures
|
||||||
|
- platform: mqtt_subscribe
|
||||||
|
name: "Target HK1"
|
||||||
|
id: TargetHK1
|
||||||
|
topic: stat/HS1/HK1/target_temperature
|
||||||
|
- platform: mqtt_subscribe
|
||||||
|
name: "Target HK2"
|
||||||
|
id: TargetHK2
|
||||||
|
topic: stat/HS1/HK2/target_temperature
|
||||||
|
- platform: mqtt_subscribe
|
||||||
|
name: "Target HK3"
|
||||||
|
id: TargetHK3
|
||||||
|
topic: stat/HS1/HK3/target_temperature
|
||||||
|
- platform: mqtt_subscribe
|
||||||
|
name: "Target HK4"
|
||||||
|
id: TargetHK4
|
||||||
|
topic: stat/HS1/HK4/target_temperature
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
- platform: wifi_signal
|
||||||
|
name: "WiFi Signal Sensor"
|
||||||
|
update_interval: 60s
|
||||||
|
- platform: uptime
|
||||||
|
name: Uptime Sensor
|
||||||
|
|
||||||
|
|
||||||
|
web_server:
|
||||||
|
port: 80
|
||||||
|
auth:
|
||||||
|
username: nils
|
||||||
|
password: inginf95
|
||||||
|
|
||||||
|
|
||||||
|
captive_portal:
|
||||||
Reference in New Issue
Block a user