Releases: pymodbus-dev/homeassistant_modbus
Branch p10 (Sensor caused hanging call_later method).
Waiting on active PR before submitting this PR.
Sensor cleared _cancel_call, which are used in modbus.py to cleanup in case of a stop/hold/restart
Branch p9 (add async_will_remove_from_hass() to do cleanup).
Waiting on active PR before submitting this PR.
Current implementation do not cleanup tasks/timers for entities, when the integration is stopped/reloaded, depending on the time this can lead to "unavailable" being set for an otherwise ok entity (In case the connection is closed, when the entity is updated).
This PR ensures that all entities cancels all ongoing activities when being stopped (not the same as being disabled).
Branch p8 (Avoid duplicate updates).
Waiting on active PR before submitting this PR.
The current implementation schedules an update at a fixed time interval (scan_interval), this leads to a couple of problems:
In case of reconnecting the updates stack up, and are executed fast (without the configured delay) when the connection is established, which will cause problem in many devices, and most surely will cause a spike in the statistics.
If a device is slow to respond, the scan_interval is not waited, which can lead to bad responses from the device.
This PR secures that each update is done at MINIMUM (might be more due to reconnect) scan_interval.
Branch P7 (Remove unused variable).
Waiting on active PR before submitting this PR.
variable in_error is no longer used, and removed.
Branch P6 (Retry primary connect).
Waiting on active PR before submitting this PR.
The current implementation only makes a primary connect once, if that fails no connection will ever be made, until the integration is reloaded.
This PR retries the primary connect every 60 seconds, until a connection is made, once connected reconnects are handled automatically in the library.
Branch P5 (Do not start update process until connection+delay).
Branch P4 (Delay start after connection is made).
Modbus HA 2025.8.1 as custom component.
v1.0.0 Make custom component.
modbus HA dev 2025/8/15 as custom component.
Changes to use Pymodbus 3.9.2.