diff --git a/packages/bms/bms_sensors_DEYE_CAN_module_full.yaml b/packages/bms/bms_sensors_DEYE_CAN_module_full.yaml index 774f313..a30ef24 100644 --- a/packages/bms/bms_sensors_DEYE_CAN_module_full.yaml +++ b/packages/bms/bms_sensors_DEYE_CAN_module_full.yaml @@ -1,5 +1,5 @@ -# Updated : 2025.04.14 -# Version : 1.1.1 +# Updated : 2025.05.05 +# Version : 1.1.2 # GitHub : https://github.com/GHswitt/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -82,9 +82,7 @@ canbus: then: - lambda: |- // Process frame - if(x[0] == 0) id(bms${bms_id}_operation_mode).publish_state("idle"); - if(x[0] == 1) id(bms${bms_id}_operation_mode).publish_state("charging"); - if(x[0] == 2) id(bms${bms_id}_operation_mode).publish_state("discharging"); + id(bms${bms_id}_operation_mode_internal).publish_state(x[0]); if(x[1] == 0) id(bms${bms_id}_fault_level).publish_state("no fault"); if(x[1] == 1) id(bms${bms_id}_fault_level).publish_state("minor fault"); if(x[1] == 2) id(bms${bms_id}_fault_level).publish_state("serious fault"); @@ -597,11 +595,22 @@ sensor: filters: - throttle: 1s + - platform: template + id: "bms${bms_id}_operation_mode_internal" + filters: + - throttle: 30s + text_sensor: - - platform: template name: "${name} ${bms_name} operation mode" id: "bms${bms_id}_operation_mode" + lambda: |- + switch ((int)id(bms${bms_id}_operation_mode_internal).state) { + default: return std::string("unknown"); + case 0: return std::string("idle"); + case 1: return std::string("charging"); + case 2: return std::string("discharging"); + } - platform: template name: "${name} ${bms_name} fault level" diff --git a/packages/bms/bms_sensors_DEYE_CAN_top_full.yaml b/packages/bms/bms_sensors_DEYE_CAN_top_full.yaml index 89b5194..630dc3c 100644 --- a/packages/bms/bms_sensors_DEYE_CAN_top_full.yaml +++ b/packages/bms/bms_sensors_DEYE_CAN_top_full.yaml @@ -1,5 +1,5 @@ -# Updated : 2025.04.14 -# Version : 1.1.1 +# Updated : 2025.05.05 +# Version : 1.1.2 # GitHub : https://github.com/GHswitt/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -354,6 +354,10 @@ sensor: device_class: 'current' state_class: 'measurement' accuracy_decimals: 0 + filters: + - or: + - throttle: 30s + - delta: 10 # Maximum discharging current - platform: template @@ -363,6 +367,11 @@ sensor: device_class: 'current' state_class: 'measurement' accuracy_decimals: 0 + filters: + - or: + - throttle: 30s + - delta: 10 + # SOC - platform: template @@ -424,6 +433,10 @@ sensor: device_class: 'current' state_class: 'measurement' accuracy_decimals: 0 + filters: + - or: + - throttle: 30s + - delta: 10 # Array discharge current limit - platform: template @@ -433,6 +446,10 @@ sensor: device_class: 'current' state_class: 'measurement' accuracy_decimals: 0 + filters: + - or: + - throttle: 30s + - delta: 10 # Min. cell voltage - platform: template diff --git a/packages/bms/bms_sensors_DEYE_CAN_top_minimal.yaml b/packages/bms/bms_sensors_DEYE_CAN_top_minimal.yaml index 44a0ac6..e28ef6e 100644 --- a/packages/bms/bms_sensors_DEYE_CAN_top_minimal.yaml +++ b/packages/bms/bms_sensors_DEYE_CAN_top_minimal.yaml @@ -1,5 +1,5 @@ -# Updated : 2025.04.14 -# Version : 1.1.1 +# Updated : 2025.05.05 +# Version : 1.1.2 # GitHub : https://github.com/GHswitt/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -107,6 +107,10 @@ sensor: device_class: 'current' state_class: 'measurement' accuracy_decimals: 0 + filters: + - or: + - throttle: 30s + - delta: 10 # Maximum discharging current - platform: template @@ -116,6 +120,11 @@ sensor: device_class: 'current' state_class: 'measurement' accuracy_decimals: 0 + filters: + - or: + - throttle: 30s + - delta: 10 + # SOC - platform: template