2023-08-17 19:00:19
This commit is contained in:
@@ -9,7 +9,7 @@ esphome:
|
||||
logger:
|
||||
|
||||
# Enable Home Assistant API
|
||||
#api:
|
||||
api:
|
||||
|
||||
|
||||
ota:
|
||||
@@ -113,6 +113,20 @@ sensor:
|
||||
((17.67*id(z7_temp).state)/(243.5+id(z7_temp).state))));
|
||||
unit_of_measurement: °C
|
||||
icon: 'mdi:thermometer-alert'
|
||||
- platform: wifi_signal
|
||||
name: WiFi Signal
|
||||
id: wifi_signal_db
|
||||
update_interval: 60s
|
||||
entity_category: "diagnostic"
|
||||
- platform: copy # Reports the WiFi signal strength in %
|
||||
source_id: wifi_signal_db
|
||||
name: "WiFi Signal Percent"
|
||||
filters:
|
||||
- lambda: return min(max(2 * (x + 100.0), 0.0), 100.0);
|
||||
unit_of_measurement: "%"
|
||||
entity_category: "diagnostic"
|
||||
- platform: uptime
|
||||
name: Uptime
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ esphome:
|
||||
logger:
|
||||
|
||||
# Enable Home Assistant API
|
||||
#api:
|
||||
api:
|
||||
|
||||
ota:
|
||||
password: !secret ota
|
||||
@@ -48,9 +48,6 @@ mqtt:
|
||||
broker: mqtt.lan
|
||||
discovery: true
|
||||
|
||||
#dallas:
|
||||
# - pin: D1
|
||||
|
||||
i2c:
|
||||
sda: D3
|
||||
scl: D2
|
||||
@@ -124,6 +121,20 @@ sensor:
|
||||
name: "Z1 HTU21 Hum"
|
||||
accuracy_decimals: 1
|
||||
update_interval: 60s
|
||||
- platform: wifi_signal
|
||||
name: WiFi Signal
|
||||
id: wifi_signal_db
|
||||
update_interval: 60s
|
||||
entity_category: "diagnostic"
|
||||
- platform: copy # Reports the WiFi signal strength in %
|
||||
source_id: wifi_signal_db
|
||||
name: "WiFi Signal Percent"
|
||||
filters:
|
||||
- lambda: return min(max(2 * (x + 100.0), 0.0), 100.0);
|
||||
unit_of_measurement: "%"
|
||||
entity_category: "diagnostic"
|
||||
- platform: uptime
|
||||
name: Uptime
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -19,7 +19,6 @@ wifi:
|
||||
password: !secret wifi_password
|
||||
- ssid: !secret wifi_ssid2
|
||||
password: !secret wifi_password2
|
||||
domain: .lan
|
||||
|
||||
|
||||
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||
|
||||
@@ -84,6 +84,20 @@ sensor:
|
||||
id: pwr2
|
||||
entity_id: sensor.power_usage
|
||||
internal: true
|
||||
- platform: wifi_signal
|
||||
name: WiFi Signal
|
||||
id: wifi_signal_db
|
||||
update_interval: 60s
|
||||
entity_category: "diagnostic"
|
||||
- platform: copy # Reports the WiFi signal strength in %
|
||||
source_id: wifi_signal_db
|
||||
name: "WiFi Signal Percent"
|
||||
filters:
|
||||
- lambda: return min(max(2 * (x + 100.0), 0.0), 100.0);
|
||||
unit_of_measurement: "%"
|
||||
entity_category: "diagnostic"
|
||||
- platform: uptime
|
||||
name: Uptime
|
||||
|
||||
text_sensor:
|
||||
- platform: mqtt_subscribe
|
||||
|
||||
Reference in New Issue
Block a user