device_class warnings fixed

This commit is contained in:
Sleeper85 committed 2025-01-30 23:33:00 +01:00
1 parent c47b768573
commit 8777dc8688
4 files changed
+16 -12

No files matched your search

+9 -5
View File
@@ -22,17 +22,21 @@ sensor:
- platform: wifi_signal
name: ${name} ESP32 WiFi power
id: esp32_wifi_power
update_interval: 10s
update_interval: 30s
entity_category: diagnostic
- platform: copy # Reports the WiFi signal strength in %
source_id: esp32_wifi_power
# Reports the WiFi signal strength in %
- platform: template
name: ${name} ESP32 WiFi power (%)
id: esp32_wifi_power_percent
update_interval: 30s
unit_of_measurement: '%'
icon: mdi:wifi
entity_category: diagnostic
filters:
- lambda: 'return min(max(2 * (x + 100.0), 0.0), 100.0);'
accuracy_decimals: 0
lambda: |-
float wifi_power_dbm = id(esp32_wifi_power).state;
return min(max(2 * (wifi_power_dbm + 100.0), 0.0), 100.0);
text_sensor:
# https://esphome.io/components/text_sensor/wifi_info
+2 -2
View File
@@ -28,7 +28,7 @@ sensor:
update_interval: ${bms_update_interval}
accuracy_decimals: 0
unit_of_measurement: Ah
device_class: energy_storage
icon: mdi:car-battery
filters:
- or:
- throttle: 10s
@@ -42,7 +42,7 @@ sensor:
update_interval: ${bms_update_interval}
accuracy_decimals: 0
unit_of_measurement: Ah
device_class: energy_storage
icon: mdi:car-battery
filters:
- or:
- throttle: 10s
@@ -72,9 +72,9 @@ sensor:
temperature:
name: ${name} ${shunt_name} Temperature
charged_kwh:
name: ${name} ${shunt_name} Charged Power
name: ${name} ${shunt_name} Charged Energy
discharged_kwh:
name: ${name} ${shunt_name} Discharged Power
name: ${name} ${shunt_name} Discharged Energy
battery_capacity_ah:
name: ${name} ${shunt_name} Battery Capacity
soc100_voltage:
+3 -3
View File
@@ -536,7 +536,7 @@ sensor:
update_interval: ${yambms_update_interval}
accuracy_decimals: 0
unit_of_measurement: Ah
device_class: energy_storage
icon: mdi:car-battery
filters:
- or:
- throttle: 10s
@@ -550,7 +550,7 @@ sensor:
update_interval: ${yambms_update_interval}
accuracy_decimals: 0
unit_of_measurement: Ah
device_class: energy_storage
icon: mdi:car-battery
filters:
- or:
- throttle: 10s
@@ -563,7 +563,7 @@ sensor:
update_interval: ${yambms_update_interval}
accuracy_decimals: 0
unit_of_measurement: Ah
device_class: energy_storage
icon: mdi:car-battery
filters:
- or:
- throttle: 10s