Commit Graph

51 Commits

Author SHA1 Message Date
NewoPL
0cdd0b295e
fix: modbus_textsensor response is too long in some cases (#6333) 2024-03-11 11:15:32 +13:00
Tercio Filho
bf5352b44e
Modbus Controller added some features (#5318) 2023-09-13 10:15:01 +12:00
Samuel Sieb
4141100b1c
fix modbus sending FP32_R values (#4882) 2023-05-23 15:00:33 -07:00
Regev Brody
36c0e2416d
add select_schema to select component (#4545)
* add select_schema to select component

* add select_schema to select component

* fix cr
2023-03-26 20:01:35 +00:00
GitforZhangXL
86407b9f6f
Change variable "skip_updates" and "skip_updates_counter" type from "uint8_t" to "uint16_t" (#4487)
* change 'skip_updates'from 'uint8' to 'uint16_t'

* Delete modbus_controller_fix.md

* Update modbus_controller.h

---------

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2023-02-26 22:35:00 +00:00
Jesse Hills
50fbbf2d3b
Move remaining SENSOR_SCHEMA to use sensor_schema() (#4471) 2023-02-20 03:22:37 +00:00
Regev Brody
e68beb8a43
add SUB_NUMBER macro and schema to number (#4449)
* add SUB_NUMBER macro and schema

* add SUB_NUMBER macro and schema

* add SUB_NUMBER macro and schema
2023-02-19 19:54:00 +00:00
Javier Peletier
d706f40ce1
modbus_switch: honor switch:restore_mode (#4122) 2022-11-30 10:44:31 +13:00
Javier Peletier
c55e01ff3f
FIX: Unnecessary flash writes by ModbusSwitch component (#3648) 2022-11-30 10:05:40 +13:00
Jesse Hills
9273e3775b
Add vector includes (#4080) 2022-11-24 13:12:55 +13:00
Jesse Hills
b184b01600
Remove a bunch of unnecessary pylint disabling (#4079) 2022-11-24 11:09:19 +13:00
Sergey Dudanov
71387be72e
Modbus QWORD fix (#3856) 2022-10-13 12:50:45 +13:00
Avirsaam
219c5953f1
Update modbus_controller.cpp (#3768) 2022-09-05 12:50:27 +12:00
Jesse Hills
4d66fab360
Tidy up switch schemas (#3754) 2022-08-31 13:43:46 +12:00
Javier Peletier
d10300c330
modbus: fix queue deduplicator erasing custom commands (#3650) 2022-07-25 08:06:18 +12:00
André Klitzing
72cce391ab
Fix some typos found by codespell (#3598) 2022-06-27 18:02:46 -03:00
Guillermo Ruffino
05dc97099a
New vscode schema gen (#3336) 2022-04-03 19:30:22 +12:00
Jesse Hills
7f7175b184
Publish custom data when modbus number lambda fills vector (#3295) 2022-03-29 22:22:11 +13:00
Jesse Hills
0372d17a11
Allow custom register type for modbus number (#3202) 2022-03-16 13:43:05 +13:00
stegm
aafdfa933e
Add optimistic config flag to modbus select. (#3267) 2022-03-10 08:40:43 +13:00
Jesse Hills
7a242bb4ed
Binary Sensor codegen tidyup (#3217) 2022-02-18 10:39:59 +13:00
Jesse Hills
88d72f8c9a
Fix files CI after merging (#3175) 2022-02-09 08:04:44 +13:00
stegm
58fa63ad88
Add Select for modbus (#3032)
Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl>
2022-02-08 22:27:22 +13:00
Jesse Hills
69856286e8
Text sensor schema generator similar to sensor (#3172) 2022-02-08 17:23:45 +13:00
Oxan van Leeuwen
80d03a631e
Force braces around multi-line statements (#3094)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2022-01-25 08:56:36 +13:00
Martin
6b27f2d2cf
Remove unused polling_component_schema from modbus number (#3108) 2022-01-25 08:44:20 +13:00
Oxan van Leeuwen
97681d142e
Enable readability-redundant-access-specifiers check (#3096)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2022-01-23 20:47:22 +13:00
Oxan van Leeuwen
b2430097f2
Enable readability-named-parameter check (#3098)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2022-01-23 20:39:07 +13:00
Oxan van Leeuwen
7da12a878f
Enable readability-redundant-member-init check (#3097) 2022-01-23 20:34:43 +13:00
Oxan van Leeuwen
a31700e16f
Enable readability-qualified-auto check (#3095) 2022-01-23 20:29:58 +13:00
Martin
434ab65c16
[modbus_controller] fix incorrect start address for number write (#3073) 2022-01-20 09:19:24 +13:00
Martin
cdb4fa2487
[modbus_controller] add missing skip_updates (#3063) 2022-01-18 09:05:13 +13:00
Martin
56547b3d50
[Modbus_controller] Fix duplicate cmd check (#3031) 2022-01-12 16:38:13 +13:00
Martin
e55bd1e559
[Modbus_controller] Fix binary sensor lambda (#3020) 2022-01-10 12:29:29 +13:00
stegm
e4555f6997
Fix register ranges in modbus controller (#2981) 2022-01-09 16:24:23 +01:00
stegm
84a830195f
Fix offset bug in modbus text sensor. (#3006) 2022-01-06 16:40:22 +01:00
Martin
b924b179ab
Modbus: add binary output (#2931)
Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl>
2022-01-04 10:19:18 +01:00
Martin
1fb0a7109d
Modbus: use multiply for publishing number (#2916) 2021-12-15 22:38:23 +13:00
Jesse Hills
4e10881331
Log the actual value in modbus number (#2901) 2021-12-13 10:28:19 +13:00
Oxan van Leeuwen
beeb0c7c5a
Introduce hex parsing & formatting helper functions (#2882) 2021-12-13 09:15:23 +13:00
Guillermo Ruffino
c490388e80
Modbus number/output use write single (#2896)
Co-authored-by: Martin <25747549+martgras@users.noreply.github.com>
2021-12-10 09:44:43 +13:00
Jesse Hills
24ec5a6e9d
Fix published state for modbus number (#2894) 2021-12-10 09:32:34 +13:00
Martin
9ca4e8f32a
modbus_controller: bugfix: enable overriding calculated register size (#2845)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2021-12-02 15:45:11 +13:00
Oxan van Leeuwen
607601b3a4
Enable a bunch of clang-tidy checks (#2149) 2021-12-02 09:03:51 +13:00
Martin
17a37b1de9
Modbus_controller: Add custom command. (#2680) 2021-11-26 12:48:52 +13:00
Jesse Hills
7333123ba4
Fix indentation of write_lambda for modbus_controller number (#2722) 2021-11-15 10:59:48 +13:00
Martin
662773b075
modbus_controller: remove hard coded register size (#2654) 2021-11-10 16:24:44 +13:00
Martin
2f85c27a05
fix modbus output (#2630) 2021-10-26 11:30:25 +02:00
Martin
6beb9e568a
Fix bug in register name definition (#2526) 2021-10-15 20:27:56 +13:00
Oxan van Leeuwen
1031ea4313
Fix line endings normalization (#2407)
* Strip CRLF line endings from modbus controller files

* Normalize all line endings to LF
2021-09-30 18:07:28 +02:00