Commit graph

46 commits

Author SHA1 Message Date
jan iversen
286c98d70f
Modbus, allow received int to be a float. (#110648) 2024-02-15 18:22:23 +01:00
jan iversen
543870d5f1
Correct modbus commit validation, too strict on integers (#109338) 2024-02-02 09:46:53 +01:00
jan iversen
3cc5ffaa4b
Replace modbus number_validator by HA standard (#108939) 2024-01-27 16:39:33 +01:00
jan iversen
d8f16c14ab
Get modbus coverage back to 100% (#108734)
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-01-23 21:50:25 +01:00
jan iversen
40d4061fc5
Only set precision in modbus if not configured. (#106952)
Only set precision if not configured.
2024-01-03 13:42:55 +01:00
jan iversen
0638088aee
Deprecate and remove lazy_error from modbus (#105037) 2023-12-05 13:08:33 +01:00
jan iversen
1629bdcd7f
Remove "swap: none" from modbus (#104713) 2023-12-04 14:48:40 +01:00
jan iversen
3bb23a6d88
Correct process_raw_value for modbus sensor (#102032) 2023-10-18 17:25:57 +02:00
jan iversen
ec2364ef43
Add virtual_count == slave_count in modbus configuration (#100398)
* Add virtual_count as config parameter.

* Review (other PR) comments.

* Review.

* Review comment.
2023-09-15 14:00:02 +02:00
jan iversen
c173ebd11a
Add device_address to modbus configuration (#100399) 2023-09-15 13:49:33 +02:00
jan iversen
c178388956
Remove modbus pragma no cover and solve nan (#99221)
* Remove pragma no cover.

* Ruff !

* Review comments.

* update test.

* Review.

* review.

* Add slave test.
2023-09-12 16:05:59 +02:00
jan iversen
9acca1bf58
Make modbus retry fast on read errors (#99576)
* Fast retry on read errors.

* Review comments.
2023-09-12 10:01:15 -04:00
jan iversen
77180a73b7
Modbus scale parameter cuts decimals (#99758) 2023-09-07 20:56:00 +02:00
jan iversen
d19f617c25
Modbus switch, allow restore "unknown" (#99533) 2023-09-03 17:48:25 +02:00
jan iversen
c94d4f501b
Read modbus data before scan_interval (#99243)
Read before scan_interval.
2023-09-03 17:13:49 +02:00
jan iversen
a3b526eef6
Address late modbus review (#99123)
Post review comments.
2023-08-28 09:07:31 +02:00
jan iversen
c268adb07e
modbus: Repair swap for slaves (#97960) 2023-08-18 13:23:04 +02:00
String-656
56dd88db17
Replace Float 'nan' with None for modbus floats (#93832)
Co-authored-by: jan iversen <jancasacondor@gmail.com>
2023-08-06 14:26:56 +02:00
Johannes Wagner
c4a5373976
Handle explicit Modbus NaN values (#90800)
Co-authored-by: jan iversen <jancasacondor@gmail.com>
2023-08-06 13:47:54 +02:00
jan iversen
bbc34bae87
modbus: use pb not pymodbus consistently as name. (#97780)
Use pb not pymodbus consistently as name.
2023-08-04 20:14:32 +02:00
GrahamJB1
8bff95014c
Add modbus min/max values (#86131)
* modbus min/max values
Co-authored-by: jan iversen <jancasacondor@gmail.com>
2023-02-02 22:29:03 +01:00
Franck Nijhof
baef267f33
String formatting and max line length - Part 3 (#84394) 2022-12-22 13:35:47 +01:00
jan iversen
0f580af1d3
Correct switch verify to handle discret_read in Modbus (#66890) 2022-02-21 19:15:03 +01:00
Tathar
16e5d7abe1
Add unique_id to modbus entities (#64634)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-01-26 10:37:15 +01:00
Marc Mueller
887d04be60
Use assignment expressions 32 (#58716) 2021-10-30 16:30:13 +02:00
jan iversen
cca7da77ad
Report modbus buffer too small or too big to unpack (#57838) 2021-10-20 15:22:01 -07:00
jan iversen
4417ffb407
COnvert DATA_TYPE to enum. (#57699) 2021-10-15 07:09:59 +02:00
Marc Mueller
d51487f82a
Import Callable from collections.abc (3) (#56777) 2021-09-29 16:19:06 +02:00
jan iversen
a84e86ff13
Strictly type modbus base_platform.py (#56343) 2021-09-20 14:59:30 +02:00
jan iversen
6947912fa9
Modbus entity update does not occur until after scan_interval (#56221)
* Secure update is called when integration is started.

* Review comments.

* Update homeassistant/components/modbus/base_platform.py

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>

* Update homeassistant/components/modbus/base_platform.py

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-09-18 08:57:27 +02:00
jan iversen
aaa62dadec
Add service to stop/restart modbus (#55599)
* Add service to stop/restart modbus.

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-09-14 09:42:50 +02:00
jan iversen
d60f5e1721
Add missing convert to fan/light/switch modbus platform (#55203) 2021-08-25 21:02:06 +02:00
jan iversen
d4064e7044
Cancel entity timers. (#55141) 2021-08-25 14:49:37 +02:00
jan iversen
33f660118f
Add lazy_error_count to modbus (#54412)
* Add lazy_error_count.

* Use -=

* Review comments.
2021-08-21 15:49:50 +02:00
jan iversen
bec42b74fe
Solve switch/verify register type convert problem in modbus (#54645) 2021-08-15 19:57:37 -07:00
jan iversen
02459e6813
Convert last properties in modbus to _attr_variable (#53919) 2021-08-08 23:23:21 +02:00
jan iversen
b2fffdd13e
Add temporary fix to modbus to solve upstream problem (#53857) 2021-08-04 17:03:31 -07:00
Marc Mueller
0815eede4b
Replace lists with tuples (2) (#53685) 2021-07-30 01:20:03 +02:00
jan iversen
cfb0def718
Change integration modbus to use _attr variables (#53511) 2021-07-26 21:20:34 +02:00
jan iversen
2e2b340b1e
Set modbus entity to non-available unless scan_interval=0 (#53155) 2021-07-20 22:48:02 -07:00
jan iversen
19a282255b
Remove duplicate functions in modbus climate/sensor. (#53141)
Convert all data types correctly for climate.
2021-07-19 23:52:58 -05:00
jan iversen
12ac666459
only allow one active call in each platform. (#52823) 2021-07-13 21:45:42 +02:00
jan iversen
646862ec96
Add array write to turn_on/off in modbus switch/fan/light (#52582) 2021-07-12 11:22:53 -07:00
jan iversen
8721675218
Use BaseSwitch class in modbus switch/fan/light (#51031) 2021-05-24 20:13:25 +02:00
jan iversen
be13a73db8
Allow manual scan and add delay in switch verify. (#50974) 2021-05-24 12:59:55 +02:00
jan iversen
c650deef98
Add base class for all modbus platforms (#50878)
* Add base for all platforms.

* Please pylint.
2021-05-20 16:56:11 +02:00