https://github.com/michaeltroger/linznetz-appdaemon
AppDaemon app that parses energy consumption reports of Linz Netz and provides the daily consumption to HomeAssistant
https://github.com/michaeltroger/linznetz-appdaemon
appdaemon-apps home-assistant home-automation linznetz
Last synced: 3 months ago
JSON representation
AppDaemon app that parses energy consumption reports of Linz Netz and provides the daily consumption to HomeAssistant
- Host: GitHub
- URL: https://github.com/michaeltroger/linznetz-appdaemon
- Owner: michaeltroger
- License: mit
- Created: 2025-07-16T18:13:19.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-07-16T19:31:55.000Z (12 months ago)
- Last Synced: 2025-07-21T20:01:33.393Z (12 months ago)
- Topics: appdaemon-apps, home-assistant, home-automation, linznetz
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Linz Netz -> AppDaemon -> HomeAssistant
**AppDaemon** app that parses energy consumption reports of **Linz Netz** (energy supplier in Upper Austria) and forwards the daily consumption to **HomeAssistant**.
Pre setup needed:
- Linz Strom smart meter
- Collecting 15min data is enabled
- Daily email report is enabled (you will need access to the target mail account on the AppDaemon server)
- Home assistant up and running and input number created (more to that later)
- Ntfy.sh is set up for push notifications
It works as follows:
- Periodically checks emails
- Searches for fitting (unread) emails
- Parses the attached CSV file
- calculates the daily consumption
- sends the calculated value to Home Assistant
- marks the email as read
- Uses ntfy.sh to send a push notification if there was an issue
Known issues:
- The emails only include data of the day before yesterday. Home Assistant therefore shows 2 day old data as today's data
Setup in AppDaemon:
Copy `energyconsumption.py` to `conf/apps` and register the app in `apps.yaml` of the same directory:
```
energyconsumption:
module: energyconsumption
class: EnergyConsumption
password: !secret mail_password
username: !secret mail_username
```
Add to `conf/secrets.yaml`
```
mail_username: yourUsernameHere
mail_password: yourPasswordHere
```
Setup in Home Assistant
`configuration.yaml`
```
input_number:
daily_energy:
name: Daily Energy
min: 0
max: 100
step: 0.0001
unit_of_measurement: "kWh"
mode: box
```
You can further process the data from here. E.g. setting the input number as state input for a template sensor.