gazpar2haws 0.1.5__py3-none-any.whl → 0.1.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- CHANGELOG.md +6 -0
- {gazpar2haws-0.1.5.dist-info → gazpar2haws-0.1.6.dist-info}/METADATA +57 -63
- {gazpar2haws-0.1.5.dist-info → gazpar2haws-0.1.6.dist-info}/RECORD +5 -5
- {gazpar2haws-0.1.5.dist-info → gazpar2haws-0.1.6.dist-info}/LICENSE +0 -0
- {gazpar2haws-0.1.5.dist-info → gazpar2haws-0.1.6.dist-info}/WHEEL +0 -0
CHANGELOG.md
CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
|
+
## [0.1.6] - 2025-01-05
|
9
|
+
|
10
|
+
### Added
|
11
|
+
|
12
|
+
[#4](https://github.com/ssenart/gazpar2haws/issues/4): Deploy gazpar2haws as an HA add-on.
|
13
|
+
|
8
14
|
## [0.1.5] - 2025-01-04
|
9
15
|
|
10
16
|
### Added
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: gazpar2haws
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.6
|
4
4
|
Summary: Gazpar2HAWS is a gateway that reads data history from the GrDF (French gas provider) meter and send it to Home Assistant using WebSocket interface
|
5
5
|
License: MIT
|
6
6
|
Author: Stéphane Senart
|
@@ -16,32 +16,62 @@ Requires-Dist: websockets (>=14.1,<15.0)
|
|
16
16
|
Description-Content-Type: text/markdown
|
17
17
|
|
18
18
|
# gazpar2haws
|
19
|
+
|
19
20
|
Gazpar2HAWS is a gateway that reads data history from the GrDF (French gas provider) meter and send it to Home Assistant using WebSocket interface.
|
20
21
|
|
21
22
|
It is compatible with Home Assistant Energy Dashboard and permits to upload the history and keep it updated with the latest readings.
|
22
23
|
|
24
|
+
It is a complement to the other available projects:
|
25
|
+
|
26
|
+
- [home-assistant-gazpar](https://github.com/ssenart/home-assistant-gazpar): HA integration that publishes a Gazpar entity with the corresponding meter value.
|
27
|
+
- [gazpar2mqtt](https://github.com/ssenart/gazpar2mqtt): [home-assistant-gazpar](https://github.com/ssenart/home-assistant-gazpar) alternative but using MQTT events (it reduce coupling with HA).
|
28
|
+
- [lovelace-gazpar-card](https://github.com/ssenart/lovelace-gazpar-card): HA dashboard card compatible with [home-assistant-gazpar](https://github.com/ssenart/home-assistant-gazpar) and [gazpar2mqtt](https://github.com/ssenart/gazpar2mqtt).
|
29
|
+
|
23
30
|
## Installation
|
24
31
|
|
25
|
-
Gazpar2HAWS can be installed
|
32
|
+
Gazpar2HAWS can be installed in many ways.
|
26
33
|
|
27
|
-
### 1.
|
34
|
+
### 1. Home Assistant Add-on.
|
28
35
|
|
29
|
-
|
36
|
+
In the **Add-on store**, click **⋮ → Repositories**, fill in **`https://github.com/ssenart/gazpar2haws`** and click **Add → Close** or click the **Add repository** button below, click **Add → Close** (You might need to enter the **internal IP address** of your Home Assistant instance first).
|
30
37
|
|
31
|
-
|
32
|
-
$ cd /path/to/my_install_folder/
|
38
|
+
[](https://my.home-assistant.io/redirect/supervisor_add_addon_repository/?repository_url=https%3A%2F%2Fgithub.com%2Fssenart%2Fgazpar2haws)
|
33
39
|
|
34
|
-
|
40
|
+
For usage and configuration, read the documentation [here](addons/gazpar2haws/DOCS.md).
|
35
41
|
|
36
|
-
|
42
|
+
### 2. Using Docker Hub
|
37
43
|
|
38
|
-
|
44
|
+
The following steps permits to run a container from an existing image available in the Docker Hub repository.
|
39
45
|
|
40
|
-
|
46
|
+
1. Copy and save the following docker-compose.yaml file:
|
47
|
+
|
48
|
+
```yaml
|
49
|
+
services:
|
50
|
+
gazpar2haws:
|
51
|
+
image: ssenart/gazpar2haws:latest
|
52
|
+
container_name: gazpar2haws
|
53
|
+
restart: unless-stopped
|
54
|
+
network_mode: bridge
|
55
|
+
user: "1000:1000"
|
56
|
+
volumes:
|
57
|
+
- ./gazpar2haws/config:/app/config
|
58
|
+
- ./gazpar2haws/log:/app/log
|
59
|
+
environment:
|
60
|
+
- GRDF_USERNAME=<GrDF account username>
|
61
|
+
- GRDF_PASSWORD=<GrDF account password>
|
62
|
+
- GRDF_PCE_IDENTIFIER=<GrDF PCE meter identifier>
|
63
|
+
- HOMEASSISTANT_HOST=<Home Assistant instance host name>
|
64
|
+
- HOMEASSISTANT_TOKEN=<Home Assistant access token>
|
65
|
+
```
|
66
|
+
|
67
|
+
Edit the environment variable section according to your setup.
|
41
68
|
|
69
|
+
2. Run the container:
|
70
|
+
```sh
|
71
|
+
$ docker compose up -d
|
42
72
|
```
|
43
73
|
|
44
|
-
###
|
74
|
+
### 3. Using PIP package
|
45
75
|
|
46
76
|
```sh
|
47
77
|
$ cd /path/to/my_install_folder/
|
@@ -58,7 +88,7 @@ $ pip install gazpar2haws
|
|
58
88
|
|
59
89
|
```
|
60
90
|
|
61
|
-
###
|
91
|
+
### 4. Using Dockerfile
|
62
92
|
|
63
93
|
The following steps permit to build the Docker image based on the local source files.
|
64
94
|
|
@@ -88,36 +118,21 @@ $ docker compose -f docker/docker-compose.yaml build
|
|
88
118
|
$ docker compose -f docker/docker-compose.yaml up -d
|
89
119
|
```
|
90
120
|
|
91
|
-
###
|
121
|
+
### 5. Using source files
|
92
122
|
|
93
|
-
The
|
123
|
+
The project requires [Poetry](https://python-poetry.org/) tool for dependency and package management.
|
94
124
|
|
95
|
-
|
125
|
+
```sh
|
126
|
+
$ cd /path/to/my_install_folder/
|
96
127
|
|
97
|
-
|
98
|
-
services:
|
99
|
-
gazpar2haws:
|
100
|
-
image: ssenart/gazpar2haws:latest
|
101
|
-
container_name: gazpar2haws
|
102
|
-
restart: unless-stopped
|
103
|
-
network_mode: bridge
|
104
|
-
user: "1000:1000"
|
105
|
-
volumes:
|
106
|
-
- ./gazpar2haws/config:/app/config
|
107
|
-
- ./gazpar2haws/log:/app/log
|
108
|
-
environment:
|
109
|
-
- GRDF_USERNAME=<GrDF account username>
|
110
|
-
- GRDF_PASSWORD=<GrDF account password>
|
111
|
-
- GRDF_PCE_IDENTIFIER=<GrDF PCE meter identifier>
|
112
|
-
- HOMEASSISTANT_HOST=<Home Assistant instance host name>
|
113
|
-
- HOMEASSISTANT_TOKEN=<Home Assistant access token>
|
114
|
-
```
|
128
|
+
$ git clone https://github.com/ssenart/gazpar2haws.git
|
115
129
|
|
116
|
-
|
130
|
+
$ cd gazpar2haws
|
131
|
+
|
132
|
+
$ poetry install
|
133
|
+
|
134
|
+
$ poetry shell
|
117
135
|
|
118
|
-
2. Run the container:
|
119
|
-
```sh
|
120
|
-
$ docker compose up -d
|
121
136
|
```
|
122
137
|
|
123
138
|
## Usage
|
@@ -172,31 +187,7 @@ The history is uploaded on the entities with names:
|
|
172
187
|
- sensor.${name}_volume: Volume history in m³.
|
173
188
|
- sensor.${name}_energy: Energy history in kWh.
|
174
189
|
|
175
|
-
|
176
|
-
|
177
|
-
Those two entities have to already exist in Home Assistant.
|
178
|
-
|
179
|
-
They may be created using the following templates:
|
180
|
-
|
181
|
-
```yaml
|
182
|
-
|
183
|
-
- name: gazpar2haws_volume
|
184
|
-
unit_of_measurement: 'm³'
|
185
|
-
availability: true
|
186
|
-
state: 0
|
187
|
-
icon: mdi:fire
|
188
|
-
device_class: gas
|
189
|
-
state_class: total_increasing
|
190
|
-
|
191
|
-
- name: gazpar2haws_energy
|
192
|
-
unit_of_measurement: 'kWh'
|
193
|
-
availability: true
|
194
|
-
state: 0
|
195
|
-
icon: mdi:fire
|
196
|
-
device_class: energy
|
197
|
-
state_class: total_increasing
|
198
|
-
|
199
|
-
```
|
190
|
+
`${name}` is 'gazpar2haws' defined in the above configuration file. It can be replaced by any other name.
|
200
191
|
|
201
192
|
### Environment variable for Docker
|
202
193
|
|
@@ -250,14 +241,17 @@ $ docker push --all-tags ssenart/gazpar2haws
|
|
250
241
|
All the gazpar2haws images are available [here](https://hub.docker.com/repository/docker/ssenart/gazpar2haws/general).
|
251
242
|
|
252
243
|
## Contributing
|
253
|
-
|
244
|
+
|
245
|
+
Pull requests are welcome. For any change proposal, please open an issue first to discuss what you would like to change.
|
254
246
|
|
255
247
|
Please make sure to update tests as appropriate.
|
256
248
|
|
257
249
|
## License
|
250
|
+
|
258
251
|
[MIT](https://choosealicense.com/licenses/mit/)
|
259
252
|
|
260
253
|
## Project status
|
254
|
+
|
261
255
|
Gazpar2HAWS has been initiated for integration with [Home Assistant](https://www.home-assistant.io/) energy dashboard.
|
262
256
|
|
263
257
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
CHANGELOG.md,sha256=
|
1
|
+
CHANGELOG.md,sha256=bc9Nxzz0Nc5IIMBEYJSFSi6rVwRVOLHGZqfXx31TrpQ,1552
|
2
2
|
gazpar2haws/__init__.py,sha256=yzol8uZSBI7pIRGUmYJ6-vRBwkM4MI3IGf5cQpNsaFw,57
|
3
3
|
gazpar2haws/__main__.py,sha256=g8xk0x_kprBHKHLzgf9y9EY2_gKC9V3k4z0n-EDTd-I,3253
|
4
4
|
gazpar2haws/bridge.py,sha256=plcXR8y6lH84OSHuUOogNcbM7uua24inoF9SSERKGHo,3539
|
@@ -6,7 +6,7 @@ gazpar2haws/config_utils.py,sha256=D0lu-3KY-vLEyD2vDN05UABkMnpMJjqw1RuDJVrkGFs,2
|
|
6
6
|
gazpar2haws/gazpar.py,sha256=8yrMzs9HfMSgq3HPeJs64SHWb5RWm7ZL3tgfzhlwHFQ,5754
|
7
7
|
gazpar2haws/haws.py,sha256=H0Qa01Qtsn3QdnGqIGkXE-Ympf7MSXkbFwAbzaMAodM,6895
|
8
8
|
gazpar2haws/version.py,sha256=ebdTNl4h0hNKmN3Gbs592VJsYbMmrkB47WyZMJevaQo,86
|
9
|
-
gazpar2haws-0.1.
|
10
|
-
gazpar2haws-0.1.
|
11
|
-
gazpar2haws-0.1.
|
12
|
-
gazpar2haws-0.1.
|
9
|
+
gazpar2haws-0.1.6.dist-info/LICENSE,sha256=G6JttcnlwcRHYzIcDflSGOVrHTtaP3BEegM2lH00xHw,1094
|
10
|
+
gazpar2haws-0.1.6.dist-info/METADATA,sha256=itBwqzOInCVIK4AwfFGHg88aq5FLeXW_lhUGbWMmObY,8275
|
11
|
+
gazpar2haws-0.1.6.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
12
|
+
gazpar2haws-0.1.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|