Inital Commit
This commit is contained in:
135
esphome/bt-fridge-temps.yaml
Normal file
135
esphome/bt-fridge-temps.yaml
Normal file
@@ -0,0 +1,135 @@
|
||||
#############################################
|
||||
# ESPHome
|
||||
#############################################
|
||||
esphome:
|
||||
name: bt-fridge-temps
|
||||
|
||||
#############################################
|
||||
# Specific board for ESPHome device
|
||||
#############################################
|
||||
esp32:
|
||||
board: nodemcu-32s
|
||||
|
||||
#############################################
|
||||
# ESPHome Logging Enable
|
||||
#############################################
|
||||
logger:
|
||||
|
||||
#############################################
|
||||
# Enable the Home Assistant API
|
||||
#############################################
|
||||
api:
|
||||
encryption:
|
||||
key: !secret bt-fridge-temps_api_key
|
||||
|
||||
#############################################
|
||||
# Enable Over the Air Update Capability
|
||||
# Safe mode will detect boot loops
|
||||
#############################################
|
||||
ota:
|
||||
safe_mode: true
|
||||
password: !secret bt-fridge-temps_ota_pass
|
||||
|
||||
#############################################
|
||||
# Use Wifi
|
||||
#############################################
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
# Details for fallback hotspot (captive portal)
|
||||
# in case wifi connection fails
|
||||
ap:
|
||||
ssid: "Bt-Fridge-Temps Fallback Hotspot"
|
||||
password: !secret fallback_ap_password
|
||||
|
||||
#############################################
|
||||
# Fallback captive portal
|
||||
#############################################
|
||||
captive_portal:
|
||||
|
||||
#############################################
|
||||
# Web Portal for display and monitoring
|
||||
#############################################
|
||||
web_server:
|
||||
port: 80
|
||||
auth:
|
||||
username: !secret web_server_username
|
||||
password: !secret web_server_password
|
||||
|
||||
#############################################
|
||||
# MQTT Monitoring
|
||||
#############################################
|
||||
mqtt:
|
||||
broker: !secret mqtt_server
|
||||
topic_prefix: esphome/bt-fridge-temps
|
||||
username: !secret mqtt_username
|
||||
password: !secret mqtt_password
|
||||
|
||||
|
||||
#############################################
|
||||
#############################################
|
||||
# MAIN SENSORS
|
||||
#############################################
|
||||
#############################################
|
||||
|
||||
|
||||
#############################################
|
||||
# Bluetooth
|
||||
#############################################
|
||||
bluetooth_proxy:
|
||||
|
||||
esp32_ble_tracker:
|
||||
|
||||
###################################################################################
|
||||
## Help with Mi Bluetooth Temp Sensors
|
||||
## Youtube Howto https://www.youtube.com/watch?v=l5ea7lQWpMk&t=0s
|
||||
## https://pvvx.github.io/ATC_MiThermometer/TelinkMiFlasher.html
|
||||
## https://esphome.io/components/sensor/xiaomi_ble.html?highlight=ble#lywsd03mmc
|
||||
## Tasmota Info: https://tasmota.github.io/docs/Bluetooth/
|
||||
###################################################################################
|
||||
|
||||
sensor:
|
||||
- platform: xiaomi_lywsd03mmc
|
||||
# ATC_DE944A
|
||||
mac_address: "A4:C1:38:DE:94:4A"
|
||||
#dummy bindkey
|
||||
bindkey: "eef418daf699a0c188f3bfd17e4565d5"
|
||||
temperature:
|
||||
name: "Fridge Temperature (BTT01)"
|
||||
humidity:
|
||||
name: "Fridge Humidity (BTT01)"
|
||||
battery_level:
|
||||
name: "Fridge Monitor Battery Level (BTT01)"
|
||||
- platform: xiaomi_lywsd03mmc
|
||||
# ATC_B32B0C
|
||||
mac_address: "A4:C1:38:B3:2B:0C"
|
||||
#dummy bindkey
|
||||
bindkey: "eef418daf699a0c188f3bfd17e4565d8"
|
||||
temperature:
|
||||
name: "Freezer Temperature (BTT02)"
|
||||
humidity:
|
||||
name: "Freezer Humidity (BTT02)"
|
||||
battery_level:
|
||||
name: "Freezer Monitor Battery Level (BTT02)"
|
||||
- platform: xiaomi_lywsd03mmc
|
||||
# ATC_D90603
|
||||
mac_address: "A4:C1:38:D9:06:03"
|
||||
#dummy bindkey
|
||||
bindkey: "eef418daf699a0c188f3bfd17e4565d7"
|
||||
temperature:
|
||||
name: "Lower Fridge Temperature (BTT03)"
|
||||
humidity:
|
||||
name: "Lower Fridge Humidity (BTT03)"
|
||||
battery_level:
|
||||
name: "Lower Fridge Battery Level (BTT03)"
|
||||
- platform: xiaomi_lywsd03mmc
|
||||
# ATC_81ECB0
|
||||
mac_address: "A4:C1:38:81:EC:B0"
|
||||
#dummy bindkey
|
||||
bindkey: "eef418daf699a0c188f3bfd17e4565d6"
|
||||
temperature:
|
||||
name: "Lower Freezer Temperature (BTT04)"
|
||||
humidity:
|
||||
name: "Lower Freezer Humidity (BTT04)"
|
||||
battery_level:
|
||||
name: "Lower Freezer Monitor Battery Level (BTT04)"
|
133
esphome/esp-leafbat2.yaml
Normal file
133
esphome/esp-leafbat2.yaml
Normal file
@@ -0,0 +1,133 @@
|
||||
#############################################
|
||||
# Common
|
||||
#############################################
|
||||
substitutions:
|
||||
devicename: esp-leafbat2
|
||||
nice_devicename: "Leaf Battery Monitor 2"
|
||||
|
||||
|
||||
#############################################
|
||||
# ESPHome
|
||||
#############################################
|
||||
esphome:
|
||||
name: $devicename
|
||||
|
||||
########################################
|
||||
# Specific board for ESPHome device
|
||||
########################################
|
||||
esp8266:
|
||||
board: d1_mini
|
||||
|
||||
#############################################
|
||||
# ESPHome Logging Enable
|
||||
#############################################
|
||||
logger:
|
||||
|
||||
########################################
|
||||
# Enable the Home Assistant API
|
||||
########################################
|
||||
api:
|
||||
encryption:
|
||||
key: !secret esp-leafbat2_api_key
|
||||
|
||||
########################################
|
||||
# Enable Over the Air Update Capability
|
||||
# Safe mode will detect boot loops
|
||||
########################################
|
||||
ota:
|
||||
safe_mode: true
|
||||
password: !secret esp-leafbat2_ota_pass
|
||||
|
||||
########################################
|
||||
# Use Wifi
|
||||
# (credentials are in secrets file)
|
||||
########################################
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
# Details for fallback hotspot (captive portal) in case wifi connection fails
|
||||
ap:
|
||||
ssid: "Esp-Leafbat2 Fallback Hotspot"
|
||||
password: !secret fallback_ap_password
|
||||
# Static IP (for lower power/quicker on time)
|
||||
manual_ip:
|
||||
static_ip: !secret esp-leafbat2_static_ip
|
||||
gateway: !secret esp-leafbat2_gateway
|
||||
subnet: !secret esp-leafbat2_subnet
|
||||
|
||||
#############################################
|
||||
# Fallback captive portal
|
||||
#############################################
|
||||
captive_portal:
|
||||
|
||||
########################################
|
||||
# Web Portal for display and monitoring
|
||||
########################################
|
||||
web_server:
|
||||
port: 80
|
||||
auth:
|
||||
username: !secret web_server_username
|
||||
password: !secret web_server_password
|
||||
|
||||
########################################
|
||||
# MQTT Monitoring
|
||||
########################################
|
||||
mqtt:
|
||||
broker: !secret mqtt_server
|
||||
topic_prefix: esphome/esp-leafbat2
|
||||
username: !secret mqtt_username
|
||||
password: !secret mqtt_password
|
||||
#
|
||||
# Availability Topic
|
||||
#birth_message:
|
||||
# topic: esphome/esp-leafbat2/availability
|
||||
# payload: online
|
||||
#will_message:
|
||||
# topic: esphome/esp-leafbat2/availability
|
||||
# payload: offline
|
||||
# A way to prevent deep sleep using MQTT command
|
||||
on_message:
|
||||
- topic: viewroad-commands/leafbat2/deepsleepoff
|
||||
payload: 'ON'
|
||||
then:
|
||||
- deep_sleep.prevent: deep_sleep_1
|
||||
- topic: viewroad-commands/leafbat2/deepsleepon
|
||||
payload: 'ON'
|
||||
then:
|
||||
- deep_sleep.enter: deep_sleep_1
|
||||
|
||||
########################################
|
||||
# Deep Sleep
|
||||
########################################
|
||||
deep_sleep:
|
||||
run_duration: 20s
|
||||
sleep_duration: 10min
|
||||
id: deep_sleep_1
|
||||
|
||||
#############################################
|
||||
#############################################
|
||||
# MAIN SENSORS
|
||||
#############################################
|
||||
#############################################
|
||||
sensor:
|
||||
# Quality of Wifi in dBm
|
||||
- platform: wifi_signal
|
||||
name: "WiFi Signal"
|
||||
update_interval: 20s
|
||||
retain: true
|
||||
# Analog sensor for voltage reading (A0)
|
||||
- platform: adc
|
||||
pin: A0
|
||||
name: "Battery Voltage"
|
||||
update_interval: 20s
|
||||
retain: true
|
||||
filters:
|
||||
- multiply: 18.52 # trial and error calc/measure
|
||||
- calibrate_linear:
|
||||
- 5.99 -> 6.0
|
||||
- 11.98 -> 11.99
|
||||
- 16.98 -> 16.98
|
||||
|
||||
#name: "Battery Voltage"
|
||||
# Optional variables:
|
||||
#retain: true
|
129
esphome/esp-mainovenmonitor.yaml
Normal file
129
esphome/esp-mainovenmonitor.yaml
Normal file
@@ -0,0 +1,129 @@
|
||||
#############################################
|
||||
# ESPHome
|
||||
#############################################
|
||||
esphome:
|
||||
name: "esp-mainovenmonitor"
|
||||
|
||||
#############################################
|
||||
# Specific board for ESPHome device
|
||||
#############################################
|
||||
esp8266:
|
||||
board: sonoff_basic
|
||||
|
||||
#############################################
|
||||
# ESPHome Logging Enable
|
||||
#############################################
|
||||
# NOTE: Baudrate set to 0 as we are using the UART with PZEM
|
||||
logger:
|
||||
baud_rate: 0
|
||||
|
||||
#############################################
|
||||
# Enable the Home Assistant API
|
||||
#############################################
|
||||
api:
|
||||
encryption:
|
||||
key: !secret esp-mainovenmonitor_api_key
|
||||
|
||||
#############################################
|
||||
# Enable Over the Air Update Capability
|
||||
# Safe mode will detect boot loops
|
||||
#############################################
|
||||
ota:
|
||||
safe_mode: true
|
||||
password: !secret esp-mainovenmonitor_ota_pass
|
||||
|
||||
#############################################
|
||||
# Use Wifi
|
||||
#############################################
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
# Details for fallback hotspot (captive portal)
|
||||
# in case wifi connection fails
|
||||
ap:
|
||||
ssid: "Mainovenmonitor Fallback Hotspot"
|
||||
password: !secret fallback_ap_password
|
||||
# manual_ip:
|
||||
# static_ip: 192.168.x.x
|
||||
# gateway: 192.168.X.x
|
||||
# subnet: 255.255.255.0
|
||||
|
||||
#############################################
|
||||
# Fallback captive portal
|
||||
#############################################
|
||||
captive_portal:
|
||||
|
||||
#############################################
|
||||
# Web Portal for display and monitoring
|
||||
#############################################
|
||||
web_server:
|
||||
port: 80
|
||||
auth:
|
||||
username: !secret web_server_username
|
||||
password: !secret web_server_password
|
||||
|
||||
#############################################
|
||||
# MQTT Monitoring
|
||||
#############################################
|
||||
mqtt:
|
||||
broker: !secret mqtt_server
|
||||
topic_prefix: esphome/esp-mainovenmonitor
|
||||
username: !secret mqtt_username
|
||||
password: !secret mqtt_password
|
||||
|
||||
|
||||
#############################################
|
||||
#############################################
|
||||
# MAIN SENSORS
|
||||
#############################################
|
||||
#############################################
|
||||
# PEZEM4 Power Monitoring
|
||||
# https://esphome.io/components/sensor/pzemac.html
|
||||
#############################################
|
||||
|
||||
uart:
|
||||
rx_pin: GPIO3
|
||||
tx_pin: GPIO1
|
||||
#tx_pin: RX
|
||||
#rx_pin: TX
|
||||
baud_rate: 9600
|
||||
stop_bits: 1
|
||||
|
||||
modbus:
|
||||
|
||||
sensor:
|
||||
- platform: pzemac
|
||||
current:
|
||||
name: "Main Oven Current"
|
||||
voltage:
|
||||
name: "Main Oven Voltage"
|
||||
energy:
|
||||
name: "Main Oven Energy"
|
||||
power:
|
||||
name: "Main Oven Power"
|
||||
frequency:
|
||||
name: "Main Oven Mains Frequency"
|
||||
power_factor:
|
||||
name: "Main Oven Power Factor"
|
||||
update_interval: 10s
|
||||
|
||||
########################################
|
||||
########################################
|
||||
|
||||
# Relay Output (on sonoff basic)
|
||||
switch:
|
||||
- platform: gpio
|
||||
name: "Main Oven Disable"
|
||||
pin: GPIO12
|
||||
|
||||
#button:
|
||||
# - platform: restart
|
||||
# name: "Main Oven ESPHome Restart"
|
||||
|
||||
|
||||
# LED Flashes on errors or warnings
|
||||
# https://esphome.io/components/status_led.html
|
||||
status_led:
|
||||
pin:
|
||||
number: GPIO13
|
||||
inverted: true
|
94
esphome/esp-netcupfan2.yaml
Normal file
94
esphome/esp-netcupfan2.yaml
Normal file
@@ -0,0 +1,94 @@
|
||||
#############################################
|
||||
# ESPHome
|
||||
#############################################
|
||||
esphome:
|
||||
name: esp-netcupfan2
|
||||
|
||||
########################################
|
||||
# Specific board for ESPHome device
|
||||
########################################
|
||||
esp8266:
|
||||
board: d1_mini
|
||||
|
||||
#############################################
|
||||
# ESPHome Logging Enable
|
||||
#############################################
|
||||
logger:
|
||||
|
||||
#############################################
|
||||
# Enable the Home Assistant API
|
||||
#############################################
|
||||
api:
|
||||
encryption:
|
||||
key: !secret esp-netcupfan2_api_key
|
||||
|
||||
#############################################
|
||||
# Enable Over the Air Update Capability
|
||||
# Safe mode will detect boot loops
|
||||
#############################################
|
||||
ota:
|
||||
safe_mode: true
|
||||
password: !secret esp-netcupfan2_ota_pass
|
||||
|
||||
#############################################
|
||||
# Use Wifi
|
||||
#############################################
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
# Details for fallback hotspot
|
||||
# in case wifi connection fails
|
||||
ap:
|
||||
ssid: "Netcupfan2 Fallback Hotspot"
|
||||
password: !secret fallback_ap_password
|
||||
|
||||
#############################################
|
||||
# Fallback captive portal
|
||||
#############################################
|
||||
captive_portal:
|
||||
|
||||
#############################################
|
||||
# Web Portal for display and monitoring
|
||||
#############################################
|
||||
web_server:
|
||||
port: 80
|
||||
auth:
|
||||
username: !secret web_server_username
|
||||
password: !secret web_server_password
|
||||
|
||||
#############################################
|
||||
# MQTT Monitoring
|
||||
#############################################
|
||||
mqtt:
|
||||
broker: !secret mqtt_server
|
||||
topic_prefix: esphome/esp-netcupfan2
|
||||
username: !secret mqtt_username
|
||||
password: !secret mqtt_password
|
||||
|
||||
#############################################
|
||||
#############################################
|
||||
# MAIN SENSORS
|
||||
#############################################
|
||||
#############################################
|
||||
|
||||
# Relay Output on a GPIO Pin
|
||||
switch:
|
||||
- platform: gpio
|
||||
name: "Relay_Main"
|
||||
pin: GPIO15
|
||||
|
||||
# Allows a fan control point in Home Assistant
|
||||
fan:
|
||||
- platform: speed
|
||||
output: pwm_output
|
||||
name: "Net Cupboard Fan 2 Speed"
|
||||
speed_count: 500
|
||||
|
||||
# PWM Fan Output on the GPIO Pin
|
||||
output:
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO16
|
||||
frequency: 25000 Hz
|
||||
id: pwm_output
|
||||
|
||||
|
Reference in New Issue
Block a user