Inital Commit
This commit is contained in:
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
|
Reference in New Issue
Block a user