Commit graph

59 commits

Author SHA1 Message Date
jan iversen
5e56c27703
Modbus, Remove duplicate address check (#121579) 2024-07-09 21:16:47 +02:00
Sid
ac54cdcdb4
Enable Ruff RUF010 (#115371)
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-05-08 23:54:49 +02:00
Claudio Ruggeri - CR-Tech
a28731c294
Add Swing Mode Feature to Modbus integration (#113710) 2024-04-06 11:01:44 +02:00
jan iversen
02d4bf007d
Do not allow modbus config without entities (#113516) 2024-03-15 19:49:29 +01:00
jan iversen
a9fb34d9c2
Remove modbus create_issue from init (#113510)
Create_issue only in check_config.
2024-03-15 15:16:06 +01:00
jan iversen
1c938f6422
create issues for modbus config errors (#113431) 2024-03-15 13:44:29 +01:00
jan iversen
7696973932
Move modbus check_config to setup, to have access to hass (#112828) 2024-03-14 12:54:01 +01:00
Joost Lekkerkerker
2792a5f016
Enable even more SIM ruff rules (#113017)
* SIM202 SIM211 SIM220 SIM221 SIM222 SIM223

* SIM910 SIM911

* SIM

* Update homeassistant/components/mqtt/siren.py

Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>

* Update homeassistant/components/mqtt/siren.py

Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>

---------

Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
2024-03-11 14:23:52 +01:00
jan iversen
693f72eff1
Issue warning modbus configuration when modbus configuration is empty (#112618) 2024-03-09 08:49:11 +01:00
jan iversen
ea89fa6b1e
Allow duplicate names in different modbus entities (#112701)
Allow duplicate names in different entities.
2024-03-08 15:10:35 +01:00
Marc Mueller
59a6035d3f
Add empty line after module docstring [j-m] (#112700) 2024-03-08 09:01:29 -05:00
jan iversen
714777e853
modbus scan_interval: 0 is correct configuration (#112619) 2024-03-07 17:55:06 +01:00
jan iversen
4a1681bb4b
Allow duplicate modbus addresses on different devices (#112434) 2024-03-05 22:11:04 +01:00
Claudio Ruggeri - CR-Tech
1ded412061
Add modbus option to manage different setPoint registers (#107600)
Co-authored-by: jan iversen <jancasacondor@gmail.com>
2024-02-17 19:48:42 +01:00
jan iversen
90ec361fc9
Centralize validation for modbus config (#108906)
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-02-02 12:42:12 +01:00
jan iversen
3cc5ffaa4b
Replace modbus number_validator by HA standard (#108939) 2024-01-27 16:39:33 +01:00
CR-Tech
df9faeae6f
Add write_registers support for Fan Mode in modbus (#108053) 2024-01-24 20:48:55 +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
3963f59121
Reduce modbus validator for "swap" (remove special handling) (#105021) 2023-12-11 16:12:32 +01:00
Cían Hughes
e051244927
Add Modbus fan speed support (#104577)
Co-authored-by: jan iversen <jancasacondor@gmail.com>
2023-12-07 08:19:03 +01:00
jan iversen
1629bdcd7f
Remove "swap: none" from modbus (#104713) 2023-12-04 14:48:40 +01:00
jan iversen
be889c89c1
Update modbus validate table to be 3 state, to simplify the code (#104514) 2023-11-26 17:49:51 +01:00
jan iversen
81cb7470fc
Remove illegal int8 from modbus config (#103489) 2023-11-08 11:06:14 +01:00
jan iversen
40dc6d8191
Reduce modbus validator by using table (#103488) 2023-11-08 09:55:00 +01:00
jan iversen
5eba6dbc9f
modbus Allow swap: byte for datatype: string. (#103441) 2023-11-06 07:52:15 +01:00
jan iversen
d2c842ee0c
Modbus, wrong length when reading strings (#101529) 2023-10-06 14:10:10 +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
f85a3861f2
Make validator for modbus table controlled (#99092) 2023-09-03 21:04:58 +02:00
jan iversen
92258b8e6f
Correct modbus swap/datatype error message (#98698) 2023-08-21 22:55:50 +02:00
jan iversen
1a032cebdd
modbus: slave is allowed with custom (#98644) 2023-08-18 23:18:55 +02:00
jan iversen
1c56c39897
modbus config: count and slave_count can normally not be mixed. (#97902) 2023-08-18 13:10:13 +02:00
jan iversen
59d37f65d5
Correct modbus config validator: slave/swap (#97798) 2023-08-18 10:55:39 +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
epenet
810367b757
Fix can not typo (#87254) 2023-02-03 11:37:16 +01:00
Franck Nijhof
baef267f33
String formatting and max line length - Part 3 (#84394) 2022-12-22 13:35:47 +01:00
jan iversen
2e7de9570a
CONF_SLAVE do not have default 0 in a validator (#67418) 2022-03-01 16:40:00 +01:00
jan iversen
e891df0ff3
Allow multi read of Modbus sensor (#67378) 2022-02-28 11:07:55 -08:00
jan iversen
6ec9c402b1
Remove generic data types INT, UINT, FLOAT in modbus (#67268) 2022-02-26 13:27:48 -08: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
jan iversen
4417ffb407
COnvert DATA_TYPE to enum. (#57699) 2021-10-15 07:09:59 +02: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
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
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
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
8a4674c086
Solve missing automatic update of struct configuration in modbus (#54193) 2021-08-07 21:11:56 -07:00
jan iversen
3d52bfc8f6
Simplify DATA_TYPE -> struct conversion. (#53805) 2021-07-31 23:17:23 +02:00