Commit graph

208 commits

Author SHA1 Message Date
jan iversen
8741ff0684
Diferentiate between attr_name and entity_id in Modbus tests (#66999) 2022-02-21 14:56:31 -08:00
jan iversen
cb877adb6a
Allow multiread in modbus binary_sensor (#59886) 2022-02-21 10:22:50 -08:00
jan iversen
0f580af1d3
Correct switch verify to handle discret_read in Modbus (#66890) 2022-02-21 19:15:03 +01:00
jan iversen
4ca339c5b1
Set slave default to 0, as already documented in Modbus (#66921) 2022-02-20 11:56:38 +01:00
jan iversen
d76687d672
Add support for INT8 and UINT8 in Modbus (#66889) 2022-02-19 17:17:29 +01:00
Marc Mueller
c46728c2b2
Fix modbus typing (#66872) 2022-02-19 15:48:05 +01:00
uSlackr
b6a3b012bb
Correct modbus address limits (#66367) 2022-02-14 18:17:19 +01:00
J. Nick Koston
5b755b74fb
Add loggers to integration manifest.json (#65083) 2022-01-28 13:37:53 -08: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
Franck Nijhof
176f03d4ac
Allow toggles (switches) state to be None (#64621) 2022-01-23 11:31:01 +01:00
epenet
04d2c6e0bf
Use Platform enum in load_platform (#63903)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-13 10:46:16 +01:00
Marc Mueller
b0f72f59da
Use imports from core (#63458) 2022-01-05 14:55:38 +01:00
Marc Mueller
887d04be60
Use assignment expressions 32 (#58716) 2021-10-30 16:30:13 +02:00
jan iversen
f2a5d92e61
Fix connect_fail test and modbus.py 100% coverage (#57894)
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2021-10-20 15:22:24 -07: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
f92fe38bbd
Change warning to info when modbus is ready (#57953)
* Change warning to info.

* Make level info implicit.
2021-10-18 19:38:33 -07:00
jan iversen
c9f55c01af
Bump pymodbus to 2.5.3. (#57887) 2021-10-17 10:11:28 +02:00
jan iversen
42803e6ac0
Clean startup of modbus by moving service schemas (#57763) 2021-10-15 09:40:27 -07:00
jan iversen
4417ffb407
COnvert DATA_TYPE to enum. (#57699) 2021-10-15 07:09:59 +02:00
Robert Hillis
488a636aec
Clean up unused loggers (#57662) 2021-10-14 10:03:38 -07:00
jan iversen
6a39119ccc
Streamline modbus before 100% coverage. (#57478) 2021-10-11 13:26:36 -05:00
Marc Mueller
d51487f82a
Import Callable from collections.abc (3) (#56777) 2021-09-29 16:19:06 +02:00
jan iversen
6da548b56a
Strictly type modbus cover.py (#56381) 2021-09-27 12:26:25 +02:00
jan iversen
50f97b26eb
Strictly type modbus climate.py (#56380) 2021-09-27 12:25:05 +02:00
jan iversen
1cc850877f
strictly type: fan.py, light.py, switch.py. (#56379) 2021-09-23 18:35:50 +01:00
jan iversen
c7c789f618
Strictly type modbus __init__.py, validator.py (#56378)
* strictly type: __init__.py, validator.py
2021-09-21 13:43:41 +02:00
jan iversen
f3ad4ca0cc
Strictly type modbus.py. (#56375) 2021-09-20 18:47:05 +02:00
jan iversen
a84e86ff13
Strictly type modbus base_platform.py (#56343) 2021-09-20 14:59:30 +02:00
jan iversen
ddd31951bc
Strictly type sensor.py. (#56377) 2021-09-20 07:35:11 +02:00
jan iversen
6b6e26c96d
Strictly type binary_sensor.py. (#56376) 2021-09-18 20:54:11 +01: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
8d4aac618d
Allow same IP if ports are different on modbus (#55766) 2021-09-06 13:40:15 -07:00
jan iversen
cac3e1acfa
Allow same address different register types in modbus (#55767) 2021-09-06 13:35:40 -07:00
jan iversen
69aba2a6a1
Correct duplicate address. (#55578) 2021-09-02 13:53:38 +02:00
jan iversen
f91cc21bbd
Solve modbus shutdown racing condition (#55373) 2021-08-28 23:04:33 +02:00
jan iversen
7ac72ebf38
Add modbus name to log_error (#55336) 2021-08-27 09:26:57 -07:00
Matthias Alphart
cd0ae66d58
Add CONF_STATE_CLASS to sensor/__init__.py (#54106)
* add CONF_STATE_CLASS to const.py

* move to `sensor/__init__.py`

* move to sensor/const.py

* Revert "move to sensor/const.py"

This reverts commit 604d0d066b.

* move it to `sensor/const.py` but import it from `sensor/__init__.py`

* add Modbus
2021-08-27 05:54:50 +02:00
jan iversen
2d5176eee9
Change entity_timers to be a local variable. (#55258)
Ensure outstanding pymodbus calls are handled before closing.
2021-08-26 15:23:00 +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
7df8d0c973
Check for duplicate host/port and integration name in modbus (#54664)
* Check for duplicate host/port and integration name.

* Change to use set().

* Please CI.

* Add basic tests.
2021-08-25 12:29:00 +02:00
Matthias Alphart
51361fbd2b
Add configurable state_class to Modbus sensors (#54103)
* add configurable state_class

* Add test of new parameter.

Co-authored-by: jan Iversen <jancasacondor@gmail.com>
2021-08-25 11:50:54 +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
1f6d18c517
Set quality level of modbus to gold (#54926)
* Prepare for gold.

* Upgrade to gold.
2021-08-20 17:59:31 +02:00
jan iversen
0688aaa2b6
Check for duplicate entity name/address in modbus entities (#54669)
* Check for duplicate entity name/address.
2021-08-19 09:37:31 +02:00
jan iversen
bafbbc6563
Adjust modbus constants names (#54792)
* Follow up.
2021-08-18 12:56:54 +02:00
jan iversen
bec42b74fe
Solve switch/verify register type convert problem in modbus (#54645) 2021-08-15 19:57:37 -07:00
Erik Montnemery
2720ba2753
Move temperature conversions to sensor base class (4/8) (#54472)
* Move temperature conversions to entity base class (4/8)

* Fix litterrobot sensor

* Fix tests
2021-08-11 21:17:47 +02:00
jan iversen
54538bb72b
Bump pymodbus version to 2.5.3rc1 (#54318) 2021-08-10 10:16:38 +02:00