From 3823f24ed70b3d437364516102d4a3fdfbeb3d4f Mon Sep 17 00:00:00 2001 From: henk Date: Thu, 17 Aug 2023 19:00:19 +0200 Subject: [PATCH] 2023-08-17 19:00:19 --- homeassistant/esphome/bme280.yaml | 16 +++++++++++++++- homeassistant/esphome/bme680.yaml | 19 +++++++++++++++---- homeassistant/esphome/power.yaml | 1 - homeassistant/esphome/t-camera.yaml | 14 ++++++++++++++ 4 files changed, 44 insertions(+), 6 deletions(-) diff --git a/homeassistant/esphome/bme280.yaml b/homeassistant/esphome/bme280.yaml index c56f29c..6c0a6bb 100644 --- a/homeassistant/esphome/bme280.yaml +++ b/homeassistant/esphome/bme280.yaml @@ -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 diff --git a/homeassistant/esphome/bme680.yaml b/homeassistant/esphome/bme680.yaml index 4f380a4..be07af5 100644 --- a/homeassistant/esphome/bme680.yaml +++ b/homeassistant/esphome/bme680.yaml @@ -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 diff --git a/homeassistant/esphome/power.yaml b/homeassistant/esphome/power.yaml index dc285c4..4f6b043 100644 --- a/homeassistant/esphome/power.yaml +++ b/homeassistant/esphome/power.yaml @@ -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 diff --git a/homeassistant/esphome/t-camera.yaml b/homeassistant/esphome/t-camera.yaml index c793dbf..6ff57f8 100644 --- a/homeassistant/esphome/t-camera.yaml +++ b/homeassistant/esphome/t-camera.yaml @@ -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