feat: Updates to esp boards and mqtt custom sensors
This commit is contained in:
@@ -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"
|
||||
Reference in New Issue
Block a user