Skip to content

Commit e47c63e

Browse files
authored
Merge pull request #23 from JasperE84/v2.0.1-dev
V2.0.1 Bugfix release with new HASS MQTT device discovery topic
2 parents ea61654 + e35b4a8 commit e47c63e

12 files changed

Lines changed: 128 additions & 451 deletions

README.md

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ Check out [examples/docker-compose.yml](https://github.com/JasperE84/PyFusionSol
1515

1616
[![Docker](https://img.shields.io/badge/docker-%230db7ed.svg?style=for-the-badge&logo=docker&logoColor=white)](https://hub.docker.com/r/jsprnl/pyfusionsolardatarelay)
1717

18-
19-
2018
# Breaking changes in the latest release
2119
In version 2.0.0 the environment variables used by this project changed names and structure. Please review the configuration section in README for updated variable names. Additionaly, functionality to write electrical energy usage from utility grid has been removed.
2220

@@ -39,7 +37,7 @@ MQTT is an OASIS standard messaging protocol for the Internet of Things (IoT). I
3937
# About Home Assistant
4038
Home Assistant (hass) is an open source home automation platform. Hass features an energy dashboard in which energy generation, storage and usage data can be combined in a dashboard giving a total overview of energy flow. Using MQTT, the power and energy generation data from Huawei's FusionSolar Kiosk can be fed into Home Assistant. This project can then act as a data source for the solar production section of the HASS energy dashboard.
4139

42-
Hass can easily be connected to an MQTT using the MQTT integration, which can be set up using the hass web interface. Once hass is connected to MQTT, a change in configuration.yaml is required in order to add the energy sensors to hass. A [configuration.yaml example file](./examples/home_assistant/configuration.yaml) which shows how to do this is provided in the Examples subfolder of this project.
40+
Hass can easily be connected to an MQTT using the MQTT integration, which can be set up using the hass web interface. Once hass is connected to MQTT, PyFusionSolarDataRelay publishes a HASS MQTT device discovery topic so that home assistant automatically recognizes the devices for which measurements are relayed. No configuration in home assistant sensors is required.
4341

4442
Once everything is configured, solar data will flow as follows:
4543

@@ -122,32 +120,14 @@ Kenter provides measurement services for **commercially rented** grid transforme
122120
| mqtt_username | MQTT Username | fusionsolar |
123121
| mqtt_password | MQTT Password | fusionsolar |
124122
| mqtt_root_topic | MQTT Topic for publishing | pyfusionsolar |
123+
| mqtt_hass_discovery_enabled | Automatically publish all sensors in MQTT home assistant device discovery | True |
125124

126125

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-
148126
# Changelog
149127
| Version | Description |
150128
| --- | --- |
129+
| 2.0.1 | Now sending MQTT device discovery message |
130+
| 2.0.1 | Bugfix in environment variable parsing for custom pydantic nested env list parser |
151131
| 2.0.0 | Introduced possibility to configure multiple input sources (kiosks, openapi meters/inverters and kenter meters) |
152132
| 2.0.0 | Implemented Huawei Northbound OpenAPI as data source for metrics |
153133
| 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)