Compliance with esphome PR_11969 (modbus send_wait_time)

This commit is contained in:
Sleeper85 committed 2026-07-11 00:05:53 +02:00
1 parent 7df415153b
commit 8439fd6ffc
5 files changed
+11 -103

No files matched your search

@@ -1,27 +0,0 @@
# Updated : 2026.02.06
# Version : 1.1.1
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
# This YAML is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation, either version 3
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
external_components:
- source: github://pr#12614
components: [uart, modbus, modbus_controller, modbus_server]
refresh: 1h
modbus:
- id: !extend ${modbus_id}
send_wait_time: !remove # this option remains valid but with a new default time
@@ -1,22 +0,0 @@
# Updated : 2026.02.06
# Version : 1.1.1
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
# This YAML is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation, either version 3
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
modbus_controller:
- id: !extend modbus_controller_${device_type}${device_id}
command_throttle: !remove
+3 -3
View File
@@ -1,5 +1,5 @@
# Updated : 2026.02.06
# Version : 1.1.2
# Updated : 2026.07.10
# Version : 1.1.3
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -24,7 +24,7 @@ substitutions:
modbus_baud_rate: '19200' # 9600 / 19200 / 115200
# Modbus
modbus_id: '1'
modbus_send_wait_time: '250ms' # time in milliseconds before the next ModBUS command is sent if an answer from a previous command is pending
modbus_send_wait_time: '2000ms' # time in milliseconds before the next ModBUS command is sent if an answer from a previous command is pending (default value from ESPHome PR #11969)
# Modbus Controller
modbus_update_interval: '5s' # frequency with which BMS/Shunt modbus servers are queried
modbus_command_throttle: '0ms' # minimum time in between 2 requests to the device
@@ -1,42 +0,0 @@
# Updated : 2026.01.15
# Version : 1.1.4
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
# This YAML is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation, either version 3
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
external_components:
- source: github://pr#12614
components: [uart, modbus, modbus_controller, modbus_server]
refresh: 1h
# The settings below can be changed via `vars` when importing the package
# or by declaring new `substitutions` in the main YAML.
substitutions:
# UART
modbus_baud_rate: '19200' # 9600 / 19200 / 115200
# Modbus
modbus_id: 'modbus_1'
# Modbus Controller
modbus_update_interval: '5s' # frequency with which BMS/Shunt modbus servers are queried
uart:
- id: !extend ${modbus_uart_id}
baud_rate: ${modbus_baud_rate}
modbus:
- uart_id: ${modbus_uart_id}
id: ${modbus_id}
role: ${modbus_role}
@@ -1,5 +1,5 @@
# Updated : 2025.08.02
# Version : 1.1.1
# Updated : 2026.07.10
# Version : 1.1.3
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -21,16 +21,15 @@
# or by declaring new `substitutions` in the main YAML.
substitutions:
# UART
modbus_baud_rate: '19200' # 9600 / 19200 / 115200
modbus_baud_rate: '19200' # 9600 / 19200 / 115200
# Modbus
modbus_id: 'modbus_1'
modbus_send_wait_time: '250ms' # time in milliseconds before the next ModBUS command is sent if an answer from a previous command is pending
# Modbus Controller
modbus_update_interval: '5s' # frequency with which BMS/Shunt modbus servers are queried
modbus_command_throttle: '0ms' # minimum time in between 2 requests to the device
modbus_id: '1'
modbus_send_wait_time: '2000ms' # time in milliseconds before the next ModBUS command is sent if an answer from a previous command is pending (default value from ESPHome PR #11969) # Modbus Controller
modbus_update_interval: '5s' # frequency with which BMS/Shunt modbus servers are queried
modbus_command_throttle: '0ms' # minimum time in between 2 requests to the device
modbus:
- uart_id: ${modbus_uart_id}
id: ${modbus_id}
id: modbus_${modbus_role}_${modbus_id}
role: ${modbus_role}
send_wait_time: ${modbus_send_wait_time}