2cb987095d
[modbus] Share helper functions across modbus components - part B ( #14172 )
...
Co-authored-by: J. Nick Koston <nick+github@koston.org >
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2026-03-31 10:48:16 -10:00
Jonathan Swoboda
53b2a03c80
[multiple] Fix -Wformat and -Wextra warnings across 33 component files ( #15321 )
2026-03-30 18:56:05 -04:00
Bonne Eggleston and J. Nick Koston
31574a427b
[modbus] Share helper functions across modbus components - part A ( #15291 )
...
Co-authored-by: J. Nick Koston <nick@home-assistant.io >
2026-03-30 06:56:47 -10:00
J. Nick Koston
7f500c4b6e
[modbus] Fix size_t format warning in clear_rx_buffer_ ( #15002 )
2026-03-20 15:08:46 -10:00
Adam DeMuri and J. Nick Koston
8a5f008aee
[modbus] Fix buffer overflow in modbus ( #14719 )
...
Co-authored-by: J. Nick Koston <nick@home-assistant.io >
2026-03-11 22:00:26 -10:00
J. Nick Koston and Clyde Stubbs
88536ff72b
[modbus] Fix timeout for non-hardware UARTs (e.g., USB UART) ( #14614 )
...
Co-authored-by: Clyde Stubbs <2366188+clydebarrow@users.noreply.github.com >
2026-03-08 14:31:42 -10:00
b0be02e16d
[modbus] Fix timing bugs and better adhere to spec ( #8032 )
...
Co-authored-by: brambo123 <52667932+brambo123@users.noreply.github.com >
Co-authored-by: Keith Burzinski <kbx81x@gmail.com >
Co-authored-by: J. Nick Koston <nick@koston.org >
Co-authored-by: J. Nick Koston <nick+github@koston.org >
Co-authored-by: J. Nick Koston <nick@home-assistant.io >
2026-03-05 20:54:17 +00:00
Jonathan Swoboda and Claude Opus 4.6
dcbb020479
[uart] Fix available() return type to size_t across components ( #13898 )
...
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-09 20:02:41 -05:00
J. Nick Koston
cd55eb927d
[modbus] Batch UART reads to reduce loop overhead ( #13822 )
2026-02-09 12:21:15 -06:00
J. Nick Koston
c43d3889b0
[modbus] Use stack buffer instead of heap vector in send() ( #13853 )
2026-02-09 12:07:42 -06:00
J. Nick Koston
a5368d1d95
[modbus] Combine log statements to reduce loop blocking ( #12910 )
2026-01-04 11:54:47 -10:00
J. Nick Koston
b5188731f8
[modbus] Use stack buffer for hex formatting in verbose logging ( #12780 )
2026-01-01 20:10:45 -10:00
0fe6e7169c
[modbus_controller] courtesy response ( #10027 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-10-08 16:40:49 +13:00
Javier Peletier
35de36d690
[modbus] Modbus server role: write holding registers ( #9156 )
2025-07-01 15:39:06 +12:00
Javier Peletier
2df0ebd895
[modbus_controller] Fix modbus read_lambda precision for non-floats or large integers ( #9159 )
2025-06-25 11:31:23 +12:00
487e1f871f
use `encode_uintXX` ( #8847 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-06-11 17:06:45 +12:00
J. Nick Koston
c0b05ada1a
Reduce ESP_LOGCONFIG calls ( #9026 )
2025-06-09 00:02:30 +00:00
gotnone and Stanley Pinchak
0b1c5b825e
[modbus] [modbus_controller] Fix server role read coil 0x1 crc ( #8859 )
...
Co-authored-by: Stanley Pinchak <stanley.pinchak@gmail.com >
2025-05-29 17:12:58 +12:00
J. Nick Koston
574aabdede
Reduce number of calls to fetch time in the main loop ( #8804 )
2025-05-19 07:48:57 +12:00
dependabot[bot]
4adda632bb
Bump ruff from 0.9.2 to 0.11.0 ( #8409 )
2025-03-20 09:51:23 -10:00
Samuel Sieb and Samuel Sieb
e3e3d92347
fix modbus crashing when bad data returned ( #7810 )
...
Co-authored-by: Samuel Sieb <samuel@sieb.net >
2024-11-25 09:42:46 +13:00
Bonne Eggleston
aa0e155e22
Fixes modbus timing error ( #7674 )
2024-10-29 16:52:39 +13:00
1ca7c2d7dd
Add support for acting as Modbus server ( #4874 )
...
Co-authored-by: Jeroen van Oort <jeroen.vanoort@webparking.nl >
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2024-05-22 16:17:32 +12:00
Jan Grewe and Jesse Hills
f2df542cb1
Allow ignoring of failed Modbus response CRC ( #3930 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2022-12-22 20:14:11 +13:00
Jesse Hills
9273e3775b
Add vector includes ( #4080 )
2022-11-24 13:12:55 +13:00
Jesse Hills
c317422ed7
Move crc16 to helpers ( #3780 )
2022-09-06 12:57:21 +12:00
André Klitzing
72cce391ab
Fix some typos found by codespell ( #3598 )
2022-06-27 18:02:46 -03:00
gazoodle
29d6d0a906
Fix modbus user-defined function handling ( #3527 )
2022-06-17 13:35:25 +12:00
gazoodle
4f52d43347
add support user-defined modbus functions ( #3461 )
2022-05-19 12:49:12 +12:00
Martin
45ebe51e4f
Modbus: fix response parsing error for coil write ( #2986 )
2022-01-03 18:28:28 +01:00
Oxan van Leeuwen
beeb0c7c5a
Introduce hex parsing & formatting helper functions ( #2882 )
2021-12-13 09:15:23 +13:00
Martin
81c11ba1f7
relax max entities checking ( #2629 )
2021-10-26 08:53:47 +13:00
Martin
f5441a87e3
ignore exception when not waiting for a response ( #2552 )
2021-10-20 10:10:24 +13:00
Martin and Jesse Hills
7672ba2c8d
Modbus controller ( #1779 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2021-09-27 09:27:24 +13:00
Stefan Agner
501f88ca86
Avoid non-const globals and enable clang-tidy check ( #1892 )
2021-06-11 08:19:44 +12:00
Samuel Sieb
7bc51582f0
make crc16 function accessible ( #1857 )
2021-06-03 16:13:42 +12:00
Jesse Hills
9a2cd71571
Don't check uart settings for modbus ( #1850 )
2021-06-01 09:57:03 +12:00
polyfaces and Jesse Hills
bb759d52c8
Add support for SDMXXX energy meters ( #1260 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2021-05-31 16:05:49 +12:00
Otto Winter
a33bb32874
Convert components to async-def syntax ( #1823 )
...
* Convert components to async-def syntax
* Remove stray @coroutine
* Manual part
* Convert complexer components code to async-def
* Manual cleanup
* More manual cleanup
2021-05-24 21:45:31 +02:00
Otto Winter
2376a2c941
Convert components to async-def syntax ( #1821 )
2021-05-24 10:58:29 +02:00
Guillermo Ruffino
69879920eb
add-black ( #1593 )
...
* Add black
Update pre commit
Update pre commit
add empty line
* Format with black
2021-03-07 16:03:16 -03:00
Otto Winter and tsunglung
969bdb06ce
Fix modbus register ( #806 )
...
Fixes https://github.com/esphome/feature-requests/issues/49#issuecomment-546555289
Co-Authored-By: tsunglung <tsunglung@users.noreply.github.com >
2019-10-27 12:30:36 +01:00
Otto Winter
3f0503c296
Fix modbus CRC calculation ( #789 )
...
* Fix modbus CRC calculation
Fixes https://github.com/esphome/feature-requests/issues/49#issuecomment-545045776
* Fix
2019-10-22 22:56:34 +02:00
Otto Winter
e077ad56bd
Add PZEM004T/PZEMAC/PZEMDC Support ( #587 )
...
* Add PZEM004T Support
* Don't flush as much
* Update pzem004t.cpp
* Add generalized modbus
* Add PZEMAC
* Add PZEMDC
* Fix file modes
* Lint
* Fix
* Fix
* Add check_uart_settings
2019-10-20 19:24:20 +02:00