feat: Add inverter communication status sensor

Implement a new binary sensor to monitor the inverter communication status.
This sensor's state is dependent on the `rs485_switch_inverter_heartbeat_monitoring`
switch, only reporting the actual inverter communication status when
heartbeat monitoring is enabled.
This commit is contained in:
fahmula committed 2025-08-02 13:22:38 -04:00
1 parent 7909210390
commit 31e138bf0d
1 file changed
+13 -3
+13 -3
View File
@@ -1,5 +1,5 @@
# Updated : 2025.07.10
# Version : 1.2.0
# Updated : 2025.07.31
# Version : 1.2.1
# GitHub : https://github.com/fahmula/esphome-pylontech-rs485
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -148,7 +148,17 @@ binary_sensor:
- platform: template
id: yambms_proxy_system_fault_protection
internal: true
# --- Inverter Communication Status ---
- platform: template
id: ${rs485_id}_status
name: "${name} ${rs485_name} Status"
entity_category: diagnostic
lambda: |-
if (id(rs485_switch_inverter_heartbeat_monitoring).state) {
return id(inverter_com_status).state;
}
return false;
interval:
- interval: 100ms
then: