From a19890bc0d193061a68a4c5f4bd6c14f3d7668f5 Mon Sep 17 00:00:00 2001 From: Sleeper85 Date: Sun, 28 Jun 2026 14:59:44 +0200 Subject: [PATCH] Added the `canbus_link_timer_enabled` option #268 --- YamBMS_LP_DEMO.yaml | 4 ++-- YamBMS_LP_PVbrain2.yaml | 4 ++-- YamBMS_Local_Packages_example.yaml | 4 ++-- YamBMS_RP_BMS_BASEN_RS485.yaml | 4 ++-- YamBMS_RP_BMS_DEYE_CAN.yaml | 4 ++-- YamBMS_RP_BMS_EG4_RS485.yaml | 4 ++-- YamBMS_RP_BMS_Ecoworthy_RS485.yaml | 4 ++-- YamBMS_RP_BMS_JBD.yaml | 4 ++-- YamBMS_RP_BMS_JK-B_RS485_Modbus.yaml | 4 ++-- YamBMS_RP_BMS_JK-PB_RS485_Modbus.yaml | 4 ++-- YamBMS_RP_BMS_JK_BLE.yaml | 4 ++-- YamBMS_RP_BMS_JK_UART_4G-GPS.yaml | 4 ++-- YamBMS_RP_BMS_PACE_RS485_Modbus.yaml | 4 ++-- YamBMS_RP_BMS_SEPLOS_V1_V2_RS485_Modbus.yaml | 4 ++-- ...RP_BMS_SEPLOS_V3_RS485_Modbus_sniffer.yaml | 4 ++-- YamBMS_RP_Balancer.yaml | 4 ++-- YamBMS_RP_DEMO.yaml | 4 ++-- YamBMS_RP_Ethernet_board.yaml | 4 ++-- YamBMS_RP_PVbrain2.yaml | 4 ++-- YamBMS_Remote_Packages_example.yaml | 4 ++-- ...MS_Remote_Packages_example_dev_branch.yaml | 4 ++-- packages/yambms/yambms_canbus.yaml | 20 ++++++++++++------- 22 files changed, 55 insertions(+), 49 deletions(-) diff --git a/YamBMS_LP_DEMO.yaml b/YamBMS_LP_DEMO.yaml index fcab672..cdb3adb 100644 --- a/YamBMS_LP_DEMO.yaml +++ b/YamBMS_LP_DEMO.yaml @@ -366,8 +366,8 @@ packages: canbus_name: 'CANBUS 1' canbus_node_id: 'canbus_inverter_1' # CAN bus node to which your inverter is connected canbus_status_led_id: 'esp_light' # LED used to show status; default = esp_light, comment out to disable - # The CAN bus link will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) - # before the end of the `canbus_link_timer` (5s by default). + # CAN frames sending will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) before the end of the `canbus_link_timer` (5s by default). + canbus_link_timer_enabled: 'true' # Set it to 'false' if your inverter/charger is not sending ACK (can_id 0x305) every `1s` as specified by the protocol canbus_link_timer: '5s' canbus_extended_ack: 'false' # Set to 'true' for enable extended 29-bit IDs for the ACK can_id 0x305 (required for Schneider XW Pro) diff --git a/YamBMS_LP_PVbrain2.yaml b/YamBMS_LP_PVbrain2.yaml index ba5691f..26d5673 100644 --- a/YamBMS_LP_PVbrain2.yaml +++ b/YamBMS_LP_PVbrain2.yaml @@ -260,8 +260,8 @@ packages: canbus_name: 'CANBUS 1' canbus_node_id: 'canbus_inverter_1' # CAN bus node to which your inverter is connected canbus_status_led_id: 'esp_light' # LED used to show status; default = esp_light, comment out to disable - # The CAN bus link will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) - # before the end of the `canbus_link_timer` (5s by default). + # CAN frames sending will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) before the end of the `canbus_link_timer` (5s by default). + canbus_link_timer_enabled: 'true' # Set it to 'false' if your inverter/charger is not sending ACK (can_id 0x305) every `1s` as specified by the protocol canbus_link_timer: '5s' canbus_extended_ack: 'false' # Set to 'true' for enable extended 29-bit IDs for the ACK can_id 0x305 (required for Schneider XW Pro) diff --git a/YamBMS_Local_Packages_example.yaml b/YamBMS_Local_Packages_example.yaml index ed3945a..dac128f 100644 --- a/YamBMS_Local_Packages_example.yaml +++ b/YamBMS_Local_Packages_example.yaml @@ -288,8 +288,8 @@ packages: canbus_name: 'CANBUS 1' canbus_node_id: 'canbus_inverter_1' # CAN bus node to which your inverter is connected canbus_status_led_id: 'esp_light' # LED used to show status; default = esp_light, comment out to disable - # The CAN bus link will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) - # before the end of the `canbus_link_timer` (5s by default). + # CAN frames sending will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) before the end of the `canbus_link_timer` (5s by default). + canbus_link_timer_enabled: 'true' # Set it to 'false' if your inverter/charger is not sending ACK (can_id 0x305) every `1s` as specified by the protocol canbus_link_timer: '5s' canbus_extended_ack: 'false' # Set to 'true' for enable extended 29-bit IDs for the ACK can_id 0x305 (required for Schneider XW Pro) diff --git a/YamBMS_RP_BMS_BASEN_RS485.yaml b/YamBMS_RP_BMS_BASEN_RS485.yaml index 57a8c75..7c1c0ea 100644 --- a/YamBMS_RP_BMS_BASEN_RS485.yaml +++ b/YamBMS_RP_BMS_BASEN_RS485.yaml @@ -309,8 +309,8 @@ packages: canbus_name: 'CANBUS 1' canbus_node_id: 'canbus_inverter_1' # CAN bus node to which your inverter is connected canbus_status_led_id: 'esp_light' # LED used to show status; default = esp_light, comment out to disable - # The CAN bus link will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) - # before the end of the `canbus_link_timer` (5s by default). + # CAN frames sending will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) before the end of the `canbus_link_timer` (5s by default). + canbus_link_timer_enabled: 'true' # Set it to 'false' if your inverter/charger is not sending ACK (can_id 0x305) every `1s` as specified by the protocol canbus_link_timer: '5s' canbus_extended_ack: 'false' # Set to 'true' for enable extended 29-bit IDs (required for Schneider XW Pro) diff --git a/YamBMS_RP_BMS_DEYE_CAN.yaml b/YamBMS_RP_BMS_DEYE_CAN.yaml index f1c9b2b..1e73e45 100644 --- a/YamBMS_RP_BMS_DEYE_CAN.yaml +++ b/YamBMS_RP_BMS_DEYE_CAN.yaml @@ -318,8 +318,8 @@ packages: canbus_name: 'CANBUS 1' canbus_node_id: 'canbus_inverter_1' # CAN bus node to which your inverter is connected canbus_status_led_id: 'esp_light' # LED used to show status; default = esp_light, comment out to disable - # The CAN bus link will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) - # before the end of the `canbus_link_timer` (5s by default). + # CAN frames sending will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) before the end of the `canbus_link_timer` (5s by default). + canbus_link_timer_enabled: 'true' # Set it to 'false' if your inverter/charger is not sending ACK (can_id 0x305) every `1s` as specified by the protocol canbus_link_timer: '5s' canbus_extended_ack: 'false' # Set to 'true' for enable extended 29-bit IDs (required for Schneider XW Pro) diff --git a/YamBMS_RP_BMS_EG4_RS485.yaml b/YamBMS_RP_BMS_EG4_RS485.yaml index 8edd6f0..812fe15 100644 --- a/YamBMS_RP_BMS_EG4_RS485.yaml +++ b/YamBMS_RP_BMS_EG4_RS485.yaml @@ -315,8 +315,8 @@ packages: canbus_name: 'CANBUS 1' canbus_node_id: 'canbus_inverter_1' # CAN bus node to which your inverter is connected canbus_status_led_id: 'esp_light' # LED used to show status; default = esp_light, comment out to disable - # The CAN bus link will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) - # before the end of the `canbus_link_timer` (5s by default). + # CAN frames sending will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) before the end of the `canbus_link_timer` (5s by default). + canbus_link_timer_enabled: 'true' # Set it to 'false' if your inverter/charger is not sending ACK (can_id 0x305) every `1s` as specified by the protocol canbus_link_timer: '5s' canbus_extended_ack: 'false' # Set to 'true' for enable extended 29-bit IDs (required for Schneider XW Pro) diff --git a/YamBMS_RP_BMS_Ecoworthy_RS485.yaml b/YamBMS_RP_BMS_Ecoworthy_RS485.yaml index d9bfef5..320ac2c 100644 --- a/YamBMS_RP_BMS_Ecoworthy_RS485.yaml +++ b/YamBMS_RP_BMS_Ecoworthy_RS485.yaml @@ -316,8 +316,8 @@ packages: canbus_name: 'CANBUS 1' canbus_node_id: 'canbus_inverter_1' # CAN bus node to which your inverter is connected canbus_status_led_id: 'esp_light' # LED used to show status; default = esp_light, comment out to disable - # The CAN bus link will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) - # before the end of the `canbus_link_timer` (5s by default). + # CAN frames sending will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) before the end of the `canbus_link_timer` (5s by default). + canbus_link_timer_enabled: 'true' # Set it to 'false' if your inverter/charger is not sending ACK (can_id 0x305) every `1s` as specified by the protocol canbus_link_timer: '5s' canbus_extended_ack: 'false' # Set to 'true' for enable extended 29-bit IDs (required for Schneider XW Pro) diff --git a/YamBMS_RP_BMS_JBD.yaml b/YamBMS_RP_BMS_JBD.yaml index b0d63b4..501c788 100644 --- a/YamBMS_RP_BMS_JBD.yaml +++ b/YamBMS_RP_BMS_JBD.yaml @@ -325,8 +325,8 @@ packages: canbus_name: 'CANBUS 1' canbus_node_id: 'canbus_inverter_1' # CAN bus node to which your inverter is connected canbus_status_led_id: 'esp_light' # LED used to show status; default = esp_light, comment out to disable - # The CAN bus link will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) - # before the end of the `canbus_link_timer` (5s by default). + # CAN frames sending will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) before the end of the `canbus_link_timer` (5s by default). + canbus_link_timer_enabled: 'true' # Set it to 'false' if your inverter/charger is not sending ACK (can_id 0x305) every `1s` as specified by the protocol canbus_link_timer: '5s' canbus_extended_ack: 'false' # Set to 'true' for enable extended 29-bit IDs (required for Schneider XW Pro) diff --git a/YamBMS_RP_BMS_JK-B_RS485_Modbus.yaml b/YamBMS_RP_BMS_JK-B_RS485_Modbus.yaml index c7152d5..2c678e6 100644 --- a/YamBMS_RP_BMS_JK-B_RS485_Modbus.yaml +++ b/YamBMS_RP_BMS_JK-B_RS485_Modbus.yaml @@ -355,8 +355,8 @@ packages: canbus_name: 'CANBUS 1' canbus_node_id: 'canbus_inverter_1' # CAN bus node to which your inverter is connected canbus_status_led_id: 'esp_light' # LED used to show status; default = esp_light, comment out to disable - # The CAN bus link will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) - # before the end of the `canbus_link_timer` (5s by default). + # CAN frames sending will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) before the end of the `canbus_link_timer` (5s by default). + canbus_link_timer_enabled: 'true' # Set it to 'false' if your inverter/charger is not sending ACK (can_id 0x305) every `1s` as specified by the protocol canbus_link_timer: '5s' canbus_extended_ack: 'false' # Set to 'true' for enable extended 29-bit IDs (required for Schneider XW Pro) diff --git a/YamBMS_RP_BMS_JK-PB_RS485_Modbus.yaml b/YamBMS_RP_BMS_JK-PB_RS485_Modbus.yaml index b184ab8..a3f3582 100644 --- a/YamBMS_RP_BMS_JK-PB_RS485_Modbus.yaml +++ b/YamBMS_RP_BMS_JK-PB_RS485_Modbus.yaml @@ -355,8 +355,8 @@ packages: canbus_name: 'CANBUS 1' canbus_node_id: 'canbus_inverter_1' # CAN bus node to which your inverter is connected canbus_status_led_id: 'esp_light' # LED used to show status; default = esp_light, comment out to disable - # The CAN bus link will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) - # before the end of the `canbus_link_timer` (5s by default). + # CAN frames sending will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) before the end of the `canbus_link_timer` (5s by default). + canbus_link_timer_enabled: 'true' # Set it to 'false' if your inverter/charger is not sending ACK (can_id 0x305) every `1s` as specified by the protocol canbus_link_timer: '5s' canbus_extended_ack: 'false' # Set to 'true' for enable extended 29-bit IDs (required for Schneider XW Pro) diff --git a/YamBMS_RP_BMS_JK_BLE.yaml b/YamBMS_RP_BMS_JK_BLE.yaml index 127ad6a..3313028 100644 --- a/YamBMS_RP_BMS_JK_BLE.yaml +++ b/YamBMS_RP_BMS_JK_BLE.yaml @@ -310,8 +310,8 @@ packages: canbus_name: 'CANBUS 1' canbus_node_id: 'canbus_inverter_1' # CAN bus node to which your inverter is connected canbus_status_led_id: 'esp_light' # LED used to show status; default = esp_light, comment out to disable - # The CAN bus link will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) - # before the end of the `canbus_link_timer` (5s by default). + # CAN frames sending will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) before the end of the `canbus_link_timer` (5s by default). + canbus_link_timer_enabled: 'true' # Set it to 'false' if your inverter/charger is not sending ACK (can_id 0x305) every `1s` as specified by the protocol canbus_link_timer: '5s' canbus_extended_ack: 'false' # Set to 'true' for enable extended 29-bit IDs (required for Schneider XW Pro) diff --git a/YamBMS_RP_BMS_JK_UART_4G-GPS.yaml b/YamBMS_RP_BMS_JK_UART_4G-GPS.yaml index 64c3bee..7024317 100644 --- a/YamBMS_RP_BMS_JK_UART_4G-GPS.yaml +++ b/YamBMS_RP_BMS_JK_UART_4G-GPS.yaml @@ -308,8 +308,8 @@ packages: canbus_name: 'CANBUS 1' canbus_node_id: 'canbus_inverter_1' # CAN bus node to which your inverter is connected canbus_status_led_id: 'esp_light' # LED used to show status; default = esp_light, comment out to disable - # The CAN bus link will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) - # before the end of the `canbus_link_timer` (5s by default). + # CAN frames sending will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) before the end of the `canbus_link_timer` (5s by default). + canbus_link_timer_enabled: 'true' # Set it to 'false' if your inverter/charger is not sending ACK (can_id 0x305) every `1s` as specified by the protocol canbus_link_timer: '5s' canbus_extended_ack: 'false' # Set to 'true' for enable extended 29-bit IDs (required for Schneider XW Pro) diff --git a/YamBMS_RP_BMS_PACE_RS485_Modbus.yaml b/YamBMS_RP_BMS_PACE_RS485_Modbus.yaml index 8cd4dd6..fe4596d 100644 --- a/YamBMS_RP_BMS_PACE_RS485_Modbus.yaml +++ b/YamBMS_RP_BMS_PACE_RS485_Modbus.yaml @@ -305,8 +305,8 @@ packages: canbus_name: 'CANBUS 1' canbus_node_id: 'canbus_inverter_1' # CAN bus node to which your inverter is connected canbus_status_led_id: 'esp_light' # LED used to show status; default = esp_light, comment out to disable - # The CAN bus link will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) - # before the end of the `canbus_link_timer` (5s by default). + # CAN frames sending will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) before the end of the `canbus_link_timer` (5s by default). + canbus_link_timer_enabled: 'true' # Set it to 'false' if your inverter/charger is not sending ACK (can_id 0x305) every `1s` as specified by the protocol canbus_link_timer: '5s' canbus_extended_ack: 'false' # Set to 'true' for enable extended 29-bit IDs (required for Schneider XW Pro) diff --git a/YamBMS_RP_BMS_SEPLOS_V1_V2_RS485_Modbus.yaml b/YamBMS_RP_BMS_SEPLOS_V1_V2_RS485_Modbus.yaml index 781c85d..adadaa1 100644 --- a/YamBMS_RP_BMS_SEPLOS_V1_V2_RS485_Modbus.yaml +++ b/YamBMS_RP_BMS_SEPLOS_V1_V2_RS485_Modbus.yaml @@ -341,8 +341,8 @@ packages: canbus_name: 'CANBUS 1' canbus_node_id: 'canbus_inverter_1' # CAN bus node to which your inverter is connected canbus_status_led_id: 'esp_light' # LED used to show status; default = esp_light, comment out to disable - # The CAN bus link will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) - # before the end of the `canbus_link_timer` (5s by default). + # CAN frames sending will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) before the end of the `canbus_link_timer` (5s by default). + canbus_link_timer_enabled: 'true' # Set it to 'false' if your inverter/charger is not sending ACK (can_id 0x305) every `1s` as specified by the protocol canbus_link_timer: '5s' canbus_extended_ack: 'false' # Set to 'true' for enable extended 29-bit IDs (required for Schneider XW Pro) diff --git a/YamBMS_RP_BMS_SEPLOS_V3_RS485_Modbus_sniffer.yaml b/YamBMS_RP_BMS_SEPLOS_V3_RS485_Modbus_sniffer.yaml index 7d1e65f..519baab 100644 --- a/YamBMS_RP_BMS_SEPLOS_V3_RS485_Modbus_sniffer.yaml +++ b/YamBMS_RP_BMS_SEPLOS_V3_RS485_Modbus_sniffer.yaml @@ -340,8 +340,8 @@ packages: canbus_name: 'CANBUS 1' canbus_node_id: 'canbus_inverter_1' # CAN bus node to which your inverter is connected canbus_status_led_id: 'esp_light' # LED used to show status; default = esp_light, comment out to disable - # The CAN bus link will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) - # before the end of the `canbus_link_timer` (5s by default). + # CAN frames sending will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) before the end of the `canbus_link_timer` (5s by default). + canbus_link_timer_enabled: 'true' # Set it to 'false' if your inverter/charger is not sending ACK (can_id 0x305) every `1s` as specified by the protocol canbus_link_timer: '5s' canbus_extended_ack: 'false' # Set to 'true' for enable extended 29-bit IDs (required for Schneider XW Pro) diff --git a/YamBMS_RP_Balancer.yaml b/YamBMS_RP_Balancer.yaml index f0682a7..b167587 100644 --- a/YamBMS_RP_Balancer.yaml +++ b/YamBMS_RP_Balancer.yaml @@ -323,8 +323,8 @@ packages: canbus_name: 'CANBUS 1' canbus_node_id: 'canbus_inverter_1' # CAN bus node to which your inverter is connected canbus_status_led_id: 'esp_light' # LED used to show status; default = esp_light, comment out to disable - # The CAN bus link will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) - # before the end of the `canbus_link_timer` (5s by default). + # CAN frames sending will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) before the end of the `canbus_link_timer` (5s by default). + canbus_link_timer_enabled: 'true' # Set it to 'false' if your inverter/charger is not sending ACK (can_id 0x305) every `1s` as specified by the protocol canbus_link_timer: '5s' canbus_extended_ack: 'false' # Set to 'true' for enable extended 29-bit IDs (required for Schneider XW Pro) diff --git a/YamBMS_RP_DEMO.yaml b/YamBMS_RP_DEMO.yaml index c84dec7..932dc54 100644 --- a/YamBMS_RP_DEMO.yaml +++ b/YamBMS_RP_DEMO.yaml @@ -355,8 +355,8 @@ packages: canbus_name: 'CANBUS 1' canbus_node_id: 'canbus_inverter_1' # CAN bus node to which your inverter is connected canbus_status_led_id: 'esp_light' # LED used to show status; default = esp_light, comment out to disable - # The CAN bus link will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) - # before the end of the `canbus_link_timer` (5s by default). + # CAN frames sending will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) before the end of the `canbus_link_timer` (5s by default). + canbus_link_timer_enabled: 'true' # Set it to 'false' if your inverter/charger is not sending ACK (can_id 0x305) every `1s` as specified by the protocol canbus_link_timer: '5s' canbus_extended_ack: 'false' # Set to 'true' for enable extended 29-bit IDs (required for Schneider XW Pro) diff --git a/YamBMS_RP_Ethernet_board.yaml b/YamBMS_RP_Ethernet_board.yaml index 2065b78..cf48397 100644 --- a/YamBMS_RP_Ethernet_board.yaml +++ b/YamBMS_RP_Ethernet_board.yaml @@ -253,8 +253,8 @@ packages: canbus_name: 'CANBUS 1' canbus_node_id: 'canbus_inverter_1' # CAN bus node to which your inverter is connected canbus_status_led_id: 'esp_light' # LED used to show status; default = esp_light, comment out to disable - # The CAN bus link will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) - # before the end of the `canbus_link_timer` (5s by default). + # CAN frames sending will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) before the end of the `canbus_link_timer` (5s by default). + canbus_link_timer_enabled: 'true' # Set it to 'false' if your inverter/charger is not sending ACK (can_id 0x305) every `1s` as specified by the protocol canbus_link_timer: '5s' canbus_extended_ack: 'false' # Set to 'true' for enable extended 29-bit IDs (required for Schneider XW Pro) diff --git a/YamBMS_RP_PVbrain2.yaml b/YamBMS_RP_PVbrain2.yaml index 1dd20e0..56bdfa0 100644 --- a/YamBMS_RP_PVbrain2.yaml +++ b/YamBMS_RP_PVbrain2.yaml @@ -264,8 +264,8 @@ packages: canbus_name: 'CANBUS 1' canbus_node_id: 'canbus_inverter_1' # CAN bus node to which your inverter is connected canbus_status_led_id: 'esp_light' # LED used to show status; default = esp_light, comment out to disable - # The CAN bus link will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) - # before the end of the `canbus_link_timer` (5s by default). + # CAN frames sending will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) before the end of the `canbus_link_timer` (5s by default). + canbus_link_timer_enabled: 'true' # Set it to 'false' if your inverter/charger is not sending ACK (can_id 0x305) every `1s` as specified by the protocol canbus_link_timer: '5s' canbus_extended_ack: 'false' # Set to 'true' for enable extended 29-bit IDs (required for Schneider XW Pro) diff --git a/YamBMS_Remote_Packages_example.yaml b/YamBMS_Remote_Packages_example.yaml index d630a0c..c15f7a0 100644 --- a/YamBMS_Remote_Packages_example.yaml +++ b/YamBMS_Remote_Packages_example.yaml @@ -285,8 +285,8 @@ packages: canbus_name: 'CANBUS 1' canbus_node_id: 'canbus_inverter_1' # CAN bus node to which your inverter is connected canbus_status_led_id: 'esp_light' # LED used to show status; default = esp_light, comment out to disable - # The CAN bus link will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) - # before the end of the `canbus_link_timer` (5s by default). + # CAN frames sending will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) before the end of the `canbus_link_timer` (5s by default). + canbus_link_timer_enabled: 'true' # Set it to 'false' if your inverter/charger is not sending ACK (can_id 0x305) every `1s` as specified by the protocol canbus_link_timer: '5s' canbus_extended_ack: 'false' # Set to 'true' for enable extended 29-bit IDs (required for Schneider XW Pro) diff --git a/YamBMS_Remote_Packages_example_dev_branch.yaml b/YamBMS_Remote_Packages_example_dev_branch.yaml index 684bc42..715bbb4 100644 --- a/YamBMS_Remote_Packages_example_dev_branch.yaml +++ b/YamBMS_Remote_Packages_example_dev_branch.yaml @@ -285,8 +285,8 @@ packages: canbus_name: 'CANBUS 1' canbus_node_id: 'canbus_inverter_1' # CAN bus node to which your inverter is connected canbus_status_led_id: 'esp_light' # LED used to show status; default = esp_light, comment out to disable - # The CAN bus link will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) - # before the end of the `canbus_link_timer` (5s by default). + # CAN frames sending will be paused for `30s` if the inverter does not respond with an ACK (can_id 0x305) before the end of the `canbus_link_timer` (5s by default). + canbus_link_timer_enabled: 'true' # Set it to 'false' if your inverter/charger is not sending ACK (can_id 0x305) every `1s` as specified by the protocol canbus_link_timer: '5s' canbus_extended_ack: 'false' # Set to 'true' for enable extended 29-bit IDs (required for Schneider XW Pro) diff --git a/packages/yambms/yambms_canbus.yaml b/packages/yambms/yambms_canbus.yaml index 1886002..e943105 100644 --- a/packages/yambms/yambms_canbus.yaml +++ b/packages/yambms/yambms_canbus.yaml @@ -1,5 +1,5 @@ -# Updated : 2026.06.27 -# Version : 2.5.6 +# Updated : 2026.06.28 +# Version : 2.5.7 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -19,6 +19,7 @@ substitutions: canbus_status_led_id: "virtual_status_light" # The ID of the LED on your board used for this component + canbus_link_timer_enabled: 'true' # Set it to 'false' if your inverter/charger is not sending ACK (can_id 0x305) every `1s` as specified by the protocol canbus_extended_ack: 'false' # Set to 'true' for enable extended 29-bit IDs for the ACK can_id 0x305 (required for Schneider XW Pro) esphome: @@ -152,9 +153,12 @@ script: then: - delay: ${canbus_link_timer} - lambda: |- - id(canbus${canbus_id}_send_canbus_data) = false; // Stop sending CANBUS datas - id(canbus${canbus_id}_status).publish_state(false); // Set CANBUS status to OFF - id(inverter_com_status).publish_state(false); // Set Inverter com. status to OFF + if (${canbus_link_timer_enabled} == true) + { + id(canbus${canbus_id}_send_canbus_data) = false; // Stop sending CANBUS frames + id(canbus${canbus_id}_status).publish_state(false); // Set CANBUS status to OFF + id(inverter_com_status).publish_state(false); // Set Inverter com. status to OFF + } # +--------------------------------------+ # | Start CAN Handling | @@ -170,14 +174,16 @@ canbus: - lambda: |- id(canbus${canbus_id}_script_canbus_link_timer).execute(); // Restart CANBUS link timer - if (id(canbus${canbus_id}_status).state == false) { + if (id(canbus${canbus_id}_status).state == false) + { id(canbus${canbus_id}_send_canbus_data) = true; // Sending CANBUS frames allowed id(canbus${canbus_id}_status).publish_state(true); // Set CANBUS status to ON id(inverter_com_status).publish_state(true); // Set Inverter com. status to ON } // Inverter ACK interval - if (id(canbus${canbus_id}_switch_inverter_heartbeat_monitoring).state) { + if (id(canbus${canbus_id}_switch_inverter_heartbeat_monitoring).state) + { uint32_t inverter_ack_ms_current = millis(); uint32_t inverter_ack_interval_ms = (inverter_ack_ms_current - id(canbus${canbus_id}_inverter_ack_ms_previous)); id(canbus${canbus_id}_inverter_ack_ms_previous) = inverter_ack_ms_current;