GithubHelp home page GithubHelp logo

sanderdw / hassio-addons Goto Github PK

View Code? Open in Web Editor NEW
51.0 3.0 13.0 1.6 MB

DSMR Reader Datalogger and Metabase Home Assistant Add-ons

Home Page: https://community.home-assistant.io/search?q=%40sanderdw%20%23home-assistant-os

License: Other

Dockerfile 17.53% Python 45.83% Shell 36.64%
dsmr smartmeter p1 dsmr-reader datalogger metabase home-assistant addons repository analytics armv7-shield armhf-shield

hassio-addons's Introduction

Home Assistant Add-ons: DSMR Reader/Datalogger & Metabase

Open your Home Assistant instance and show the add add-on repository dialog with a specific repository URL pre-filled. Community Forum

GitHub Build Status GitHub Build Status GitHub Build Status

About DSMR Reader/Datalogger

Provide a tool to easily extract, store and visualize data transferred by the DSMR protocol of your smart meter. Allow you to export your data to other systems or third parties. Currently supports MQTT for pushing data and an REST API for pulling data. See the DSMR Reader webpage (https://dsmr-reader.readthedocs.io) for more background information.

DSMR Reader

About Metabase

Meet the easy, open source way for everyone to ask questions and learn from data. See the Metabase webpage (https://www.metabase.com) for more background information.

Metabase

Configure the repository

  1. Go to Supervisor -> Add-on store
  2. Specify https://github.com/sanderdw/hassio-addons as the new repository URL
  3. Install one of the addons which should appear after a refresh and follow the instructions.

hassio-addons's People

Contributors

dependabot[bot] avatar expaso avatar sanderdw avatar timmmmmmmmm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

hassio-addons's Issues

Backup creation failed, please check the dsmr_backend logfile.

Hi i did install your add-on of DSMR reader > Home Assistant Add-on: DSMR Reader, great plugin thanks!

No ones a day i get > Backup creation failed, please check the dsmr_backend logfile. (i don't know where to find that log)

this in unread notification in the dsmr tool itself, what's somewhat odd because if i look at the directory via SMB there is are files like dsmrreader-postgresql-backup-Friday.sql.gz in there.

Did i do something wrong? any tips hints?

Thanks

Background processing broken?

Hi,

After upgrading to the 5.1 version my DSMR Reader instance isn't processing the received data anymore.
See screenshot
Schermafbeelding 2022-04-04 om 11 57 48
.

Any known issue?

DSMR crashing all the time

I just switched DSMR from a raspberry Pi to HA OS on my Synology and restore a backup with historical data.
Now DSMR is crashing and rebooting like every few minutes.

How to turn on debugging or any idea what's wrong?

2022-01-24 13:47:41,157 INFO exited: dsmr_datalogger (exit status 0; expected)
2022-01-24 13:47:41,157 INFO exited: dsmr_datalogger (exit status 0; expected)
2022-01-24 13:47:42,163 INFO spawned: 'dsmr_datalogger' with pid 45
2022-01-24 13:47:42,163 INFO spawned: 'dsmr_datalogger' with pid 45
2022-01-24 13:47:42,165 WARN received SIGQUIT indicating exit request
2022-01-24 13:47:42,165 WARN received SIGQUIT indicating exit request
2022-01-24 13:47:42,168 INFO waiting for processes, dsmr_backend, dsmr_datalogger, dsmr_webinterface, nginx to die
2022-01-24 13:47:42,168 INFO waiting for processes, dsmr_backend, dsmr_datalogger, dsmr_webinterface, nginx to die
2022-01-24 13:47:42,188 INFO stopped: nginx (exit status 0)
2022-01-24 13:47:42,188 INFO stopped: nginx (exit status 0)
[2022-01-24 13:47:42 +0100] [40] [INFO] Handling signal: term
[2022-01-24 13:47:42 +0100] [44] [INFO] Worker exiting (pid: 44)
[2022-01-24 13:47:42 +0100] [40] [INFO] Shutting down: Master
2022-01-24 13:47:42,654 INFO stopped: dsmr_webinterface (exit status 0)
2022-01-24 13:47:42,654 INFO stopped: dsmr_webinterface (exit status 0)
Current logging level set to "ERROR". More information can be found here: https://dsmr-reader.readthedocs.io/en/latest/how-to/troubleshooting/enabling-debug-logging.html
2022-01-24 13:47:43,649 INFO success: dsmr_datalogger entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-01-24 13:47:43,649 INFO success: dsmr_datalogger entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-01-24 13:47:43,656 INFO stopped: dsmr_datalogger (terminated by SIGTERM)
2022-01-24 13:47:43,656 INFO stopped: dsmr_datalogger (terminated by SIGTERM)
2022-01-24 13:47:44,569 INFO stopped: dsmr_backend (exit status 0)
2022-01-24 13:47:44,569 INFO stopped: dsmr_backend (exit status 0)
2022-01-24 13:47:44,571 INFO stopped: processes (terminated by SIGTERM)
2022-01-24 13:47:44,571 INFO stopped: processes (terminated by SIGTERM)

Datalogger addon update to 1.1.0 fails

The update (from 1.0.3) to 1.1.0 fails for me with the following message:

bin/ash -o pipefail -c pip install --no-cache-dir -r requirements.txt' returned a non-zero code: 127

Shouldn't it be bin/bash in stead of bin/ash?

No pictogram in sidebar inside Home Assistant.

image

A couple of updates a go the icon for the sidebar disappear en has now been a simple icon.
where there was the logo of dsrm reader is is now a simple icon

i'm using :
DSMR Reader
Current version: 1.3.0

"error" in log version 0.7.4

Hey Sander,

On the second system that i controle, updated from 0.7.3 to 0.7.4 because of the hight cpu load.

But now i see this in the logs of the addon(every second a new rule).
Cpu is low, and addon is working.
But it's a bit strange.
My own system running 0.7.2 don't showing it.

192.168.2.24 - - [18/Jan/2022:16:23:22 +0100] "GET /xhr/electricity?delivered=True&returned=True&latest_delta_id=41053 HTTP/1.1" 200 297 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:22 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:23 +0100] "GET /xhr/electricity?phases=True&returned=True&latest_delta_id=41053 HTTP/1.1" 200 297 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:23 +0100] "GET /xhr/electricity?voltage=True&latest_delta_id=41053 HTTP/1.1" 200 297 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:23 +0100] "GET /xhr/electricity?power_current=True&latest_delta_id=41053 HTTP/1.1" 200 297 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:23 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:24 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:26 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:27 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:28 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:28 +0100] "GET /xhr/electricity?delivered=True&returned=True&latest_delta_id=41053 HTTP/1.1" 200 297 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:29 +0100] "GET /xhr/electricity?phases=True&returned=True&latest_delta_id=41053 HTTP/1.1" 200 322 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:29 +0100] "GET /xhr/electricity?voltage=True&latest_delta_id=41053 HTTP/1.1" 200 326 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:29 +0100] "GET /xhr/electricity?power_current=True&latest_delta_id=41053 HTTP/1.1" 200 314 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:29 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:31 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:32 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:33 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:34 +0100] "GET /xhr/electricity?delivered=True&returned=True&latest_delta_id=41053 HTTP/1.1" 200 315 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:34 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:35 +0100] "GET /xhr/electricity?phases=True&returned=True&latest_delta_id=41054 HTTP/1.1" 200 297 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:35 +0100] "GET /xhr/electricity?voltage=True&latest_delta_id=41054 HTTP/1.1" 200 297 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:35 +0100] "GET /xhr/electricity?power_current=True&latest_delta_id=41054 HTTP/1.1" 200 297 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:35 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:36 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:37 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:38 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:40 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:40 +0100] "GET /xhr/electricity?delivered=True&returned=True&latest_delta_id=41054 HTTP/1.1" 200 297 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:41 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:41 +0100] "GET /xhr/electricity?phases=True&returned=True&latest_delta_id=41054 HTTP/1.1" 200 297 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:41 +0100] "GET /xhr/electricity?voltage=True&latest_delta_id=41054 HTTP/1.1" 200 297 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:41 +0100] "GET /xhr/electricity?power_current=True&latest_delta_id=41054 HTTP/1.1" 200 297 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:42 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:43 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:44 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:45 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:46 +0100] "GET /xhr/electricity?delivered=True&returned=True&latest_delta_id=41054 HTTP/1.1" 200 297 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:46 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:47 +0100] "GET /xhr/electricity?phases=True&returned=True&latest_delta_id=41054 HTTP/1.1" 200 297 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:47 +0100] "GET /xhr/electricity?voltage=True&latest_delta_id=41054 HTTP/1.1" 200 297 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:47 +0100] "GET /xhr/electricity?power_current=True&latest_delta_id=41054 HTTP/1.1" 200 297 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:47 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:48 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:50 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:51 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:52 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:52 +0100] "GET /xhr/electricity?delivered=True&returned=True&latest_delta_id=41054 HTTP/1.1" 200 297 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:53 +0100] "GET /xhr/electricity?phases=True&returned=True&latest_delta_id=41054 HTTP/1.1" 200 297 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:53 +0100] "GET /xhr/electricity?voltage=True&latest_delta_id=41054 HTTP/1.1" 200 297 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:53 +0100] "GET /xhr/electricity?power_current=True&latest_delta_id=41054 HTTP/1.1" 200 297 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:53 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:54 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:55 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:56 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:57 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:58 +0100] "GET /xhr/electricity?delivered=True&returned=True&latest_delta_id=41054 HTTP/1.1" 200 297 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:58 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:59 +0100] "GET /xhr/electricity?phases=True&returned=True&latest_delta_id=41054 HTTP/1.1" 200 297 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:59 +0100] "GET /xhr/electricity?voltage=True&latest_delta_id=41054 HTTP/1.1" 200 297 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:23:59 +0100] "GET /xhr/electricity?power_current=True&latest_delta_id=41054 HTTP/1.1" 200 297 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:00 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:01 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:02 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:03 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:04 +0100] "GET /xhr/electricity?delivered=True&returned=True&latest_delta_id=41054 HTTP/1.1" 200 297 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:04 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:05 +0100] "GET /xhr/electricity?phases=True&returned=True&latest_delta_id=41054 HTTP/1.1" 200 297 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:05 +0100] "GET /xhr/electricity?voltage=True&latest_delta_id=41054 HTTP/1.1" 200 297 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:05 +0100] "GET /xhr/electricity?power_current=True&latest_delta_id=41054 HTTP/1.1" 200 297 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:05 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:06 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:07 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:08 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:10 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:10 +0100] "GET /xhr/electricity?delivered=True&returned=True&latest_delta_id=41054 HTTP/1.1" 200 297 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:11 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:11 +0100] "GET /xhr/electricity?phases=True&returned=True&latest_delta_id=41054 HTTP/1.1" 200 297 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:11 +0100] "GET /xhr/electricity?voltage=True&latest_delta_id=41054 HTTP/1.1" 200 297 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:11 +0100] "GET /xhr/electricity?power_current=True&latest_delta_id=41054 HTTP/1.1" 200 297 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:12 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:13 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:14 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:15 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:16 +0100] "GET /xhr/electricity?delivered=True&returned=True&latest_delta_id=41054 HTTP/1.1" 200 297 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:16 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:17 +0100] "GET /xhr/electricity?phases=True&returned=True&latest_delta_id=41054 HTTP/1.1" 200 297 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:17 +0100] "GET /xhr/electricity?voltage=True&latest_delta_id=41054 HTTP/1.1" 200 297 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:17 +0100] "GET /xhr/electricity?power_current=True&latest_delta_id=41054 HTTP/1.1" 200 297 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:17 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:18 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:19 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:27 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:30 +0100] "GET /xhr/electricity?delivered=True&returned=True&latest_delta_id=41054 HTTP/1.1" 200 315 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:30 +0100] "GET /xhr/electricity?phases=True&returned=True&latest_delta_id=41054 HTTP/1.1" 200 322 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:30 +0100] "GET /xhr/electricity?voltage=True&latest_delta_id=41054 HTTP/1.1" 200 326 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:30 +0100] "GET /xhr/electricity?power_current=True&latest_delta_id=41054 HTTP/1.1" 200 314 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:31 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:33 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-" 192.168.2.24 - - [18/Jan/2022:16:24:34 +0100] "GET /xhr/header HTTP/1.1" 200 146 "http://192.168.2.3:7777/live" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "-"

Cant change user and password

I got a notification that the default credentials (admin and admin) are unsafe. I tried to change them in the addon configuration and the dsmr reader UI but after a restart they are reset to the default values

image

SOLVED: Since last update DSRM Reader (Current version: 1.2.0) it won't start

After I updated DSRM Reader to 1.2.0 it won't start:

Home Assistant Core 2022.5.3
Home Assistant Supervisor 2022.05.0
Home Assistant OS 7.6
Kernel version 5.10.103-v8
Agent version 1.2.1

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-set-hassio-vars: executing... 
Home Assistant DSMR Reader Add-on - Release: 1.2.0
Home Assistant DSMR Reader Add-on - This addon is the latest version
Home Assistant DSMR Reader Add-on - Configuring addon settings
printf: usage: printf [-v var] format [arguments]
[cont-init.d] 01-set-hassio-vars: exited 2.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

High CPU load (>90%)

Since a recent restart of the add-on, I've been seeing a CPU load that's way too high to be normal:

image

Data is coming into HA through MQTT and the web interface is available, so everything seems to work. The add-on log shows a lot of this:

`127.0.0.1 - - [17/Jan/2022:22:22:14 +0100] "GET /about HTTP/1.1" 200 14772 "-" "curl/7.79.1" "-"

127.0.0.1 - - [17/Jan/2022:22:22:19 +0100] "GET /about HTTP/1.1" 200 14772 "-" "curl/7.79.1" "-"

127.0.0.1 - - [17/Jan/2022:22:22:24 +0100] "GET /about HTTP/1.1" 200 14772 "-" "curl/7.79.1" "-"

127.0.0.1 - - [17/Jan/2022:22:22:30 +0100] "GET /about HTTP/1.1" 200 14772 "-" "curl/7.79.1" "-"

127.0.0.1 - - [17/Jan/2022:22:22:35 +0100] "GET /about HTTP/1.1" 200 14772 "-" "curl/7.79.1" "-"

127.0.0.1 - - [17/Jan/2022:22:22:40 +0100] "GET /about HTTP/1.1" 200 14772 "-" "curl/7.79.1" "-"

127.0.0.1 - - [17/Jan/2022:22:22:46 +0100] "GET /about HTTP/1.1" 200 14772 "-" "curl/7.79.1" "-"

127.0.0.1 - - [17/Jan/2022:22:22:51 +0100] "GET /about HTTP/1.1" 200 14772 "-" "curl/7.79.1" "-"

127.0.0.1 - - [17/Jan/2022:22:22:56 +0100] "GET /about HTTP/1.1" 200 14772 "-" "curl/7.79.1" "-"

127.0.0.1 - - [17/Jan/2022:22:23:01 +0100] "GET /about HTTP/1.1" 200 14772 "-" "curl/7.79.1" "-"

127.0.0.1 - - [17/Jan/2022:22:23:07 +0100] "GET /about HTTP/1.1" 200 14772 "-" "curl/7.79.1" "-"

127.0.0.1 - - [17/Jan/2022:22:23:12 +0100] "GET /about HTTP/1.1" 200 14772 "-" "curl/7.79.1" "-"

127.0.0.1 - - [17/Jan/2022:22:23:17 +0100] "GET /about HTTP/1.1" 200 14772 "-" "curl/7.79.1" "-"

127.0.0.1 - - [17/Jan/2022:22:23:22 +0100] "GET /about HTTP/1.1" 200 14772 "-" "curl/7.79.1" "-"

127.0.0.1 - - [17/Jan/2022:22:23:28 +0100] "GET /about HTTP/1.1" 200 14772 "-" "curl/7.79.1" "-"

127.0.0.1 - - [17/Jan/2022:22:23:33 +0100] "GET /about HTTP/1.1" 200 14772 "-" "curl/7.79.1" "-"`

Currently running v0.7.3.

I've tried:

  • Reverting the add-on to a previous version (0.7.2 I think), same problem
  • Rebooting the VM in which HA and the add-on run
  • Rebooting the host machine

ERROR schedule execute_scheduled_processes 40 | (IntegrityError)

Hi All,

Moved my dB to my NAS. Restored a backup created inside DSMR.
All my old information is visible in the UI. But no new information will add in the dB.

I see this error:

2022-06-13 12:08:42,067 ERROR    schedule     execute_scheduled_processes      40 | (IntegrityError) dsmr_consumption.services.run errored: null value in column "delivered_1" of relation "dsmr_consumption_electricityconsumption" violates not-null constraint
DETAIL:  Failing row contains (1102161, 2022-06-13 04:00:00+02, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null).

What can I do?

I followed this how to:
https://dsmr-reader.readthedocs.io/en/v5/how-to/database/postgresql-restore-backup.html#importing-a-full-backup

Addon crashes with incorrect MQTT config

Hi,

The DSMR reader addon crashes when the MQTT config is incorrect. Now I can't log into the admin interface to change the settings. For now, is there a way to delete the config to configure the addon from scratch? Cheers!

`[ INFO ] Fixing /dev/ttyUSB* security...
chmod: /dev/ttyUSB0: Read-only file system

[ INFO ] Verifying if the DSMR web credential variables have been set...

[ INFO ] Verifying database connectivity to host: 77b2833f-timescaledb with port: 5432...

[ INFO ] Database connectivity successfully verified!

[ INFO ] Running post configuration...
Operations to perform:
Apply all migrations: admin, auth, contenttypes, dsmr_api, dsmr_backend, dsmr_backup, dsmr_consumption, dsmr_datalogger, dsmr_dropbox, dsmr_frontend, dsmr_influxdb, dsmr_mindergas, dsmr_mqtt, dsmr_notification, dsmr_pvoutput, dsmr_stats, dsmr_weather, sessions
Running migrations:
No migrations to apply.
563 static files copied to '/var/www/dsmrreader/static'.
Updating password of superuser "admin"
Deactivating any other existing superusers

[ INFO ] Checking for NGINX SSL configuration...

[ INFO ] ENABLE_NGINX_SSL is disabled, nothing to see here. Continuing...

[ INFO ] Checking for HTTP AUTHENTICATION configuration...

[ INFO ] ENABLE_HTTP_AUTH is disabled, nothing to see here. Continuing...

[ INFO ] Configuring DSMR in standlone datalogger mode....

[ INFO ] Starting supervisord...

[ INFO ] Logfiles can be found at: /var/log/supervisor/*.log and /tmp/supervisord.log
2022-01-08 20:11:41,487 INFO Set uid to user 0 succeeded
2022-01-08 20:11:41,487 INFO Set uid to user 0 succeeded
2022-01-08 20:11:41,538 INFO RPC interface 'supervisor' initialized
2022-01-08 20:11:41,538 INFO RPC interface 'supervisor' initialized
2022-01-08 20:11:41,542 INFO supervisord started with pid 34
2022-01-08 20:11:41,542 INFO supervisord started with pid 34
2022-01-08 20:11:42,547 INFO spawned: 'processes' with pid 36
2022-01-08 20:11:42,547 INFO spawned: 'processes' with pid 36
2022-01-08 20:11:42,553 INFO spawned: 'dsmr_backend' with pid 37
2022-01-08 20:11:42,553 INFO spawned: 'dsmr_backend' with pid 37
2022-01-08 20:11:42,581 INFO spawned: 'dsmr_datalogger' with pid 38
2022-01-08 20:11:42,581 INFO spawned: 'dsmr_datalogger' with pid 38
2022-01-08 20:11:42,619 INFO spawned: 'dsmr_webinterface' with pid 39
2022-01-08 20:11:42,619 INFO spawned: 'dsmr_webinterface' with pid 39
2022-01-08 20:11:42,677 INFO spawned: 'nginx' with pid 40
2022-01-08 20:11:42,677 INFO spawned: 'nginx' with pid 40
2022-01-08 20:11:43,709 INFO success: processes entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-01-08 20:11:43,709 INFO success: processes entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-01-08 20:11:43,710 INFO success: dsmr_backend entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-01-08 20:11:43,710 INFO success: dsmr_backend entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-01-08 20:11:43,711 INFO success: dsmr_datalogger entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-01-08 20:11:43,711 INFO success: dsmr_datalogger entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
[2022-01-08 20:11:44 +0100] [39] [INFO] Starting gunicorn 20.1.0
[2022-01-08 20:11:44 +0100] [39] [INFO] Listening at: unix:/var/tmp/gunicorn--dsmr_webinterface.socket (39)
[2022-01-08 20:11:44 +0100] [39] [INFO] Using worker: sync
[2022-01-08 20:11:44 +0100] [42] [INFO] Booting worker with pid: 42
2022-01-08 20:11:46,081 INFO success: dsmr_webinterface entered RUNNING state, process has stayed up for > than 3 seconds (startsecs)
2022-01-08 20:11:46,081 INFO success: dsmr_webinterface entered RUNNING state, process has stayed up for > than 3 seconds (startsecs)
Current logging level set to "ERROR". More information can be found here: https://dsmr-reader.readthedocs.io/en/latest/how-to/troubleshooting/enabling-debug-logging.html2022-01-08 20:11:47,961 INFO success: nginx entered RUNNING state, process has stayed up for > than 5 seconds (startsecs)
2022-01-08 20:11:47,961 INFO success: nginx entered RUNNING state, process has stayed up for > than 5 seconds (startsecs)
Current logging level set to "ERROR". More information can be found here: https://dsmr-reader.readthedocs.io/en/latest/how-to/troubleshooting/enabling-debug-logging.html
2022-01-08 20:11:48,089 ERROR broker initialize_client 55 | MQTT: Failed to connect to broker (192.168.1.184:1883): EOF occurred in violation of protocol (_ssl.c:997)
2022-01-08 20:11:48,105 ERROR persistent_clients initialize 17 | CLIENTS: Init error: MQTT: Failed to connect to broker
2022-01-08 20:11:50,559 INFO exited: dsmr_backend (exit status 0; expected)
2022-01-08 20:11:50,559 INFO exited: dsmr_backend (exit status 0; expected)
2022-01-08 20:11:51,568 INFO spawned: 'dsmr_backend' with pid 43
2022-01-08 20:11:51,568 INFO spawned: 'dsmr_backend' with pid 43
2022-01-08 20:11:51,571 WARN received SIGQUIT indicating exit request
2022-01-08 20:11:51,571 WARN received SIGQUIT indicating exit request
2022-01-08 20:11:51,578 INFO waiting for processes, dsmr_backend, dsmr_datalogger, dsmr_webinterface, nginx to die
2022-01-08 20:11:51,578 INFO waiting for processes, dsmr_backend, dsmr_datalogger, dsmr_webinterface, nginx to die
2022-01-08 20:11:51,584 INFO stopped: nginx (exit status 0)
2022-01-08 20:11:51,584 INFO stopped: nginx (exit status 0)
[2022-01-08 20:11:51 +0100] [39] [INFO] Handling signal: term
[2022-01-08 20:11:51 +0100] [42] [INFO] Worker exiting (pid: 42)
[2022-01-08 20:11:51 +0100] [39] [INFO] Shutting down: Master`

Postgress/TimescaleDB issue

I'm running version: 0.7.0 of DSMR reader for years now, very good add-on.

Is there a way to use Hass.io DMSR reader with a 'normal/other' Postgress package? Or another SQL database?

I have issue updating to latest Timescale version, it doesn't start I think because it misses a default homeassistant or admin user with known password.
image

Also, is there a way to recover the password for the Postgress/TImescal database so I can make a dump/reload?

Support for DATALOGGER_SLEEP

Could you add DATALOGGER_SLEEP?
This add-on posts a telegram every 0.5 seconds and is way too much data for me.
I also can't block this on the DSMR Reader instance as every telegram send is processed.
This is also causing way too much MQTT events for me.

Could you looking supporting the default DATALOGGER_SLEEP config?

Thanks in advance.

Dagstatistieken lopen achter (3 weken geleden)

Since 3 weeks now my day data is not saved in DSMR. The error message is: Dagstatistieken lopen achter (3 weken geleden)

Is there a way to check if this progress is running correctly? I'm asking here since Dennis is not responsable for the HA addon.

I am running HA Supervised in Proxmox with the Wisker script for the VM/LXC.

DSMR Reader wil niet starten

Hallo Sander,

Zojuist heb ik een backup teruggezet van DSMR reader ivm een crash. Echter blijft hij nu constant hangen op het volgende als ik de DSMR reader addon start:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.

[ INFO ] Home Assistant Add-on release: 1.1.0
[cmd] /run.sh exited 6
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

Enig idee wat ik nog kan doen? Ik heb al 3 x de addon verwijderd en opnieuw geinstalleerd, maar helaas niet gelukt.

Edit: net geprobeerd met een schone installatie op en Odroid M1 8GB.

Het betreft HASSOS met een docker installatie. Het lijkt er dus op dat er iets met rechten niet goed gaan. Andere addons (en dus containers) starten wel netjes

Network socket

I have DSRM Reader running on a seperate Pi through network socket.
I want to ditch that and install the add-on in HA, but can I use web socket in the add-on?

Backup notifications

Have the add-on running for almost a month without problems.
Since a few days getting notifications concerning backups.
Did not change any settings.
Backup folder is set to /backup/dsmrreader

Update interval sensors

Hi All,

Problem definition

After integrating DSMR Reader Docker in The supervisor of Home Assistant all sensor integrations in HA is updating every 5 seconds. After a couple of days the update interval changes resulting in wrong calculations combining different sensor data.

After 1) Rebuilding DSMR Reader and 2) Restarting TimescaleDB the sensor update every 5 seconds again.
You can this happening in the attached screenshot. (please don't mind the units of each variable they are not labelled correctly)

How can i make sure the sensor update interval stays within 5 seconds ? With previous builds i didn't have this issue of intervals changing.

Thanks a lot for your support.

Best regards,
Ivar Engel

-->

Setup/Architecture information

ODROID-N2+
-->

Version of the Docker image

-DSMR Reader Current version: 0.5.0
-TimescaleDB Current version: 1.1.6
-Running in Supervisor in Home Assistant Versioncore-2021.8.8

Debug log

Screenshot 2021-09-08 131834

Add your logs here.

Cannot install addon

I can't seem to update the addon to the latest versions, I'm currently still using the 1.1.1 version (didn't have time to attempt upgrades earlier). This is the error message I'm getting:

homeassistant.exceptions.HomeAssistantError: Error updating DSMR Reader: The command '/bin/ash -o pipefail -c curl -J -L -o /tmp/bashio.tar.gz         "https://github.com/hassio-addons/bashio/archive/v0.14.3.tar.gz"     && mkdir /tmp/bashio     && tar zxvf         /tmp/bashio.tar.gz         --strip 1 -C /tmp/bashio         && mv /tmp/bashio/lib /usr/lib/bashio     && ln -s /usr/lib/bashio/bashio /usr/bin/bashio     && rm -f -r         /tmp/*' returned a non-zero code: 1

Running HA in a VM, using HassOS, other addons (from other repositories) seem to install fine. Any ideas?

ENABLE_INGRESS

Hi,

I see some errors in HA and don't know how to solve this:

23-02-03 22:20:23 WARNING (MainThread) [supervisor.addons.options] Option 'ENABLE_INGRESS' does not exist in the schema for DSMR Reader (0826754b_dsmr_reader)
23-02-03 22:20:23 WARNING (MainThread) [supervisor.addons.options] Option 'ENABLE_INGRESS' does not exist in the schema for DSMR Reader (0826754b_dsmr_reader)
23-02-03 22:20:24 WARNING (MainThread) [supervisor.addons.options] Option 'ENABLE_INGRESS' does not exist in the schema for DSMR Reader (0826754b_dsmr_reader)
Home Assistant 2023.2.1
Supervisor 2023.01.1
Operating System 9.5
Frontend 20230202.0 - latest

This is my config:

WEBSERVER: Ingress
DSMRREADER_ADMIN_USER: admin
DSMRREADER_ADMIN_PASSWORD: SECRET
DJANGO_DATABASE_NAME: dsmr
DJANGO_DATABASE_USER: SECRET
DJANGO_DATABASE_PASSWORD: SECRET
DJANGO_DATABASE_HOST: 192.168.100.62
DJANGO_DATABASE_PORT: "5433"
DSMRREADER_REMOTE_DATALOGGER_MODE: standalone
DSMRREADER_REMOTE_DATALOGGER_API_HOSTS: http(s)://<YOUR_DSMR_HOST>:<PORT>
DSMRREADER_REMOTE_DATALOGGER_API_KEYS: <YOUR_API_KEY>
DSMRREADER_REMOTE_DATALOGGER_SERIAL_PORT: /dev/ttyUSB1
DSMRREADER_REMOTE_DATALOGGER_INPUT_METHOD: serial
DSMRREADER_REMOTE_DATALOGGER_SERIAL_BAUDRATE: "115200"
DSMRREADER_REMOTE_DATALOGGER_NETWORK_HOST: x.x.x.x
DSMRREADER_REMOTE_DATALOGGER_NETWORK_PORT: x
DSMRREADER_REMOTE_DATALOGGER_SLEEP: "0.5"
DSMRREADER_LOGLEVEL: ERROR
DJANGO_FORCE_SCRIPT_NAME: ""
DJANGO_STATIC_URL: static/
ENABLE_INGRESS: false

Calculation different

My energy provider makes the calculation the following way:
Example for 270 kWh
€ 0,24054/kWh x 135 kwh = 32,47
€ 0,22529/kWh x 135 kwh = 30,41
Vaste leveringskosten (€ 5,99/maand) € 0,19692/dag x 31 dagen = 6,10
voor Enexis B.V. : Capaciteitstarief t/m 3 x 25A of t/m 1 x 80A (€ 267,68/jaar) € 0,73338/dag x 31 dagen = 22,73
Vermindering energiebelasting (- € 824,77/jaar) - € 2,25965/dag x 31 dagen = 70.04 euro
Totaal tarief gas (1 t/m 170.000 m3) : € 1,16066/m3 x 21 m3 = 24.37
Vaste leveringskosten (€ 5,99/maand) € 0,19692/dag x 31 dagen = 6.10
voor Enexis B.V. : Capaciteitstarief t/m 10 m3/uur, stand.jaarv. < 500 m3 (€ 138,19/jaar) € 0,37861/dag x 31 dagen = 11.74
Totaal; 42.21

So that month, my energy provider tells me:
270 kWh costs €21,15
and
21m3 costs € 42.21
The provider takes all this daily costs/and all the dutch energytax returns only from the electricity

The dsmr reader shows: € 62,88 for the electricity and € 24,37 for gas

After that the dsmr reader calculates the dailycost and the energy tax -23,25.
The couple of cents difference isn't the issue.
The outcome is the same only the monthly totals are different.

Am I lost or is there a way to correct this. Or do I have a strange calculating provider?
I'm a bit confused. having the calculation from the dsmr reader in my mind and today getting an email telling me different numbers.

Advies (geen ISSUE!) t.b.v. DSMR Reader & backup/restore

Hallo,

Ik heb even een "open" vraag m.b.t. het gebruik van DSMR Reader.
Deze gebruik ik nu naar volle tevredenheid op een losse Linux VM (waarop docker aanwezig is).
De Linux VM draait binnen ESXI (waar ook een losse VM draait met HassOS).

Echter draai ik deze Linux VM machine bijna alleen, t.b.v. DSMR Reader.
Nu zag ik deze Addon, en is wellicht een serieuze optie om "de boel" te migreren naar deze Addon.

Zijn er al eerder gebruikers geweest welke hetzelfde gedacht/gedaan hebben?
Is het aan te raden om te "migreren" vanaf mijn Linux VM naar deze Addon, en gaat dat allemaal wel qua history/database?

Dit zou voor mij betekenen dat ik weer qua onderhoud 1 VM minder heb :)!
Zie graag uit naar jullie mening 👍.

Version 0.7.1

Hey Sander,

Thanks to the “auto update” function in HA, my dsmr reader addon update to 0.7.1. And I see in the changes it’s a beta (don’t update).

How can u downgrade to version 0.7.0? Because I do get a consistent error on my USB port 😢

Switched auto update off now 🤣. On all the plugins

thanks in advanced

External datalogger / API not working after upgrade to 1.2.1

After upgrading from 1.2.0 to 1.2.1 there is no data received from my remote datalogger. Tried resetting the config but no change. Restoring to 1.2.0 fixed it for now.

With 1.2.0 I can connect to port 7777, with the new version 1.2.1 this port seems to be closed.

Disconnected due to exception

Disclaimer: i may have a setup that's not the intended setup, so this is mainly to confirm if this is supposed to work or not.

My current setup is a Home Assistant appliance running in a VM on a proxmox host. I have a p1 usb running from my DSMR to the proxmox host and the usb passed through to the VM.

I read the data in Home Assistant through the DSMR integration. I then found out about DSMR-Reader and have that setup in a docker on a different host. I then wanted the data from the USB in DSMR-Reader so i installed this add-on to send it to DSMR-Reader. However since that moment i have frequent disconnects from both the DSMR integration and the DSMR-Reader add-on. The add-on gives the log below when that happens.

I understand the problem: two different algorithms are trying to access the same device and that doesnt work nicely. However, I thought that this add-on is specifically made for this kind of setup -> the USB is in the HA host but you want the data in both HA and the DSMR reader. Is this premise correct? And if that is the case, what am i doing wrong? Do you maybe have an idea how to get this setup working?

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/serial/serialposix.py", line 500, in read
    raise SerialException(
serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "./dsmr_datalogger_api_client.py", line 179, in <module>
    main()
  File "./dsmr_datalogger_api_client.py", line 150, in main
    telegram = next(datasource)
  File "./dsmr_datalogger_api_client.py", line 49, in read_telegram
    incoming_bytes = serial_handle.read(MAX_BYTES_PER_READ)
  File "/usr/local/lib/python3.8/site-packages/serial/serialposix.py", line 509, in read
    raise SerialException('read failed: {}'.format(e))
serial.serialutil.SerialException: read failed: device reports readiness to read but returned no data (device disconnected or multiple access on port?)

Backup doesn't work anymore

After updating TimescaleDB addon to version 2.0.0 I am having issues with making a backup.

The logfiles show:

pg_dump: error: server version: 14.2; pg_dump version: 13.6
pg_dump: error: aborting because of server version mismatch
2022-03-31 16:25:28,395 ERROR    schedule     execute_scheduled_processes      37 | (AttributeError) dsmr_backup.services.backup.run errored: 'NoneType' object has no attribute 'read'
127.0.0.1 - - [31/Mar/2022:16:25:28 +0200] "GET /about HTTP/1.1" 200 15456 "-" "curl/7.79.1" "-"
2022-03-31 16:25:28,522 CRITICAL backup       on_backup_failed                205 |  - Unexpected exit code (1) for backup: b'pg_dump: error: server version: 14.2; pg_dump version: 13.6\npg_dump: error: aborting because of server version mismatch\n'
2022-03-31 16:25:28,533 ERROR    schedule     execute_scheduled_processes      37 | (OSError) dsmr_backup.services.email.run errored: b'pg_dump: error: server version: 14.2; pg_dump version: 13.6\npg_dump: error: aborting because of server version mismatch\n'

Perhaps, the combination ( dsmrreader and timescaledb) makes dsmrreader needs an update also. ( or am I wrong?)

Also seeing errors in the timescaledb logfile ( made an issue at that repository also: Expaso/hassos-addon-timescaledb#15 (comment)) ( but that has to do with PostGIS, seems different)

Can someone please help me fix this backup issue?

dsmr sensoren vernieuwen niet in Home Assistant

Ik heb de dsmr_reader add on geinstalleerd volgens de handleiding, in de web UI zie ik dat er gegevens binnenkomen, helaas worden deze niet in home assistant getoond het is net of de boel niet vernieuwd wordt.

Het vreemde is dat de toestand van 2 dagen geleden blijft staan als de waarde, ook al wordt er een herstart gedaan.

Datalogger draait op een rpi 3b+ waar ook unifi op draait, ook al geprobeert met alleen de datalogger, geen verschil, de waarden worden verzonden naar mijn HA. HA draait op i7 systeem in Oracle Virtualbox, alles draait als een zonnetje behalve de dsmr-reader add on. graag een oplossing.

Mocht er meer info nodig zijn, dan geef ik deze graag.

Mijn configuration.yaml

sensor:
DSMR Reader

platform: dsmr_reader
host: 192.168.2.45
port: 7777
dsmr_version: 4

heb het ook al geprobeerd met versie 4.2

Entiteit
sensor.dsmr_day_consumption_electricity2

Toestand
1.604
Status attributen (YAML, optioneel)

state_class: total_increasing
unit_of_measurement: kWh
friendly_name: High tariff usage
device_class: energy

Laatst gewijzigd:
15 september 2021 11:43:01

Laatst bijgewerkt:
15 september 2021 11:43:01

net mijn hele database eruit gegooid, en de enige gegevens, die met dsmr-reader te maken hebben, die in het logboek van MariaDB komen zijn:

Rejected telegrams gewijzigd in 3
12:01:45 - 7 minuten geleden
Voltage swell L1 gewijzigd in 0
12:01:45 - 7 minuten geleden
Voltage sag L1 gewijzigd in 0
12:01:45 - 7 minuten geleden
Long power failure count gewijzigd in 3
12:01:45 - 6 minuten geleden
Power failure count gewijzigd in 5
12:01:45 - 6 minuten geleden
Electricity tariff gewijzigd in high
12:01:45 - 6 minuten geleden
DSMR version gewijzigd in 4.2
12:01:45 - 6 minuten geleden

backup restore

Hi,

I was using DSMR (both datalogger and application) installed directly on Raspbian and I decided to move to HassOS where I installed this addon for Hassio.
I have a DSMR backup from my previous Raspbian installation and I tried to restore it within this addon without success.
Any suggestions or guidance for it?
Thank you and regards

Giacomo

Add-on crashes when configured to read data over ipv4

Recently purchased a wifi smart meter gateway that distributes telegrams over telnet. When I configure the add-on for that, it reports an error and crashes:

image

Configured like this:

image

Telnetting from another machine in the network shows that the gateway is available and reporting telegrams:

image

Temporarily using the HA DSMR integration which also connects through telnet, so I suspect something is going wrong with the add-on.

Invalid Add-on repository with HA 2021.6 Beta?

I get the following error für HA 2021.6.
Could you take a look at it if it is in 2021.6 or your Repro?

Thx,

Seb

image

The URL is: https://github.com/sanderdw/hassio-addons

System Health

version core-2021.6.0b1
installation_type Home Assistant OS
dev false
hassio true
docker true
virtualenv false
python_version 3.8.9
os_name Linux
os_version 5.9.16
arch aarch64
timezone Europe/Berlin
Home Assistant Community Store
GitHub API ok
Github API Calls Remaining 5000
Installed Version 1.12.4
Stage running
Available Repositories 900
Installed Repositories 48
Home Assistant Cloud
logged_in true
subscription_expiration 4. Juni 2021, 2:00
relayer_connected true
remote_enabled true
remote_connected true
alexa_enabled true
google_enabled false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 6.0.rc3
update_channel beta
supervisor_version supervisor-2021.05.3
docker_version 20.10.6
disk_total 113.9 GB
disk_used 35.4 GB
healthy true
supported true
board odroid-n2
supervisor_api ok
version_api ok
installed_addons Node-RED (9.1.3), AppDaemon 4 (0.6.1), Mosquitto broker (6.0.1), Log Viewer (0.11.0), TasmoAdmin (0.15.0), TasmoBackup (1.04.13), Visual Studio Code (3.4.1), Frigate NVR (1.13), JupyterLab (0.5.0), Home Assistant Google Drive Backup (0.104.3), WireGuard (0.5.1), Duck DNS (1.12.5), ESPHome (1.18.0), SSH & Web Terminal (8.2.3), MariaDB (2.3.0), Portainer (1.5.0)
Lovelace
dashboards 1
resources 20
views 9
mode storage
Spotify
api_endpoint_reachable ok

Error while updating

I'm running version 1.1.1 and try to update to the latest's version but it fails. Is it possible to update without reinstalling the package?

`Logger: homeassistant.core
Source: components/hassio/update.py:169
First occurred: 20 juli 2022 om 13:42:02 (2 occurrences)
Last logged: 10:56:22

Error executing service: <ServiceCall update.install (c:01G8DPGHZA9NK48EAESFQJCMAH): entity_id=['update.dsmr_reader_update'], backup=True>
Error executing service: <ServiceCall update.install (c:01G8JHV2JN9KH66PQY47MTFSSG): entity_id=['update.dsmr_reader_update'], backup=True>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/hassio/update.py", line 167, in async_install
await async_update_addon(self.hass, slug=self._addon_slug, backup=backup)
File "/usr/src/homeassistant/homeassistant/components/hassio/handler.py", line 45, in _wrapper
raise HassioAPIError(data["message"])
homeassistant.components.hassio.handler.HassioAPIError: The command '/bin/ash -o pipefail -c curl -J -L -o /tmp/bashio.tar.gz "https://github.com/hassio-addons/bashio/archive/v0.14.3.tar.gz" && mkdir /tmp/bashio && tar zxvf /tmp/bashio.tar.gz --strip 1 -C /tmp/bashio && mv /tmp/bashio/lib /usr/lib/bashio && ln -s /usr/lib/bashio/bashio /usr/bin/bashio && rm -f -r /tmp/*' returned a non-zero code: 1

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 1731, in catch_exceptions
await coro_or_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1750, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 680, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 930, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 717, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/update/init.py", line 152, in async_install
await entity.async_install_with_progress(version, backup)
File "/usr/src/homeassistant/homeassistant/components/update/init.py", line 411, in async_install_with_progress
await self.async_install(version, backup)
File "/usr/src/homeassistant/homeassistant/components/hassio/update.py", line 169, in async_install
raise HomeAssistantError(f"Error updating {self.title}: {err}") from err
homeassistant.exceptions.HomeAssistantError: Error updating DSMR Reader: The command '/bin/ash -o pipefail -c curl -J -L -o /tmp/bashio.tar.gz "https://github.com/hassio-addons/bashio/archive/v0.14.3.tar.gz" && mkdir /tmp/bashio && tar zxvf /tmp/bashio.tar.gz --strip 1 -C /tmp/bashio && mv /tmp/bashio/lib /usr/lib/bashio && ln -s /usr/lib/bashio/bashio /usr/bin/bashio && rm -f -r /tmp/*' returned a non-zero code: 1
`

Feature request: add verbose logging option

Hi, thanks for maintaining this addon!

Today I ran into a problem and wanted to increase verbosity of the logs. I had to install the xirixiz docker image to be able to do that. Could you please make this a configurable option for the addon? The code seems to be already there:

if [[ -n "${DATALOGGER_DEBUG_LOGGING}" ]]; then
_info "Adding DATALOGGER_DEBUG_LOGGING to the DSMR remote datalogger configuration..."
echo DATALOGGER_DEBUG_LOGGING="${DATALOGGER_DEBUG_LOGGING}" >> /dsmr/.env

Can't install DSMR Data logger

When i'm trying to install in Hassio the DSMR Data logger it fails.
It returns the next error:

`21-03-26 14:21:28 INFO (SyncWorker_3) [supervisor.docker.addon] Starting build for 0826754b/armv7-addon-dsmr_datalogger:1.0.2
21-03-26 14:21:35 ERROR (SyncWorker_3) [supervisor.docker.addon] Can't build 0826754b/armv7-addon-dsmr_datalogger:1.0.2: The command '/bin/ash -o pipefail -c pip install --no-cache-dir -r requirements.txt' returned a non-zero code: 1
21-03-26 14:21:35 ERROR (SyncWorker_3) [supervisor.docker.addon] Build log:
Step 1/16 : ARG BUILD_FROM

Step 2/16 : FROM $BUILD_FROM

---> e9ca1b7a326f

Step 3/16 : ENV LANG C.UTF-8

---> Using cache

---> 941b07890057

Step 4/16 : COPY run.sh /

---> Using cache

---> 47ec96c9fa2b

Step 5/16 : COPY dsmr_datalogger_api_client.py ./

---> Using cache

---> a88da3e8db1e

Step 6/16 : COPY requirements.txt /

---> Using cache

---> 6f85a9d3df8f

Step 7/16 : RUN mkdir -p /etc/dsmr_logs

---> Using cache

---> 4ffad460c556

Step 8/16 : RUN pip install --no-cache-dir -r requirements.txt

---> Running in 30c666d29348

Fatal Python error: pyinit_main: can't initialize time
Python runtime state: core initialized
PermissionError: [Errno 1] Operation not permitted

Current thread 0x76fc9390 (most recent call first):

Removing intermediate container 30c666d29348`

Can you help me how to fix this?

Update?

If i'm correct, current version of dsmr is 5.1
However latest is already 5.9
Any chance to get an update?
I'm asking this cause i would love to have the peak sensors... So i can see capacitytariff in Belgium :)

Deactivated successfully.

Hi All,

I see many of those lines in log of HA:

Feb 04 07:06:24 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-1ea7fad1fbf45ff0de337f858c3960f97b534169889c05ca57eb24502db89d8d-runc.hfokZp.mount: Deactivated successfully.
Feb 04 07:07:25 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-1ea7fad1fbf45ff0de337f858c3960f97b534169889c05ca57eb24502db89d8d-runc.kkf8DH.mount: Deactivated successfully.
Feb 04 07:08:26 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-1ea7fad1fbf45ff0de337f858c3960f97b534169889c05ca57eb24502db89d8d-runc.ouLCpR.mount: Deactivated successfully.
Feb 04 07:08:57 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-1ea7fad1fbf45ff0de337f858c3960f97b534169889c05ca57eb24502db89d8d-runc.vyBP41.mount: Deactivated successfully.
Feb 04 07:09:12 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-1ea7fad1fbf45ff0de337f858c3960f97b534169889c05ca57eb24502db89d8d-runc.962wqH.mount: Deactivated successfully.
Feb 04 07:11:14 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-1ea7fad1fbf45ff0de337f858c3960f97b534169889c05ca57eb24502db89d8d-runc.3kvlra.mount: Deactivated successfully.
Feb 04 07:11:59 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-1ea7fad1fbf45ff0de337f858c3960f97b534169889c05ca57eb24502db89d8d-runc.9pN4OC.mount: Deactivated success

x2drunc-moby-1ea7fad1fbf45ff0de337f858c3960f97b534169889c05ca57eb24502db89d8d

➜  ~ docker ps
CONTAINER ID   IMAGE                                                           COMMAND           CREATED         STATUS                  PORTS                                   NAMES
1ea7fad1fbf4   sanderdw/ha-dsmr-reader-aarch64:1.9.0                           "/init"           12 hours ago    Up 12 hours (healthy)                                           addon_0826754b_dsmr_reader

Is this normal or is there something going on?

Error while trying to install Add-on

Hello,

First, thanks for the hard work, it seems great!

I was trying to install the Add-on by following the instructions.
I've added the repository, clicked on Install and after some time, I've got an error message asking me to see the logs:
image

It's like it tried to get info from 172.30.32.1 but that it isn't my HA server IP at all...

Thanks in advance for the help.

DSRM Reader

Hello,

is it possible to also make an DSRM Reader dashboard addon?

dsmr_datalogger keeps crashing

Hi,

I try to find out what's going on here. Hopefully you know what is going on here:

I use ser2net to expose P1. This is working with DSMR integration in Home Assistant

Config

  - platform: dsmr
    host: x.x.x.x
    port: 2001
    dsmr_version: 5

For this Hassio Addon in installed TimescaleDB

Config

databases:
  - homeassistant
  - dsmrreader
timescale_enabled:
  - homeassistant
  - dsmrreader

Log from this plugin

[ INFO ] DSMR release: v4.15.0
[ INFO ] Removing existing PID files...
[ INFO ] Creating log directory...
[ INFO ] Fixing /dev/ttyUSB* security...
[ INFO ] Verifying if the DSMR web credential variables have been set...
[ INFO ] Verifying database connectivity to host: 77b2833f-timescaledb with port: 5432...
[ INFO ] Database connectivity successfully verified!
[ INFO ] Running post configuration...
Operations to perform:
  Apply all migrations: admin, auth, contenttypes, dsmr_api, dsmr_backend, dsmr_backup, dsmr_consumption, dsmr_datalogger, dsmr_dropbox, dsmr_frontend, dsmr_influxdb, dsmr_mindergas, dsmr_mqtt, dsmr_notification, dsmr_pvoutput, dsmr_stats, dsmr_weather, sessions
Running migrations:
  No migrations to apply.
562 static files copied to '/var/www/dsmrreader/static'.
Updating password of superuser "admin"
Deactivating any other existing superusers
[ INFO ] Checking for NGINX SSL configuration...
[ INFO ] ENABLE_NGINX_SSL is disabled, nothing to see here. Continuing...
[ INFO ] Checking for HTTP AUTHENTICATION configuration...
[ INFO ] ENABLE_HTTP_AUTH is disabled, nothing to see here. Continuing...
[ INFO ] Configuring DSMR in standlone datalogger mode....
[ INFO ] Starting supervisord...
[ INFO ] Logfiles can be found at: /var/log/supervisor/*.log and /tmp/supervisord.log
2021-04-05 18:00:18,390 INFO Set uid to user 0 succeeded
2021-04-05 18:00:18,394 INFO RPC interface 'supervisor' initialized
2021-04-05 18:00:18,395 INFO supervisord started with pid 30
2021-04-05 18:00:19,397 INFO spawned: 'dsmr_backend' with pid 32
2021-04-05 18:00:19,398 INFO spawned: 'dsmr_datalogger' with pid 33
2021-04-05 18:00:19,400 INFO spawned: 'dsmr_webinterface' with pid 34
2021-04-05 18:00:19,404 INFO spawned: 'nginx' with pid 35
2021-04-05 18:00:21,122 INFO success: dsmr_backend entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2021-04-05 18:00:21,123 INFO success: dsmr_datalogger entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2021-04-05 18:00:21,123 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2021-04-05 18:00:23,125 INFO success: dsmr_webinterface entered RUNNING state, process has stayed up for > than 3 seconds (startsecs)
2021-04-05 18:00:25,526 INFO exited: dsmr_datalogger (exit status 0; expected)
2021-04-05 18:00:26,529 INFO spawned: 'dsmr_datalogger' with pid 39
2021-04-05 18:00:28,126 INFO success: dsmr_datalogger entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2021-04-05 18:00:32,427 INFO exited: dsmr_datalogger (exit status 0; expected)
2021-04-05 18:00:33,122 INFO spawned: 'dsmr_datalogger' with pid 40
2021-04-05 18:00:34,614 INFO success: dsmr_datalogger entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

According to the log the connection to the DB is working. I cannot verify if the connection to ser2net is working or not.

Config for this plugin

 
DSMRREADER_ADMIN_USER
admin
 
DSMRREADER_ADMIN_PASSWORD
admin
 
DJANGO_DATABASE_NAME
dsmrreader
 
DJANGO_DATABASE_USER
postgres
 
DJANGO_DATABASE_PASSWORD
homeassistant
 
DJANGO_DATABASE_HOST
77b2833f-timescaledb
 
DJANGO_DATABASE_PORT
5432
 
DATALOGGER_MODE
standalone
 
DATALOGGER_SERIAL_PORT
/dev/ttyUSB1
 
DATALOGGER_INPUT_METHOD
ipv4
 
DATALOGGER_SERIAL_BAUDRATE
115200
 
DATALOGGER_NETWORK_HOST
x.x.x.x
 
DATALOGGER_NETWORK_PORT
2001

DATALOGGER_SLEEP
0.5

Any idea? Is it possible to enable debug mode?

[Question] Importing database

Hi Sander,

I just discovered your repo, and I've added the addon in HA. I'm currently running dsmr-reader on a Raspberry pi, and want to migrate it to your addon.

But I can't seem to import a backup I've created from my (old) installation. I'm using the pgAdmin4 addon, to access the database in the timescaledb addon, but I can't seem to manage it. The backup is 45MB uncompressed (contains 4 years of data), and the import errors out on upload (because too big).

I even tried logging in in the timescaledb addon via portainer, but sadly, I'm also stuck there.

Can you give me a hint maybe?

Groeten en dank,
Patrick

Restore a backup

Hi,

I had a VM with DSMR installed. However, i have now installed youre addon.

I want to know if its possible to restore my DSMR reader backup with +- 2 years of data into the DSMR reader addon.

Foutmelding bij het opnieuw berekenen van prijzen met Home Assistant addon

Eerst heb ik deze vraag gesteld bij de originele DSMR project maar werdt ik doorgestuurd naar hier. Zie hier: dsmrreader/dsmr-reader#1351

Ik kwam er achter dat ik mijn kWh tarief verkeerd had ingevuld en wilde deze veranderen. Nu las ik dat je bepaalde commando's moet doen om opnieuw te laten bereken. Volgens pagina: https://dsmr-reader.readthedocs.io/en/latest/how-to/troubleshooting/recalculate-prices.html

Nu draai ik DSMR-reader in Home Assistant als add-on dus het was wat lastig om bij de docker container te komen. Nu heb ik uiteindelijk via Portainer bij de console gekomen. Nu zie ik wel dat ik de goede map zit door ls te doen en dan zie ik de bestanden met de belangerijke ./manage.py

Nu wilt de het eerste commando sudo su - dsmr dat ik wissel naar de dsmr gebruiken maar volgens het commando /etc/passwd bestaat deze niet. Hierdoor faalt het commando dus ook. Nu weet ik niet of dit ook het probleem is voor de volgende commando.

./manage.py dsmr_stats_recalculate_prices nu probeerde ik dit en kreeg het volgende in mijn scherm als melding

/dsmr # ./manage.py dsmr_stats_recalculate_prices
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/django/db/backends/base/base.py", line 219, in ensure_connection
    self.connect()
  File "/usr/local/lib/python3.9/site-packages/django/utils/asyncio.py", line 26, in inner
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/django/db/backends/base/base.py", line 200, in connect
    self.connection = self.get_new_connection(conn_params)
  File "/usr/local/lib/python3.9/site-packages/django/utils/asyncio.py", line 26, in inner
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/django/db/backends/postgresql/base.py", line 187, in get_new_connection
    connection = Database.connect(**conn_params)
  File "/usr/local/lib/python3.9/site-packages/psycopg2/__init__.py", line 127, in connect
    conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: could not translate host name "dsmrdb" to address: Name does not resolve


The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/dsmr/./manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.9/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.9/site-packages/django/core/management/__init__.py", line 395, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 330, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 371, in execute
    output = self.handle(*args, **options)
  File "/dsmr/dsmr_stats/management/commands/dsmr_stats_recalculate_prices.py", line 11, in handle
    dsmr_stats.services.recalculate_prices()
  File "/dsmr/dsmr_stats/services.py", line 408, in recalculate_prices
    for current_day in DayStatistics.objects.all():
  File "/usr/local/lib/python3.9/site-packages/django/db/models/query.py", line 287, in __iter__
    self._fetch_all()
  File "/usr/local/lib/python3.9/site-packages/django/db/models/query.py", line 1308, in _fetch_all
    self._result_cache = list(self._iterable_class(self))
  File "/usr/local/lib/python3.9/site-packages/django/db/models/query.py", line 53, in __iter__
    results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
  File "/usr/local/lib/python3.9/site-packages/django/db/models/sql/compiler.py", line 1154, in execute_sql
    cursor = self.connection.cursor()
  File "/usr/local/lib/python3.9/site-packages/django/utils/asyncio.py", line 26, in inner
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/django/db/backends/base/base.py", line 259, in cursor
    return self._cursor()
  File "/usr/local/lib/python3.9/site-packages/django/db/backends/base/base.py", line 235, in _cursor
    self.ensure_connection()
  File "/usr/local/lib/python3.9/site-packages/django/utils/asyncio.py", line 26, in inner
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/django/db/backends/base/base.py", line 219, in ensure_connection
    self.connect()
  File "/usr/local/lib/python3.9/site-packages/django/db/utils.py", line 90, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/usr/local/lib/python3.9/site-packages/django/db/backends/base/base.py", line 219, in ensure_connection
    self.connect()
  File "/usr/local/lib/python3.9/site-packages/django/utils/asyncio.py", line 26, in inner
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/django/db/backends/base/base.py", line 200, in connect
    self.connection = self.get_new_connection(conn_params)
  File "/usr/local/lib/python3.9/site-packages/django/utils/asyncio.py", line 26, in inner
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/django/db/backends/postgresql/base.py", line 187, in get_new_connection
    connection = Database.connect(**conn_params)
  File "/usr/local/lib/python3.9/site-packages/psycopg2/__init__.py", line 127, in connect
    conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
django.db.utils.OperationalError: could not translate host name "dsmrdb" to address: Name does not resolve

Het gaat trouwens om Add-on versie 0.4.0
Hopelijk kan iemand mij hier mee helpen, als er info mist hoor ik het graag

Alvast bedankt!

Is is possible to disable the dsmr_datalogger process from starting all together?

I'm trying out your DSMR Reader add-on, nice work, was trying to port it too, but stopped of course.
Is there a way to disable the dsmr_datalogger process from being started?
I use the API to supply data to the instance via rest calls.
So no network or serial device involved.
I'm on version 0.1.0 now.

...
...
2021-02-22 10:56:40,919 INFO exited: dsmr_datalogger (exit status 0; expected)
2021-02-22 10:56:41,925 INFO spawned: 'dsmr_datalogger' with pid 5844
2021-02-22 10:56:42,928 INFO success: dsmr_datalogger entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2021-02-22 10:56:48,896 INFO exited: dsmr_datalogger (exit status 0; expected)
2021-02-22 10:56:49,900 INFO spawned: 'dsmr_datalogger' with pid 5845
2021-02-22 10:56:50,902 INFO success: dsmr_datalogger entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2021-02-22 10:56:56,860 INFO exited: dsmr_datalogger (exit status 0; expected)
2021-02-22 10:56:57,866 INFO spawned: 'dsmr_datalogger' with pid 5846
2021-02-22 10:56:58,869 INFO success: dsmr_datalogger entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.