Skip to content

Commit d7c2880

Browse files
committed
Make custom component.
1 parent 42370db commit d7c2880

30 files changed

+120
-133
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/ci.yml

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,24 @@ on:
33
push:
44
branches:
55
- dev
6-
tags:
7-
- v*
8-
pull_request:
9-
branches:
10-
- dev
11-
types: [opened, synchronize, reopened, ready_for_review]
12-
schedule:
13-
# Sunday at 02:10 UTC.
14-
- cron: '10 2 * * 0'
6+
- feature
157
workflow_dispatch:
168

179
jobs:
10+
hassfest:
11+
runs-on: "ubuntu-latest"
12+
steps:
13+
- uses: "actions/checkout@v4"
14+
- uses: "home-assistant/actions/hassfest@master"
15+
hacs_validate:
16+
runs-on: "ubuntu-latest"
17+
steps:
18+
- uses: "actions/checkout@v4"
19+
- name: HACS validation
20+
uses: "hacs/action@main"
21+
with:
22+
category: "integration"
23+
ignore: "brands topics"
1824
testing:
1925
name: Check
2026
runs-on: ubuntu-latest
@@ -28,32 +34,33 @@ jobs:
2834
- name: Set up Python
2935
uses: actions/setup-python@v5.4.0
3036
with:
31-
python-version: "3.13.0"
37+
python-version: "3.13.2"
3238

33-
- name: pytest
39+
- name: pip
3440
run: |
3541
pip install -r requirements.test.txt
36-
pytest --cov
3742
43+
- name: pytest
44+
run: |
45+
# pytest --cov
3846
analyze:
3947
name: Analyze Python
4048
runs-on: ubuntu-latest
4149
timeout-minutes: 10
4250
steps:
4351
- uses: actions/checkout@v4.2.2
44-
4552
- uses: github/codeql-action/init@v3
4653
with:
4754
languages: python
48-
4955
- uses: github/codeql-action/autobuild@v3
50-
5156
- uses: github/codeql-action/analyze@v3
5257

5358
ci_complete:
5459
name: ci_complete
5560
runs-on: ubuntu-latest
5661
needs:
62+
- hacs_validate
63+
- hassfest
5764
- analyze
5865
- testing
5966
timeout-minutes: 1

DOCS.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Custom modbus documentation.
2+
3+
This is the changed/extended documentation of the
4+
modbus component
5+
6+
There official documentation are found [here](https://github.com/pymodbus-dev/homeassistant_modbus/blob/dev/DOCS.md).

README.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
Modbus - A Home Assistant custom component.
2+
===
3+
4+
Install
5+
===
6+
7+
**With HACS**:
8+
9+
- Open HACS
10+
- Select the 3 dots in the top left corver:
11+
<img width="1061" height="111" alt="select" src="https://github.com/user-attachments/assets/bae0fde3-f6e7-4d3d-b53c-397d1c46d7b3" />
12+
13+
- Choose "personal repositories" and then add repo
14+
"https://github.com/pymodbus-dev/homeassistant_modbus":
15+
16+
<img width="404" height="338" alt="add repo" src="https://github.com/user-attachments/assets/e9332384-b050-41fc-a012-af8fc9f2bd90" />
17+
18+
- Back in the HACS overview, click on the repository:
19+
<img width="1046" height="86" alt="select repo" src="https://github.com/user-attachments/assets/39a64276-4e57-46c8-a452-2afac64caaf3" />
20+
21+
- Download the repository:
22+
23+
24+
<img width="259" height="143" alt="Download" src="https://github.com/user-attachments/assets/835c1aef-c495-4d6d-80ba-36093f12d8da" />
25+
26+
- Continue in HACS, which will ask you to restart your home assistant instance.
27+
28+
**Manually**:
29+
30+
copy [modbus](https://github.com/pymodbus-dev/homeassistant_modbus/blob/dev/custom_components/modbus)
31+
folder into your [custom_components folder](https://developers.home-assistant.io/docs/creating_integration_file_structure/#where-home-assistant-looks-for-integrations).
32+
33+
Enjoy a working modbus, if you encounter a problem feel free to open a issue [direcly](https://github.com/pymodbus-dev/homeassistant_modbus/issues>),
34+
I do also monitor the home assistant issues.
35+
36+
37+
Custom modbus in a nutshell
38+
===
39+
40+
This is a custom component version of the official Homeassistant modbus, with
41+
the newest and also experimental features. This allows users to test bleeding
42+
edge modbus.
43+
44+
45+
46+
Contributing
47+
===
48+
49+
Please contribute to Homeassistant.
50+

README.rst

Lines changed: 0 additions & 90 deletions
This file was deleted.

custom_components/modbus/WARNING

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Please remark, the license do not permit copying or using the source code in anyform for the purpose of integrating into homeassistant modbus without the express permission of the author.
1+
Please remark, the license do not permit copying or using the source code in any form for the purpose of integrating into homeassistant modbus without the express permission of the author.
22

3-
Such permission will be given if files containing source code from this repository contains a link to this directory.
3+
Such permission will be given if files containing source code from this repository contains a link to this repository.
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
{
22
"domain": "modbus",
33
"name": "Modbus",
4-
"codeowners": [],
5-
"documentation": "https://www.home-assistant.io/integrations/modbus",
4+
"codeowners": ["@janiversen"],
5+
"documentation": "https://github.com/pymodbus-dev/homeassistant_modbus/blob/dev/DOCS.md",
66
"iot_class": "local_polling",
7+
"issue_tracker": "https://github.com/pymodbus-dev/homeassistant_modbus/issues",
78
"loggers": ["pymodbus"],
8-
"requirements": ["pymodbus==3.11.1"]
9+
"requirements": ["pymodbus==3.11.1"],
10+
"version": "1.0.0"
911
}

hacs.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"name": "Maintained modbus",
3+
"homeassistant": "2025.6.3",
34
"render_readme": true
45
}

open_issues

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Pull requests from HA
2+
#135848 Add separate scale for current temp for modbus climates
3+
#148242 Support different write/read values for the same fan state
4+
#150200 Use "device_id" instead of "slave" in modbus integration
5+
6+
# Issues from HA
7+
#128554 Create Modbus Devices for each listed connection point in Modbus configuration
8+
#138077 Modbus value spike issues : values mixed from wrong sensor
9+
#138585 [pymodbus.logging] Exception response 132 / 0
10+
#140580 Modbus integration gets stuck every few days
11+
#142658 TCP/IP modbus connection work only once at HA start
12+
#146179 Mising information in modbus warning message
13+
#146246 Modbus integration ignores scan_interval and polls sensors far too frequently
14+
#146872 Modbus configuration doesn't create a device
15+
#147016 Modbus reading some values wrong from the same device
16+
#147271 MODBUS - deviation
17+
#147383 Issue with modbus integration
18+
#147564 Existing modbus integration of a Smartmeter stopped working as expected after HA update to 2025.6.1
19+
#148329 Modbus sensors can deliver wrong values, when modbus tries to reconnect.
20+
#148476 invalid config at any startup
21+
#148871 modbus not working since last update
22+
#149494 Modbus TCP: Home Assistant keeps connection persistently open and blocks other clients
23+
#149649 Modbus slave sensors not available when master sensor is deactivated
24+
#150191 Modbus dep problem after update to 2025.8.0
25+
26+
# Not solveable
27+
#147271 MODBUS - deviation
28+

0 commit comments

Comments
 (0)