An open API service indexing awesome lists of open source software.

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

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.