feat: Updates to esp boards and mqtt custom sensors
This commit is contained in:
47
esphome/aqi-sensor.yaml
Normal file
47
esphome/aqi-sensor.yaml
Normal file
@@ -0,0 +1,47 @@
|
||||
esphome:
|
||||
name: aqi-sensor
|
||||
friendly_name: AQI-Sensor
|
||||
|
||||
esp8266:
|
||||
board: esp01_1m
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
#level: VERY_VERBOSE
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
encryption:
|
||||
key: "3CIARK+MjVSvSJ1VP/GjplrkvFb+TlVPH0CTsHciKdw="
|
||||
|
||||
ota:
|
||||
- platform: esphome
|
||||
password: "cbc40991e6bdea7d9ce6c63085403419"
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
|
||||
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||
ap:
|
||||
ssid: "Aqi-Sensor Fallback Hotspot"
|
||||
password: "ddjn1Ua2MWWf"
|
||||
|
||||
captive_portal:
|
||||
|
||||
|
||||
# Configuration
|
||||
i2c:
|
||||
scan: true
|
||||
|
||||
sensor:
|
||||
- platform: ccs811
|
||||
eco2:
|
||||
name: "AQI eCO2 Value"
|
||||
tvoc:
|
||||
name: "AQI TVOC"
|
||||
update_interval: 10s
|
||||
#baseline: 0x19BC
|
||||
switch:
|
||||
- platform: restart
|
||||
name: "AQI Sensor Restart"
|
||||
@@ -56,29 +56,34 @@ mqtt:
|
||||
username: !secret mqtt_username
|
||||
password: !secret mqtt_password
|
||||
topic_prefix: frankensystem
|
||||
discovery: true
|
||||
discovery: false
|
||||
|
||||
switch:
|
||||
# 8 Channel Relay - 2
|
||||
- platform: gpio
|
||||
pin: $relay5_pin
|
||||
name: "Coil Damper - 1"
|
||||
restore_mode: RESTORE_DEFAULT_OFF
|
||||
|
||||
- platform: gpio
|
||||
pin: $relay3_pin
|
||||
name: "Coil Damper - 2"
|
||||
restore_mode: RESTORE_DEFAULT_OFF
|
||||
|
||||
- platform: gpio
|
||||
pin: $relay1_pin
|
||||
name: "Coil Damper - 3"
|
||||
restore_mode: RESTORE_DEFAULT_OFF
|
||||
|
||||
- platform: gpio
|
||||
pin: $relay2_pin
|
||||
name: "Bypass Damper - 1"
|
||||
restore_mode: RESTORE_DEFAULT_OFF
|
||||
|
||||
- platform: gpio
|
||||
pin: $relay4_pin
|
||||
name: "Bypass Damper - 2"
|
||||
restore_mode: RESTORE_DEFAULT_ON
|
||||
|
||||
- platform: gpio
|
||||
pin: $relay6_pin
|
||||
@@ -92,3 +97,5 @@ switch:
|
||||
pin: $relay8_pin
|
||||
name: "Spare - 3"
|
||||
|
||||
- platform: restart
|
||||
name: "FrankenSystem Damper Relay Restart"
|
||||
@@ -2,7 +2,16 @@ esphome:
|
||||
name: sensor-1
|
||||
platform: ESP8266
|
||||
board: nodemcuv2
|
||||
libraries:
|
||||
- ESP8266WiFi
|
||||
- https://github.com/akaJes/AsyncPing#95ac7e4
|
||||
|
||||
external_components:
|
||||
- source:
|
||||
type: git
|
||||
url: https://github.com/trombik/esphome-component-ping
|
||||
ref: main
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
|
||||
@@ -28,7 +37,9 @@ mqtt:
|
||||
username: !secret mqtt_username
|
||||
password: !secret mqtt_password
|
||||
topic_prefix: frankensystem
|
||||
discovery: true
|
||||
discovery: false
|
||||
will_message:
|
||||
|
||||
|
||||
captive_portal:
|
||||
|
||||
@@ -64,4 +75,19 @@ sensor:
|
||||
name: "Supply Temperature"
|
||||
humidity:
|
||||
name: "Supply Humidity"
|
||||
update_interval: 5s
|
||||
update_interval: 5s
|
||||
|
||||
- platform: ping
|
||||
ip_address: 192.168.1.1 ## Router IP
|
||||
num_attempts: 5
|
||||
timeout: 1sec
|
||||
loss:
|
||||
name: Packet loss
|
||||
latency:
|
||||
name: Latency
|
||||
accuracy_decimals: 3
|
||||
update_interval: 30s
|
||||
|
||||
switch:
|
||||
- platform: restart
|
||||
name: "FrankenSystem Sensors Restart"
|
||||
@@ -57,7 +57,7 @@ mqtt:
|
||||
username: !secret mqtt_username
|
||||
password: !secret mqtt_password
|
||||
topic_prefix: frankensystem
|
||||
discovery: true
|
||||
discovery: false
|
||||
|
||||
network:
|
||||
enable_ipv6: True
|
||||
@@ -67,34 +67,45 @@ switch:
|
||||
- platform: gpio
|
||||
pin: $relay4_pin
|
||||
name: "Fan Low"
|
||||
restore_mode: RESTORE_DEFAULT_OFF
|
||||
|
||||
- platform: gpio
|
||||
pin: $relay5_pin
|
||||
name: "Fan Medium Low"
|
||||
restore_mode: RESTORE_DEFAULT_OFF
|
||||
|
||||
- platform: gpio
|
||||
pin: $relay8_pin
|
||||
name: "Fan Medium High"
|
||||
restore_mode: RESTORE_DEFAULT_OFF
|
||||
|
||||
- platform: gpio
|
||||
pin: $relay7_pin
|
||||
name: "Fan High"
|
||||
restore_mode: RESTORE_DEFAULT_ON
|
||||
|
||||
- platform: gpio
|
||||
pin:
|
||||
number: $relay3_pin
|
||||
inverted: true
|
||||
name: "Dehumidification"
|
||||
restore_mode: ALWAYS_ON
|
||||
|
||||
- platform: gpio
|
||||
pin: $relay1_pin
|
||||
name: "Humidification"
|
||||
restore_mode: ALWAYS_ON
|
||||
|
||||
- platform: gpio
|
||||
pin: $relay2_pin
|
||||
name: "Reheat"
|
||||
restore_mode: ALWAYS_ON
|
||||
|
||||
- platform: gpio
|
||||
pin: $relay6_pin
|
||||
name: "Cooling"
|
||||
restore_mode: ALWAYS_ON
|
||||
|
||||
- platform: restart
|
||||
name: "FrankenSystem System Relays Restart"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user