Skip to content

Commit a0e5fb3

Browse files
committed
HASS Device discovery implemented
1 parent 05148f4 commit a0e5fb3

9 files changed

Lines changed: 124 additions & 446 deletions

README.md

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -122,32 +122,14 @@ Kenter provides measurement services for **commercially rented** grid transforme
122122
| mqtt_username | MQTT Username | fusionsolar |
123123
| mqtt_password | MQTT Password | fusionsolar |
124124
| mqtt_root_topic | MQTT Topic for publishing | pyfusionsolar |
125+
| mqtt_hass_discovery_enabled | Automatically publish all sensors in MQTT home assistant device discovery | True |
125126

126127

127-
# Grafana dashboard example
128-
A grafana dashboard export is included in the Examples subfolder in the Git repository.
129-
130-
![Grafana dashboard screenshot](./Examples/grafana-screenshot.png)
131-
132-
# Grafana solar PV dashboard elements on Xibo digital signage system
133-
I'm using individual the elements on this dashboard to show the PV solar statistics on a free and open source [Xibo Digital Signage](https://xibo.org.uk/) narrowcasting system.
134-
135-
Take the following steps to achieve this:
136-
1. Enable Grafana anonymous mode (see [Examples/docker-compose.yml](https://github.com/JasperE84/PyFusionSolarDataRelay/blob/main/Examples/docker-compose.yml))
137-
2. Create a new layout in Xibo and add some regions
138-
3. Back in Grafana, open the dashboard and click 'Share' in the grafana individual graph dropdown dialog (not the entire dashboard, but the individual graph on the dashboard)
139-
4. Share in "Link" mode (do not use snapshot or embed)
140-
5. Back in Xibo, drop the "Webpage" widget on your region
141-
6. Configure the webpage widget to show the link copied in step 4.
142-
7. Optionally alter the url to format like `&from=now-12h` instead of the default `&from=1655015379544&to=1655058579544`
143-
7. Publish the layout, the graphs will now fit nicely in the width/height of the defined regions.
144-
145-
Result:
146-
![Xibo layout screenshot](./Examples/grafana-embedded-in-xibo-layout.png)
147-
148128
# Changelog
149129
| Version | Description |
150130
| --- | --- |
131+
| 2.0.1 | Now sending MQTT device discovery message |
132+
| 2.0.1 | Bugfix in environment variable parsing for custom pydantic nested env list parser |
151133
| 2.0.0 | Introduced possibility to configure multiple input sources (kiosks, openapi meters/inverters and kenter meters) |
152134
| 2.0.0 | Implemented Huawei Northbound OpenAPI as data source for metrics |
153135
| 2.0.0 | Now supporting Kenter API v2 |

examples/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ services:
114114
- pvoutput_api_key=9847594832794874460d04c39
115115

116116
volumes:
117+
- ./data/pyfusionsolar/cache:/code/cache
117118
- /etc/localtime:/etc/localtime:ro
118119

119120
grafana:

0 commit comments

Comments
 (0)