Giter VIP home page Giter VIP logo

ha-hildebrandglow-dcc's Introduction

Hildebrand Glow (DCC) Integration

hacs_badge CodeFactor Grade DeepSource "Buy Me A Coffee"

Home Assistant integration for energy consumption data from UK SMETS (Smart) meters using the Hildebrand Glow API.

This integration works without requiring a consumer device provided by Hildebrand Glow and can work with your existing smart meter. You'll need to set up your smart meter for free in the Bright app on Android or iOS. This will only work when using the Data Communications Company (DCC) backend, which all SMETS 2 meters and some SMETS 1 meters do. Once you can see your data in the app, you are good to go.

The data provided will be delayed by around 30 minutes. To get real-time consumption data, you can buy Hildebrand Glow hardware. Although this integration will technically work with their hardware, you should instead use the Local MQTT integration or the Cloud MQTT integration to get real-time consumption data which is not delayed.

Installation

Automated installation through HACS

You can install this component through HACS to easily receive updates. Once HACS is installed, click this link:

Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.

Manually add to HACS Visit the HACS Integrations pane and go to Explore and download repositories. Search for Hildebrand Glow (DCC), and then hit Download. You'll then be able to install it through the Integrations pane.

Manual installation

Copy the custom_components/hildebrandglow_dcc/ directory and all of its files to your config/custom_components/ directory.

Configuration

Once installed, restart Home Assistant:

Open your Home Assistant instance and show the system dashboard.

Then, add the integration:

Open your Home Assistant instance and start setting up a new integration.

Manually add the Integration Visit the Integrations section in Home Assistant and click the Add button in the bottom right corner. Search for Hildebrand Glow (DCC) and input your credentials. You may need to clear your browser cache before the integration appears in the list.

Sensors

Once you've authenticated, the integration will automatically set up the following sensors for each of the smart meters on your account:

  • Usage (Today) - Consumption today (kWh)
  • Cost (Today) - Total cost of today's consumption (GBP)
  • Standing Charge - Current standing charge (GBP)
  • Rate - Current tariff (GBP/kWh)

The usage and cost sensors will still show the previous day's data until shortly after 01:30 to ensure that all of the previous day's data is collected.

The standing charge and rate sensors are disabled by default as they are less commonly used. Before enabling them, ensure the data is visible in the Bright app.

If the data being shown is wrong, check the Bright app first. If it is also wrong there, you will need to contact your supplier and tell them to fix the data being provided to DCC Other Users, as Bright is one of these.

Energy Management

The sensors created integrate directly into Home Assistant's Home Energy Management. It is recommended you use the daily usage and cost sensors in the Energy integration.

Open your Home Assistant instance and show your Energy configuration panel.

Debugging

To debug the integration, add the following to your configuration.yaml

logger:
  default: warning
  logs:
    custom_components.hildebrandglow_dcc: debug

Development

To begin, it is recommended to create a virtual environment to install dependencies:

python -m venv dev-venv
. dev-venv\Scripts\activate

You can then install the dependencies that will allow you to develop: pip3 install -r requirements-dev.txt

This will install black, homeassistant, isort, pyglowmarkt and pylint.

Code Style

This project makes use of black, isort and pylint to enforce a consistent code style across the codebase.

Credits

Thanks go to:

ha-hildebrandglow-dcc's People

Contributors

colinrobbins avatar declan-morris avatar deepsource-autofix[bot] avatar dependabot[bot] avatar eknirk avatar h3aly avatar handyhat avatar martingrayson avatar technofreak74 avatar unlobito 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  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  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

ha-hildebrandglow-dcc's Issues

data is an hour out

Describe the bug
the data thats being pulled into HA is an hour out for some reason ?
im based in UK and its not day light savings time yet ?
the time is correct on my Pi too ?

To Reproduce
just setup the add-on and watch data come into HA

Expected behaviour
the data to be very similar BUT not an hour out?

Screenshots
Screenshot 2022-02-21 at 10 08 16
Screenshot_20220221-100758_Bright

Version
Home Assistant 2022.2.9
Hildebrand Glow (DCC) v0.5.2

Debug log

2022-02-21 09:04:05 DEBUG (SyncWorker_2) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/b1f5af6e-3507-453c-ab8f-66ff9606b7de/readings?from=2022-01-01T00:00:00&to=2022-02-21T23:59:59&period=P1Y&offset=0&function=sum)
2022-02-21 09:04:05 DEBUG (SyncWorker_10) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/5dbf33f3-1410-4334-a703-a3f9ad645a93/readings?from=2022-01-01T00:00:00&to=2022-02-21T23:59:59&period=P1Y&offset=0&function=sum)
2022-02-21 09:04:05 DEBUG (SyncWorker_11) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/5dbf33f3-1410-4334-a703-a3f9ad645a93/tariff)
2022-02-21 09:04:06 DEBUG (SyncWorker_8) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/b1f5af6e-3507-453c-ab8f-66ff9606b7de/readings?from=2022-02-21T00:00:00&to=2022-02-21T23:59:59&period=P1D&offset=0&function=sum)
2022-02-21 09:04:06 DEBUG (SyncWorker_1) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/d6d9f3e9-2520-4150-85e4-9f4bc7d0ba9a/readings?from=2022-02-21T00:00:00&to=2022-02-21T23:59:59&period=P1D&offset=0&function=sum)
2022-02-21 09:04:06 DEBUG (SyncWorker_7) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/c1c480a2-ab46-43eb-9d80-6135fa254763/readings?from=2022-02-21T00:00:00&to=2022-02-21T23:59:59&period=P1D&offset=0&function=sum)
2022-02-21 09:04:06 DEBUG (SyncWorker_4) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/5dbf33f3-1410-4334-a703-a3f9ad645a93/readings?from=2022-02-21T00:00:00&to=2022-02-21T23:59:59&period=P1D&offset=0&function=sum)

Additional context
Add any other context about the problem here.

list index out of range error

Describe the bug

2021-10-26 14:31:07 ERROR (MainThread) [custom_components.hildebrandglow_dcc.sensor] Key Error - plan (list index out of range): ({'status': 'OK', 'name': 'gas consumption', 're
sourceTypeId': '08ab415f-d851-423f-adf4-c2b1e0529e27', 'resourceId': 'b1f5af6e-3507-453c-ab8f-66ff9606b7de', 'data': [], 'classifier': 'gas.consumption'})
2021-10-26 14:31:08 ERROR (MainThread) [custom_components.hildebrandglow_dcc.sensor] Lookup Error - plan (list index out of range): ({'status': 'OK', 'name': 'gas consumption',
'resourceTypeId': '08ab415f-d851-423f-adf4-c2b1e0529e27', 'resourceId': 'b1f5af6e-3507-453c-ab8f-66ff9606b7de', 'data': [], 'classifier': 'gas.consumption'})

To Reproduce
only added in my bright iOS details (im a british gas customer with a smart elec/gas/monitor all DCC with no glow hub)

Expected behaviour
not sure?

Screenshots
If applicable, add screenshots to help explain your problem.

Version
LATEST - v0.5.0 and HA core-2021.10.6

Debug log
Enable debug logging by following the instructions here
TO FOLLOW

Additional context
i think this error is because british gas have goofed up my gas tariff,
so its showing in HA AND the bright iOS app as NO TRARIFF and its not calculating the cost either

Outdated Tarrifs

Given the wonderful energy cap increase /s my tarrif has naturally increased. This isn't reflected in Home Assistant. Is this an issue with my provider (Octopus), or a bug within the Add-on? Any way for me to troubleshoot?

Gas traffic out of range

Describe the bug
Hi, thanks for all your work on this integration. The electric readings are working perfectly but the gas cost per unit and standing charge keeps throwing an error and reporting as unknown in the front-end. I ran with debugging but it only shows a couple of http get commands before the error message below.

To Reproduce
Steps to reproduce the behaviour:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behaviour
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Version
What version of the integration and what version of Home Assistant are you running?

Hass 2021.11.1
Integration v.0.5.1

Debug log
Enable debug logging by following the instructions here

2021-11-09 22:06:28 ERROR (MainThread) [custom_components.hildebrandglow_dcc.sensor] Glow API data error (Gas Tariff Standing): (list index out of range)
2021-11-09 22:08:27 ERROR (MainThread) [custom_components.hildebrandglow_dcc.sensor] Glow API data error (Gas Tariff Rate): (list index out of range)

Additional context
Add any other context about the problem here.

Incorrect documentation link via HACS

Describe the bug
Why you click the documentation link in HACS for the integration it takes you to
https://github.com/HandyHat/ha-hildebrandglow
not
https://github.com/HandyHat/ha-hildebrandglow-dcc

To Reproduce
Click the Documentation link in HACS for the integration.

Incorrect Units for Standing Charge

Describe the bug
The standing charge is shown as GBP/kWh.

To Reproduce
Run the integration, and view the sensor

Expected behaviour
Units should be GBP

Version
What version of the integration and what version of Home Assistant are you running?

5.0

Patchy Data and 500 API Error

Describe the bug
API Calls fail in the log with a 500 error
To Reproduce
Steps to reproduce the behaviour:

  1. Set up the integration as described. I used HACS on 0.52 then switched to 'main' 0.60

Expected behaviour
A clear and concise description of what you expected to happen.
The integration to make API calls that succeed

Screenshots
If applicable, add screenshots to help explain your problem.
image
Getting very patchy data, there is no gaps in data in the bright app on my phone.
Only just updated to 0.60 so will see if the data coverage works.

Version
0.52 and 0.60

Debug log

2022-03-27 14:57:59 DEBUG (SyncWorker_6) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/bba6dec4-bf04-4aa5-9b8a-cfc54d5d72bc/readings?from=2022-01-01T00:00:00&to=2022-03-27T23:59:59&period=P1Y&offset=-60&function=sum)
2022-03-27 14:57:59 DEBUG (SyncWorker_8) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/bba6dec4-bf04-4aa5-9b8a-cfc54d5d72bc/tariff)
2022-03-27 14:57:59 DEBUG (SyncWorker_7) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/5e2cd5bc-d5e1-4f86-be40-e94a400db442/readings?from=2022-01-01T00:00:00&to=2022-03-27T23:59:59&period=P1Y&offset=-60&function=sum)
2022-03-27 14:57:59 DEBUG (SyncWorker_3) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/5e2cd5bc-d5e1-4f86-be40-e94a400db442/tariff)
2022-03-27 14:57:59 DEBUG (SyncWorker_1) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/bba6dec4-bf04-4aa5-9b8a-cfc54d5d72bc/readings?from=2022-03-27T00:00:00&to=2022-03-27T23:59:59&period=P1D&offset=-60&function=sum)
2022-03-27 14:57:59 DEBUG (SyncWorker_4) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/9113d7b3-0a7e-4860-83e2-2d5f0e495f60/readings?from=2022-03-27T00:00:00&to=2022-03-27T23:59:59&period=P1D&offset=-60&function=sum)
2022-03-27 14:57:59 DEBUG (SyncWorker_2) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/5e2cd5bc-d5e1-4f86-be40-e94a400db442/readings?from=2022-03-27T00:00:00&to=2022-03-27T23:59:59&period=P1D&offset=-60&function=sum)
2022-03-27 14:58:00 DEBUG (SyncWorker_0) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/fde4b621-d9c1-4b6d-811b-d4102d88ab6e/readings?from=2022-03-27T00:00:00&to=2022-03-27T23:59:59&period=P1D&offset=-60&function=sum)
2022-03-27 14:58:09 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_consumption_year is taking over 10 seconds
2022-03-27 14:58:09 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_consumption_year is taking over 10 seconds
2022-03-27 14:58:09 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_tariff_standing is taking over 10 seconds
2022-03-27 14:58:12 ERROR (SyncWorker_6) [custom_components.hildebrandglow_dcc.glow] Glow response status code: 500 (https://api.glowmarkt.com/api/v0-1/resource/bba6dec4-bf04-4aa5-9b8a-cfc54d5d72bc/readings?from=2022-01-01T00:00:00&to=2022-03-27T23:59:59&period=P1Y&offset=-60&function=sum)
2022-03-27 15:02:59 DEBUG (SyncWorker_3) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/bba6dec4-bf04-4aa5-9b8a-cfc54d5d72bc/readings?from=2022-01-01T00:00:00&to=2022-03-27T23:59:59&period=P1Y&offset=-60&function=sum)
2022-03-27 15:02:59 DEBUG (SyncWorker_0) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/bba6dec4-bf04-4aa5-9b8a-cfc54d5d72bc/tariff)
2022-03-27 15:02:59 DEBUG (SyncWorker_2) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/5e2cd5bc-d5e1-4f86-be40-e94a400db442/readings?from=2022-01-01T00:00:00&to=2022-03-27T23:59:59&period=P1Y&offset=-60&function=sum)
2022-03-27 15:02:59 DEBUG (SyncWorker_6) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/5e2cd5bc-d5e1-4f86-be40-e94a400db442/tariff)
2022-03-27 15:02:59 DEBUG (SyncWorker_4) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/fde4b621-d9c1-4b6d-811b-d4102d88ab6e/readings?from=2022-03-27T00:00:00&to=2022-03-27T23:59:59&period=P1D&offset=-60&function=sum)
2022-03-27 15:02:59 DEBUG (SyncWorker_8) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/5e2cd5bc-d5e1-4f86-be40-e94a400db442/readings?from=2022-03-27T00:00:00&to=2022-03-27T23:59:59&period=P1D&offset=-60&function=sum)
2022-03-27 15:02:59 DEBUG (SyncWorker_5) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/9113d7b3-0a7e-4860-83e2-2d5f0e495f60/readings?from=2022-03-27T00:00:00&to=2022-03-27T23:59:59&period=P1D&offset=-60&function=sum)
2022-03-27 15:03:07 DEBUG (SyncWorker_7) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/bba6dec4-bf04-4aa5-9b8a-cfc54d5d72bc/readings?from=2022-03-27T00:00:00&to=2022-03-27T23:59:59&period=P1D&offset=-60&function=sum)
2022-03-27 15:03:09 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_consumption_today is taking over 10 seconds
2022-03-27 15:03:09 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_tariff_standing is taking over 10 seconds
2022-03-27 15:03:09 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_tariff_standing is taking over 10 seconds
2022-03-27 15:03:11 ERROR (SyncWorker_6) [custom_components.hildebrandglow_dcc.glow] Glow response status code: 500 (https://api.glowmarkt.com/api/v0-1/resource/5e2cd5bc-d5e1-4f86-be40-e94a400db442/tariff)
2022-03-27 15:03:11 ERROR (SyncWorker_0) [custom_components.hildebrandglow_dcc.glow] Glow response status code: 500 (https://api.glowmarkt.com/api/v0-1/resource/bba6dec4-bf04-4aa5-9b8a-cfc54d5d72bc/tariff)

Additional context
Add any other context about the problem here.

This error originated from a custom integration.

This error originated from a custom integration.

Logger: custom_components.hildebrandglow_dcc.glow
Source: custom_components/hildebrandglow_dcc/glow.py:133
Integration: Hildebrand Glow (documentation, issues)
First occurred: 2:30:15 PM (2 occurrences)
Last logged: 2:30:15 PM

Glow response status code: 500 (https://api.glowmarkt.com/api/v0-1/resource/5e2cd5bc-d5e1-4f86-be40-e94a400db442/readings?from=2022-03-27T00:00:00&to=2022-03-27T23:59:59&period=P1D&offset=-60&function=sum)
Glow response status code: 500 (https://api.glowmarkt.com/api/v0-1/resource/fde4b621-d9c1-4b6d-811b-d4102d88ab6e/readings?from=2022-03-27T00:00:00&to=2022-03-27T23:59:59&period=P1D&offset=-60&function=sum)
Logger: homeassistant.helpers.entity
Source: helpers/entity.py:747
First occurred: 2:30:12 PM (5 occurrences)
Last logged: 2:30:12 PM

Update of sensor.gas_tariff_standing is taking over 10 seconds
Update of sensor.electric_consumption_today is taking over 10 seconds
Update of sensor.electric_tariff_standing is taking over 10 seconds
Update of sensor.gas_cost_today is taking over 10 seconds
Update of sensor.electric_cost_today is taking over 10 seconds

Stopped working 9am 16 Feb 2022 log warnings

Describe the bug
NO data coming through as of 9am yesterday 16 Feb

To Reproduce
Easy look at logs and Energy Page no data

Expected behaviour
To show data

Screenshots
Added

Version

System Health

version core-2022.2.8
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.9.7
os_name Linux
os_version 5.10.98
arch x86_64
timezone Europe/London
Home Assistant Community Store
GitHub API ok
Github API Calls Remaining 4854
Installed Version 1.22.0
Stage running
Available Repositories 977
Downloaded Repositories 25
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 7.4
update_channel stable
supervisor_version supervisor-2022.01.1
docker_version 20.10.9
disk_total 30.8 GB
disk_used 16.3 GB
healthy true
supported true
board ova
supervisor_api ok
version_api ok
installed_addons Samba share (9.5.1), Check Home Assistant configuration (3.10.0), SSH & Web Terminal (10.0.2), Home Assistant Google Drive Backup (0.105.2), Studio Code Server (4.1.0), MariaDB (2.4.0), InfluxDB (4.3.0), Grafana (7.4.1), Mosquitto broker (6.0.1)
Lovelace
dashboards 3
resources 16
views 75
mode storage

Debug log
https://0bin.net/paste/IA+tJHj1#G7AFdoU5I0K0FZeY2bMHNk+9LZuQHQiFpuvqqhCl0WB

Additional context
Add any other context about the problem here.
msedge_Energy_–Home_Assistant_and_15_more_pages-_Person_2022-02-17_08 58 54
msedge_Energy_–Home_Assistant_and_15_more_pages-_Person_2022-02-17_08 59 32
msedge_Configuration_–Home_Assistant_and_15_more_pages-_2022-02-17_08 58 27

No longer working?

Describe the bug
The integration seems to no longer be connecting to the Glow API to retrieve data - it just errors in the HA log file.

Is it just me?

Version
Glow - v0.5.0
HA - 2022.2.0 and 2021.12.x

Debug log
Debug logging enabled, but no additional error messages shown other than:

2022-02-03 09:42:38 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hildebrandglow_dcc which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-02-03 09:43:13 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform hildebrandglow_dcc is taking over 10 seconds.
2022-02-03 09:49:51 WARNING (SyncWorker_1) [custom_components.hildebrandglow_dcc.glow] Error connecting to Glow ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2022-02-03 09:49:51 WARNING (SyncWorker_9) [custom_components.hildebrandglow_dcc.glow] Error connecting to Glow ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2022-02-03 09:49:51 WARNING (SyncWorker_5) [custom_components.hildebrandglow_dcc.glow] Error connecting to Glow ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2022-02-03 09:49:51 WARNING (SyncWorker_6) [custom_components.hildebrandglow_dcc.glow] Error connecting to Glow ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2022-02-03 09:49:51 WARNING (SyncWorker_8) [custom_components.hildebrandglow_dcc.glow] Error connecting to Glow ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

Weird reading for consume electric

Describe the bug
I believe I am getting "weird" figures for energy consumption.

I'm fairly sure I am not using 11Kwh in 1 hour as there's nothing that would consume that. I see this occur often on my graphs, sometimes it says 20 Kwh!.

Screenshot 2022-07-25 at 10 37 32
Screenshot 2022-07-25 at 10 38 15

I recently had solar fitted so maybe it's doing something weird as its a negative value or something? shrug

Split electricity tariffs

Hi,

I was wondering if it were possible to query the split (Economy 7, etc) tariff times from the glow API. They appear in the Bright app.

It would be good to be able to use that to trigger high-energy appliances to run during the cheap period.

Not seeing v0.6.0 in HACs

I see that all the outstanding pull's seems to have been merged but I'm not seeing a new version in HACs as yet - is that to be expected ? Is there still something else that needs to take place before it'll flag that a new version update is available?

Thanks.

What happens at year end for home assistant energy integration

Sorry I did look through the previous issues and couldn't find an answer.

Is the consumption (year) a calendar year from January to December, resetting on 1 January, or a rolling 12 month period?

  1. If it's from January to December then, what sort of behaviour are expecting to see in the home assistant energy integration on 1 January? I was under the impression home assistant uses the provided state as a long-term statistic sensor, which means if it suddenly drops to 0 I'm not sure how it will handle that.

  2. If it's a rolling 12 months then I do not see how the consumption can be accurately used.

Update:
Apologies, I had a quick look and I realised that my own energy monitoring is based upon a per hour kWh sensor, which it seems to manage perfectly. However it still be good for someone to confirm what behaviour they saw on the 1st Jan?

Update 2:
If it is the case that it doesn't matter that the sensor resets at the end of the year, then why is there any advantage over using the 'yearly consumption' vs. the 'daily consumption'.

Reconciliation of gaps in Glow API / incorrect cumulative values

Describe the bug
Not certain if this is a bug with how the API is being consumed (in HA) or if it's a bug in the Glow API itself...

Had a couple days of missing readings; this morning no gas / electricity readings between 04:00-10:00am. Likewise, when checking at the time this was not showing in the Bright app. So possibly a DCC data delay.

This has now returned to the Glow app, reconciling with my (non-Glow) CAD (Chameleon) readings. But hasn't pulled through into Home Assistant through the integration. Nor via influxdb into Grafana with the daily/yearly sensors.

So there's a gap and the cumulative value at 10am picked up from the 4am value. No outage with my HA Container as all other sensors behaved as expected during this period.

To Reproduce
Steps to reproduce the behaviour:

  1. Identify a period of no data in the Bright app / via Home Assistant
  2. Data eventually populates in Bright app
  3. Data gap then exists and doesn't show in Home Assistant

Expected behaviour
Data to correct itself cumulatively in the event of gaps in upstream data consumption from Glow (and upstream of Glow to DCC)

Screenshots
From Grafana on the sensor:
Screenshot 2022-02-13 at 13 42 11

Both today/year for electricity show no usage
Screenshot 2022-02-13 at 13 49 01
Screenshot 2022-02-13 at 13 49 14

Glow app confirming readings:
IMG_0766

Version
Integration: Latest (v0.5.2 tag)
HA Container: 2022.2.3

Debug log
N/A - was not enabled at time, have enabled now for future occurrences

Additional context
Restarted HA server and no difference

Incorrect unit in Home Assistant Energy dashboard for GAS reading

Describe the bug
In home assistant energy dashboard under gas consumption I can see quite good value but incorrect unit. I have used Yearly usage as suggested in the configuration.
To Reproduce

add GAS Yearly sensor to Energy Dashboard in Home assistant configuration

Screenshots
Fullscreen_30_12_2021__21_13

Version
What version of the integration and what version of Home Assistant are you running?
Latest version and latest version of Home Assistant
Debug log
n/a
Additional context
n/a

Convert gas kwh to m3

Is your feature request related to a problem? Please describe.
Feature request - the new home assistant release (2021.9) introduced gas consumption to the energy dashboard. This integration currently gets the daily gas usage in kWh, but home assistant energy dashboard wants m3.

Describe the solution you'd like
All gas suppliers in the UK use fixed conversion, so it should be possible to convert the kWh "back" to m3 for home assistant.

Describe alternatives you've considered
None

Additional context
The conversion from gas m3 to kWh is:
[amount of M3] * [volume correction factor] * [calorific value] / [kWh conversion factor] = [amount of kWh]

volume correction factor = 1.02264 for all UK gas suppliers
calorific value must be between 38 and 41 within the UK, with an average of 40. http://mip-prd-web.azurewebsites.net/DataItemExplorer/Index allows for discovering the exact value per location but maybe a bigger job than hard-coding the approx value of 40
kWh conversion factor = 3.6 for all UK gas suppliers

Therfore, to do the opposite and convert back:
[gas kWh] * 3.6 / 40 / 1.02264 = approx [gas M3]

I'm very new to home assistant, but I think it should be possible to add this conversion somehow so the new energy dashboard is more useful. Happy to help if I can

further reading:
https://www.nationalgrid.com/uk/gas-transmission/data-and-operations/calorific-value-cv
https://www.energybrokers.co.uk/gas/gas-network
https://www.gov.uk/guidance/gas-meter-readings-and-bill-calculation

Handle Reauthentication through Home Asssistant

I changed my password on the Bright app. How do I update the integration's configuration to match?

If I delete the integration from my HA and re-add it using the new password credentials, will it lose past data, or cause new data to be disconnected from old data?

It would be handy to be able to change credentials easily without disrupting data storage.

Data @ 11pm-12am is lost every night

Each night at the end of the day, the accumulating value of kWh consumed is reset to zero and begins increasing again for the next day from after midnight. This value (for electricity) is sensor.electric_consumption_today

However, if you use a HistoryGraph (see attached image) to graph sensor.electric_consumption_today it's apparent that there is no data from 11pm until 12.30am every night (the consumption data is zero for at least 1.5hrs). This means that there is at least 1.5hrs of consumption not being accounted for every night.

Expected behaviour would be for consumption data to continue until 12.00am when it would reset to 0kWh and begin accumulating again from 12.01am.

HomeAssistant v2021.10.6
Hildebrand Glow (DCC) integration v0.3.3

IMG_20211020_051629

Inconsistent values between HA Energy Dashboard and Bright App

Describe the bug
I've been running the integration for about a week and I've noticed that the numbers displayed in the energy dashboard never quite match what's shown in the Bright app

To Reproduce
Steps to reproduce the behaviour:
Add "Energy Consumption (year) to the HA energy dashboard and let it run for a few days
Compare the chart with what is shown in the Bright app

Expected behaviour
Beginning and end of day will be wrong by half an hour, but other timeslots during the day should match

Screenshots
energy_dashboard
bright_app

Version
What version of the integration and what version of Home Assistant are you running?
0.5.2

Debug log
Enable debug logging by following the instructions here

Additional context
Add any other context about the problem here.

1000s of DNS lookups to api.glowmarkt.com

I use Pi-hole (see https://pi-hole.net/) on my LAN to filter out excessive internet adverts and also as my DHCP & DNS lookup server.

Sometime after installing this integration, I noticed many 1000's of DNS lookups to api.glowmarkt.com in my Pi-hole dashboard. There are 30+ lookups every 1second.

To see these lookups, you would need to setup Pi-hole or some other network device to receive & forward DNS queries. I have attached a screenshot.

Surely 30+ DNS lookups every 1 second is unnecessary and presumably not good for LAN, ISP or Hildebrand servers!?

Home Assistant v2021.10.6
Hildebrand Glow (DCC) integration v0.5.0

Screenshot_2021-10-27-12-59-34-366_com android chrome

Gas Consumption (Year) - reading 0KWH since 27/01/22

Not sure if this is a bug or an issue with Hilderbrands API.

just wondered if anyone else’s gas consumption (yearly) is now reading 0KWH?

Does it work using the daily total, as in the readme file suggests using the yearly total. It’s been fine up to now

Thanks

Provide cumulative sensors as well as the "today so far" counters

Is your feature request related to a problem? Please describe.
Using the current "Today" sensors within the energy dashboard results in flawed data at midnight. The dashboard expects ever-increasing data, like a meter reading. Whereas the sensors currently reset each day and provide a saw-tooth data set.

Describe the solution you'd like
Add an additional sensor to provide cumulative data that doesn't reset.

Describe alternatives you've considered
For now I'm likely to use NodeRed to detect the midnight reset and then keep track of incremental usage through the day, this can be added onto a total that keeps increasing.

Additional context
Screenshot_20210913-073008

Periodic data fetch error

Stopped pulling data from Glow after switch to GMT

Describe the bug
After the switch to GMT, the sensors have stopping pulling data from the Glow API, showing a data value of "0"

To Reproduce
Run the integration in the GMT timezone (UTC offset = 0)

Expected behaviour
Should retrieve data

Version
5.0

Debug log
Logs who the Glow API call fails.

Lost all Data and after new update Log Errors

Starting 3 days ago no data coming from your app energy graphs were just blank.
I have updated to 2022.2 and app showing all over logs as errors

2022-02-03 09:51:15 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration sonoff which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-02-03 09:51:15 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration shopping_list which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-02-03 09:51:15 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration alexa_media which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-02-03 09:51:15 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration remote_homeassistant which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-02-03 09:51:15 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration meross_lan which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-02-03 09:51:15 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration hildebrandglow_dcc which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-02-03 09:51:15 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-02-03 09:51:15 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration webrtc which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-02-03 09:51:15 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration magic_areas which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-02-03 09:51:15 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration dwains_dashboard which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-02-03 09:51:15 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration garbage_collection which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-02-03 09:51:15 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration fontawesome which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-02-03 09:51:15 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration xiaomi_cloud_map_extractor which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-02-03 09:51:17 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140276770678960] Received invalid command: energy/info
2022-02-03 09:51:20 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140276768971840] Received invalid command: mobile_app/push_notification_channel
2022-02-03 09:51:29 WARNING (MainThread) [homeassistant.components.statistics.sensor] The configuration parameter 'state_characteristic' will become mandatory in a future release of the statistics integration. Please add 'state_characteristic: mean' to the configuration of sensor 'galley_average_light' to keep the current behavior. Read the documentation for further details: https://www.home-assistant.io/integrations/statistics/
2022-02-03 09:51:29 WARNING (MainThread) [homeassistant.components.statistics.sensor] The configuration parameter 'state_characteristic' will become mandatory in a future release of the statistics integration. Please add 'state_characteristic: mean' to the configuration of sensor 'hallway_average_light' to keep the current behavior. Read the documentation for further details: https://www.home-assistant.io/integrations/statistics/
2022-02-03 09:51:29 WARNING (MainThread) [homeassistant.components.statistics.sensor] The configuration parameter 'state_characteristic' will become mandatory in a future release of the statistics integration. Please add 'state_characteristic: mean' to the configuration of sensor 'living_average_light' to keep the current behavior. Read the documentation for further details: https://www.home-assistant.io/integrations/statistics/
2022-02-03 09:51:29 WARNING (MainThread) [homeassistant.components.statistics.sensor] The configuration parameter 'state_characteristic' will become mandatory in a future release of the statistics integration. Please add 'state_characteristic: mean' to the configuration of sensor 'master_bedroom_average_light' to keep the current behavior. Read the documentation for further details: https://www.home-assistant.io/integrations/statistics/
2022-02-03 09:51:29 WARNING (MainThread) [homeassistant.components.statistics.sensor] The configuration parameter 'state_characteristic' will become mandatory in a future release of the statistics integration. Please add 'state_characteristic: mean' to the configuration of sensor 'office_average_light' to keep the current behavior. Read the documentation for further details: https://www.home-assistant.io/integrations/statistics/
2022-02-03 09:51:29 WARNING (MainThread) [homeassistant.components.statistics.sensor] The configuration parameter 'state_characteristic' will become mandatory in a future release of the statistics integration. Please add 'state_characteristic: mean' to the configuration of sensor 'stairs_average_light' to keep the current behavior. Read the documentation for further details: https://www.home-assistant.io/integrations/statistics/
2022-02-03 09:51:32 WARNING (MainThread) [custom_components.meross_lan] MerossDevice(2009223902001190831148e1e9344bb8) error in async_http_request: Server disconnected
2022-02-03 09:51:32 WARNING (MainThread) [custom_components.meross_lan] MerossDevice(2009222728525590831148e1e9343614) error in async_http_request: Server disconnected
2022-02-03 09:51:32 WARNING (MainThread) [custom_components.meross_lan] MerossDevice(2009221363906590831148e1e934418a) error in async_http_request: Server disconnected
2022-02-03 09:51:32 ERROR (SyncWorker_6) [homeassistant.components.google_maps.device_tracker] The cookie file provided does not provide a valid session. Please create another one and try again
2022-02-03 09:51:32 ERROR (MainThread) [homeassistant.components.device_tracker] Error setting up platform legacy google_maps
2022-02-03 09:51:38 WARNING (MainThread) [homeassistant.helpers.entity] Update of camera.xiaomi_cloud_map_extractor is taking over 10 seconds
2022-02-03 09:51:40 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform hildebrandglow_dcc is taking over 10 seconds.
2022-02-03 09:53:52 ERROR (Thread-2) [root] Uncaught thread exception
Traceback (most recent call last):
File "/usr/local/lib/python3.9/threading.py", line 973, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.9/threading.py", line 910, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.9/logging/handlers.py", line 1518, in _monitor
self.handle(record)
File "/usr/local/lib/python3.9/logging/handlers.py", line 1499, in handle
handler.handle(record)
File "/usr/local/lib/python3.9/logging/init.py", line 952, in handle
self.emit(record)
File "/usr/src/homeassistant/homeassistant/components/system_log/init.py", line 192, in emit
entry = LogEntry(record, stack, _figure_out_source(record, stack, self.hass))
File "/usr/src/homeassistant/homeassistant/components/system_log/init.py", line 99, in init
self.message = deque([record.getMessage()], maxlen=5)
File "/usr/local/lib/python3.9/logging/init.py", line 367, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
2022-02-03 09:53:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_consumption_today is taking over 10 seconds
2022-02-03 09:53:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_consumption_today is taking over 10 seconds
2022-02-03 09:53:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_cost_today is taking over 10 seconds
2022-02-03 09:53:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_cost_today is taking over 10 seconds
2022-02-03 09:55:26 ERROR (bellows.thread_0) [homeassistant] Error doing job: Exception in callback SerialTransport._call_connection_lost(None)
Traceback (most recent call last):
File "/usr/local/lib/python3.9/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.9/site-packages/serial_asyncio/init.py", line 417, in call_connection_lost
self.serial.close()
File "/usr/local/lib/python3.9/site-packages/serial/urlhandler/protocol_socket.py", line 104, in close
time.sleep(0.3)
File "/usr/src/homeassistant/homeassistant/util/async
.py", line 166, in protected_loop_func
check_loop(func, strict=strict)
File "/usr/src/homeassistant/homeassistant/util/async
.py", line 129, in check_loop
raise RuntimeError(
RuntimeError: Detected blocking call inside the event loop. This is causing stability issues. Please report issue
2022-02-03 09:55:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_consumption_today is taking over 10 seconds
2022-02-03 09:55:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_consumption_year is taking over 10 seconds
2022-02-03 09:55:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_tariff_standing is taking over 10 seconds
2022-02-03 09:55:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_consumption_today is taking over 10 seconds
2022-02-03 09:55:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_consumption_year is taking over 10 seconds
2022-02-03 09:55:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_tariff_standing is taking over 10 seconds
2022-02-03 09:55:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_cost_today is taking over 10 seconds
2022-02-03 09:55:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_cost_today is taking over 10 seconds
2022-02-03 09:57:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_consumption_today is taking over 10 seconds
2022-02-03 09:57:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_consumption_year is taking over 10 seconds
2022-02-03 09:57:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_tariff_standing is taking over 10 seconds
2022-02-03 09:57:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_consumption_today is taking over 10 seconds
2022-02-03 09:57:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_consumption_year is taking over 10 seconds
2022-02-03 09:57:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_tariff_standing is taking over 10 seconds
2022-02-03 09:57:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_cost_today is taking over 10 seconds
2022-02-03 09:57:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_cost_today is taking over 10 seconds
2022-02-03 09:58:31 WARNING (SyncWorker_23) [custom_components.hildebrandglow_dcc.glow] Error connecting to Glow ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2022-02-03 09:58:31 WARNING (SyncWorker_10) [custom_components.hildebrandglow_dcc.glow] Error connecting to Glow ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2022-02-03 09:59:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_consumption_today is taking over 10 seconds
2022-02-03 09:59:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_tariff_standing is taking over 10 seconds
2022-02-03 09:59:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_consumption_today is taking over 10 seconds
2022-02-03 09:59:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_cost_today is taking over 10 seconds
2022-02-03 09:59:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_cost_today is taking over 10 seconds
2022-02-03 10:00:32 WARNING (SyncWorker_27) [custom_components.hildebrandglow_dcc.glow] Error connecting to Glow ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2022-02-03 10:00:32 WARNING (SyncWorker_17) [custom_components.hildebrandglow_dcc.glow] Error connecting to Glow ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2022-02-03 10:01:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_consumption_today is taking over 10 seconds
2022-02-03 10:01:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_consumption_year is taking over 10 seconds
2022-02-03 10:01:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_tariff_standing is taking over 10 seconds
2022-02-03 10:01:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_consumption_today is taking over 10 seconds
2022-02-03 10:01:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_consumption_year is taking over 10 seconds
2022-02-03 10:01:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_tariff_standing is taking over 10 seconds
2022-02-03 10:01:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_cost_today is taking over 10 seconds
2022-02-03 10:01:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_cost_today is taking over 10 seconds
2022-02-03 10:02:14 WARNING (SyncWorker_21) [custom_components.hildebrandglow_dcc.glow] Error connecting to Glow ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2022-02-03 10:02:14 WARNING (SyncWorker_39) [custom_components.hildebrandglow_dcc.glow] Error connecting to Glow ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2022-02-03 10:02:32 WARNING (SyncWorker_38) [custom_components.hildebrandglow_dcc.glow] Error connecting to Glow ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2022-02-03 10:02:33 WARNING (SyncWorker_32) [custom_components.hildebrandglow_dcc.glow] Error connecting to Glow ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2022-02-03 10:02:33 WARNING (SyncWorker_28) [custom_components.hildebrandglow_dcc.glow] Error connecting to Glow ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2022-02-03 10:02:33 WARNING (SyncWorker_3) [custom_components.hildebrandglow_dcc.glow] Error connecting to Glow ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2022-02-03 10:02:54 WARNING (MainThread) [zigpy.appdb] Discarding _save_attribute event
2022-02-03 10:03:44 WARNING (MainThread) [zigpy.appdb] Discarding _save_attribute event
2022-02-03 10:03:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_consumption_today is taking over 10 seconds
2022-02-03 10:03:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_consumption_year is taking over 10 seconds
2022-02-03 10:03:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_tariff_standing is taking over 10 seconds
2022-02-03 10:03:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_consumption_today is taking over 10 seconds
2022-02-03 10:03:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_consumption_year is taking over 10 seconds
2022-02-03 10:03:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_tariff_standing is taking over 10 seconds
2022-02-03 10:03:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_cost_today is taking over 10 seconds
2022-02-03 10:03:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_cost_today is taking over 10 seconds
2022-02-03 10:04:14 WARNING (SyncWorker_42) [custom_components.hildebrandglow_dcc.glow] Error connecting to Glow ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2022-02-03 10:04:14 WARNING (SyncWorker_0) [custom_components.hildebrandglow_dcc.glow] Error connecting to Glow ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2022-02-03 10:05:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_consumption_today is taking over 10 seconds
2022-02-03 10:05:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_consumption_year is taking over 10 seconds
2022-02-03 10:05:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_tariff_standing is taking over 10 seconds
2022-02-03 10:05:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_consumption_today is taking over 10 seconds
2022-02-03 10:05:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_consumption_year is taking over 10 seconds
2022-02-03 10:05:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_tariff_standing is taking over 10 seconds
2022-02-03 10:05:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_cost_today is taking over 10 seconds
2022-02-03 10:05:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_cost_today is taking over 10 seconds
2022-02-03 10:06:14 WARNING (SyncWorker_17) [custom_components.hildebrandglow_dcc.glow] Error connecting to Glow ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2022-02-03 10:06:14 WARNING (SyncWorker_20) [custom_components.hildebrandglow_dcc.glow] Error connecting to Glow ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2022-02-03 10:06:14 WARNING (SyncWorker_34) [custom_components.hildebrandglow_dcc.glow] Error connecting to Glow ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2022-02-03 10:07:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_consumption_today is taking over 10 seconds
2022-02-03 10:07:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_consumption_year is taking over 10 seconds
2022-02-03 10:07:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_tariff_standing is taking over 10 seconds
2022-02-03 10:07:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_consumption_today is taking over 10 seconds
2022-02-03 10:07:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_consumption_year is taking over 10 seconds
2022-02-03 10:07:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_tariff_standing is taking over 10 seconds
2022-02-03 10:07:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_cost_today is taking over 10 seconds
2022-02-03 10:07:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_cost_today is taking over 10 seconds
2022-02-03 10:09:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_consumption_today is taking over 10 seconds
2022-02-03 10:09:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_consumption_year is taking over 10 seconds
2022-02-03 10:09:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_tariff_standing is taking over 10 seconds
2022-02-03 10:09:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_consumption_today is taking over 10 seconds
2022-02-03 10:09:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_consumption_year is taking over 10 seconds
2022-02-03 10:09:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_tariff_standing is taking over 10 seconds
2022-02-03 10:09:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_cost_today is taking over 10 seconds
2022-02-03 10:09:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_cost_today is taking over 10 seconds
2022-02-03 10:11:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_consumption_today is taking over 10 seconds
2022-02-03 10:11:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_tariff_standing is taking over 10 seconds
2022-02-03 10:11:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_consumption_today is taking over 10 seconds
2022-02-03 10:11:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_consumption_year is taking over 10 seconds
2022-02-03 10:11:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_tariff_standing is taking over 10 seconds
2022-02-03 10:11:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_cost_today is taking over 10 seconds
2022-02-03 10:11:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_cost_today is taking over 10 seconds
2022-02-03 10:13:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_consumption_today is taking over 10 seconds
2022-02-03 10:13:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_tariff_standing is taking over 10 seconds
2022-02-03 10:13:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_consumption_today is taking over 10 seconds
2022-02-03 10:13:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_cost_today is taking over 10 seconds
2022-02-03 10:13:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_cost_today is taking over 10 seconds
2022-02-03 10:15:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_consumption_today is taking over 10 seconds
2022-02-03 10:15:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_consumption_year is taking over 10 seconds
2022-02-03 10:15:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_tariff_standing is taking over 10 seconds
2022-02-03 10:15:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_consumption_today is taking over 10 seconds
2022-02-03 10:15:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_consumption_year is taking over 10 seconds
2022-02-03 10:15:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_tariff_standing is taking over 10 seconds
2022-02-03 10:15:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_cost_today is taking over 10 seconds
2022-02-03 10:15:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_cost_today is taking over 10 seconds
2022-02-03 10:16:12 ERROR (bellows.thread_0) [homeassistant] Error doing job: Exception in callback SerialTransport._call_connection_lost(None)
Traceback (most recent call last):
File "/usr/local/lib/python3.9/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.9/site-packages/serial_asyncio/init.py", line 417, in call_connection_lost
self.serial.close()
File "/usr/local/lib/python3.9/site-packages/serial/urlhandler/protocol_socket.py", line 104, in close
time.sleep(0.3)
File "/usr/src/homeassistant/homeassistant/util/async
.py", line 166, in protected_loop_func
check_loop(func, strict=strict)
File "/usr/src/homeassistant/homeassistant/util/async
.py", line 129, in check_loop
raise RuntimeError(
RuntimeError: Detected blocking call inside the event loop. This is causing stability issues. Please report issue
2022-02-03 10:16:29 WARNING (SyncWorker_18) [custom_components.hildebrandglow_dcc.glow] Error connecting to Glow ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2022-02-03 10:16:29 WARNING (SyncWorker_12) [custom_components.hildebrandglow_dcc.glow] Error connecting to Glow ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2022-02-03 10:16:35 WARNING (MainThread) [zigpy.appdb] Discarding _save_attribute event
2022-02-03 10:17:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_consumption_today is taking over 10 seconds
2022-02-03 10:17:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_consumption_year is taking over 10 seconds
2022-02-03 10:17:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_tariff_standing is taking over 10 seconds
2022-02-03 10:17:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_consumption_today is taking over 10 seconds
2022-02-03 10:17:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_consumption_year is taking over 10 seconds
2022-02-03 10:17:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_tariff_standing is taking over 10 seconds
2022-02-03 10:17:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_cost_today is taking over 10 seconds
2022-02-03 10:17:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_cost_today is taking over 10 seconds
2022-02-03 10:18:29 WARNING (SyncWorker_18) [custom_components.hildebrandglow_dcc.glow] Error connecting to Glow ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2022-02-03 10:18:29 WARNING (SyncWorker_37) [custom_components.hildebrandglow_dcc.glow] Error connecting to Glow ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2022-02-03 10:18:29 WARNING (SyncWorker_0) [custom_components.hildebrandglow_dcc.glow] Error connecting to Glow ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2022-02-03 10:19:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_consumption_today is taking over 10 seconds
2022-02-03 10:19:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_consumption_year is taking over 10 seconds
2022-02-03 10:19:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_tariff_standing is taking over 10 seconds
2022-02-03 10:19:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_consumption_today is taking over 10 seconds
2022-02-03 10:19:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_consumption_year is taking over 10 seconds
2022-02-03 10:19:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_tariff_standing is taking over 10 seconds
2022-02-03 10:19:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_cost_today is taking over 10 seconds
2022-02-03 10:19:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_cost_today is taking over 10 seconds
2022-02-03 10:20:30 WARNING (SyncWorker_13) [custom_components.hildebrandglow_dcc.glow] Error connecting to Glow ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2022-02-03 10:20:30 WARNING (SyncWorker_5) [custom_components.hildebrandglow_dcc.glow] Error connecting to Glow ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2022-02-03 10:20:30 WARNING (SyncWorker_1) [custom_components.hildebrandglow_dcc.glow] Error connecting to Glow ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2022-02-03 10:20:30 WARNING (SyncWorker_12) [custom_components.hildebrandglow_dcc.glow] Error connecting to Glow ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2022-02-03 10:21:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_consumption_today is taking over 10 seconds
2022-02-03 10:21:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_consumption_year is taking over 10 seconds
2022-02-03 10:21:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_tariff_standing is taking over 10 seconds
2022-02-03 10:21:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_consumption_today is taking over 10 seconds
2022-02-03 10:21:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_consumption_year is taking over 10 seconds
2022-02-03 10:21:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_tariff_standing is taking over 10 seconds
2022-02-03 10:21:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_cost_today is taking over 10 seconds
2022-02-03 10:21:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_cost_today is taking over 10 seconds
2022-02-03 10:22:14 WARNING (SyncWorker_47) [custom_components.hildebrandglow_dcc.glow] Error connecting to Glow ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2022-02-03 10:22:14 WARNING (SyncWorker_13) [custom_components.hildebrandglow_dcc.glow] Error connecting to Glow ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2022-02-03 10:22:14 WARNING (SyncWorker_17) [custom_components.hildebrandglow_dcc.glow] Error connecting to Glow ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2022-02-03 10:23:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_consumption_today is taking over 10 seconds
2022-02-03 10:23:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_consumption_year is taking over 10 seconds
2022-02-03 10:23:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_tariff_standing is taking over 10 seconds
2022-02-03 10:23:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_consumption_today is taking over 10 seconds
2022-02-03 10:23:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_consumption_year is taking over 10 seconds
2022-02-03 10:23:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_tariff_standing is taking over 10 seconds
2022-02-03 10:23:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_cost_today is taking over 10 seconds
2022-02-03 10:23:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_cost_today is taking over 10 seconds

Cant get entities to show up in Energy panel

Hi I've put this integration in all seems to work fine in getting data from bright. added the two year figures into logging but can't seen to get the entities to show up in the energy panel for selection any help would be great
Mark HA 2022.6.7

Looks logged in but nothing is "available" in Home assistant

Describe the bug
Upgraded to 0.51 yesterday and had no information come through since then.

To Reproduce
Steps to reproduce the behaviour:

No steps to produce, just all entities say unavailable

image

Expected behaviour
A clear and concise description of what you expected to happen.

Screenshots
This is electricity integration. Gas is exactly the same
image

Version
What version of the integration and what version of Home Assistant are you running?
0.5 was OK but upgraded to 0.51 and it stopped

Data is in the Bright App

I saw another post saying 0.52 fixes an issue but its not available as beta or upgradable in Home Assistant yet to try.

Thanks

Martyn

v0.5.1 authentication error

Describe the bug

2021-11-08 10:32:03 DEBUG (SyncWorker_7) [custom_components.hildebrandglow_dcc.glow] Post 1: (https://api.glowmarkt.com/api/v0-1/auth)
2021-11-08 10:32:03 ERROR (MainThread) [custom_components.hildebrandglow_dcc.config_flow] Unexpected exception
Traceback (most recent call last):
  File "/config/custom_components/hildebrandglow_dcc/config_flow.py", line 60, in async_step_user
    info = await validate_input(self.hass, user_input)
  File "/config/custom_components/hildebrandglow_dcc/config_flow.py", line 37, in validate_input
    glow = await hass.async_add_executor_job(
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/hildebrandglow_dcc/glow.py", line 46, in authenticate
    response = requests.http.post(url, json=auth, headers=headers)
AttributeError: module 'requests' has no attribute 'http'

To Reproduce

  1. add latest version v0.5.1
  2. try setting up the integration

Expected behaviour
to authorise no problem

Screenshots

Version
Home Assistant 2021.11.1 - add on v0.5.1

Debug log
Enable debug logging by following the instructions here

Additional context
Add any other context about the problem here.

Add multiple accounts

I'd like to be able to add multiple accounts of this integration.

i.e. my own / parents / friend

in order to be able to compare usage between them.

Currently, if I simply add the integration again with another account everything seems to work perfectly. I can configure everything I need, rename entities, etc, setup the dashboard to do the comparisons. Perfect.

Right up to where I next restart HA:- at that point the devices from one instance are copied to the other AND all the entities from one instance appear to have been moved to the other instance at least that's how the GUI shows it - they are also then marked as 'Restored'. The screen grab here shows this (the two area's are essentially the two difference instances).

image

From that point forward only one instance is then working.

Am I missing something simple or is this expected behaviour - and if so, can it be fixed to allow multiple instances ?

Thanks!

Aggregate Week and Month Values? (Improvement)

HI
Firstly, thank you so much for this integration its awesome as I am finally able to add Gas to my HA instance.

I wonder if its possible to add week and month values as I note only today and year values.

Rossk

Actual Meter Reads?

I’m not sure if I’m missing this or not, but i would love to see an actual meter reading. - is that a possibility, or does it already happen and I’ve missed it?

Thank you.

Unable to install into Home Assistant

Describe the bug
Doesn't appear in the HA integrations list to install.
Automatic install of the repository via HACS and manual install have both been tried and failed.
Other integrations thru HACS have installed fine.

To Reproduce
Steps to reproduce the behaviour:

Followed instructions as supplied in readme.md

Expected behaviour
To be able to install the integration

Screenshots
N/A

Version
What version of the integration and what version of Home Assistant are you running?
0.5.2 and HA 2022.2.3

Daylight Savings Time

Hi,

I've noticed that all of my data is 1 hour out (energy used between 7pm and 8pm BST is showing up as being used between 8pm and 9pm, and 0 energy used between midnight and 1am) - I suspect this is because HA is recognising daylight savings time, but the smart meters are not?

Thanks

Tom

Cannot authenticate with Glow

Describe the bug
Try to login to Glow - receive an error (screenshot below)

To Reproduce

  1. Install Hildebrand Glow (DCC) Integration via HACS
  2. Restart HA
  3. Config > Integration > Add Integration > pick Glow
  4. Receive login popup
  5. Unable to login

Expected behaviour
To be able to login to Glow

Screenshots
image

Version
Integration 0.5.1
HA 2021.11.1

Debug log

This error originated from a custom integration.

Logger: custom_components.hildebrandglow_dcc.config_flow
Source: custom_components/hildebrandglow_dcc/glow.py:46
Integration: Hildebrand Glow (DCC) (documentation, issues)
First occurred: 22:10:16 (1 occurrences)
Last logged: 22:10:16

Unexpected exception
Traceback (most recent call last):
  File "/config/custom_components/hildebrandglow_dcc/config_flow.py", line 60, in async_step_user
    info = await validate_input(self.hass, user_input)
  File "/config/custom_components/hildebrandglow_dcc/config_flow.py", line 37, in validate_input
    glow = await hass.async_add_executor_job(
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/hildebrandglow_dcc/glow.py", line 46, in authenticate
    response = requests.http.post(url, json=auth, headers=headers)
AttributeError: module 'requests' has no attribute 'http'

Additional context
Could this be related to bug #69?

No data

As of 29/08/21 12:00 Home assistant is not getting any data, status unavailable.
Removing and readding integration dose not help.

Intermittent results

Describe the bug
I am seeing intermittent results, when looking at the output via the Energy integration.
There are no errors showing in the log.
86E4FA53-5706-4A29-A47F-17FF88C4262B
Version
This seems to have occurred since the 0.6 rollout.

Debugging
By removing the if statement to only check for data in 5 minute windows, the error goes away.
(Line 210 sensor.py)

I cannot yet see what the issue is, this check was the advice from the Glow forum.

Is anyone else seeing the issue?

Final data update of the day

The last 30 minutes of data is missing from the day due to polling times. May I suggest one final update is triggered just before midnight too to complete the day's data as close as possible?

Glow API data error Tarrif (list index out of range)

Glow API data error (Electric Tariff Standing): (list index out of range)

Glow API data error (Gas Tariff Standing): (list index out of range)

Getting above errors in logs when integration starts, I also notice tariff information is not visible in Bright App, if it helps I am on octopus energy flexible tariff.

Is there a way this can be pulled or manually entered to ensure accurate cost usage?

I contacted Glow and this is what they said which does not make a lot of sense :)

Our source of truth for pricing data is your meters and it is your energy supplier who sets the pricing data (standing charge and rate).

Your energy display may have correct costs of consumption while the Bright App does not because the display retrieves the calculated cost of consumption from the meter whereas Bright retrieves the standing charge and rate from the tariff field on your meter and then applies that to the consumption (which is how we support tariffs like Octopus Agile). Your supplier has probably set the cost of consumption at meter level but have not set the separate standing charge and rate with the different rates for the time of use.

Pull through of historical data?

Hi,

The Hildebrand Bright app allows you to look back through at least 12 months worth of energy data from Gas/Electricity usage. It doesn't look like at present, that the integration pulls through any historical data. Is it feasible to pull down this historical usage information so it could be imported in to HA?

Issue / Bug Roll Up

There have been a number of issue reports and PRs recently, but @HandyHat is not currently active.

We have no idea of @HandyHat personal circumstances, and fundamentaly hope they are OK, and will be able to accept a PR soon.

This issue, and associated PR is a roll up of issues, so when @HandyHat come online it will be easy for them to trace what needs doing.

Issues resolved

  • #55 - reduces the number of lookup, by backing of unceassary calls to the API
  • #78 - better error handling for a DCC issue
  • #117 - better error handling
  • #118 - better error handling
  • #123 - based on information from Glow duing the outage, the number of unnecassary calls to the API have been reduced.
  • #126 - based on information from Glow duing the outage, the number of unnecassary calls to the API have been reduced.

PR Roll up

This PR contains a roll up of the following PRs, that could be closed if the PR accepted.

  • #77 - alternative solution implemented - as discussed in thread
  • #135 - alternative solution implemented. Rather than set the time to 30 minutes. Run it every 5 minutes, but only call glow API if between 00 and 05 or 30 and 35 minutes past the hour - as advised on Glow forum.
  • #136 - alternative solution implemented. Rather than set the time to 30 minutes. Run it every 5 minutes, but only call glow API if between 00 and 05 or 30 and 35 minutes past the hour - as advised on Glow forum.

Using the PR prior to @HandyHat merging.

The simplest method would be to copy this version of sensor.py (Make sure you use this version, from the dev branch, and not from the main branch) to custom_components/hildebrandglow_dcc and restart HA.
Previous attempts to get HACS to use a forked branch caused lots of issues, and lots of tidying up when @HandyHat was able to accept the PR.
We can look at this in time, if @HandyHat does not come back online in the near future.

Note: When you restart, it can take upto 5 minute for data to pull through. Please give it time before raising issues saying you have no data.

Tariff Data: If you are no seeing Tariff data - check the Glow APP. If there in not data in Glow, do not report an error here - this is nothing this Integration can do - you need to report the issue to your energy provider.

Issues that cloud probably be closed...

  • #59 - This data is already available. Suggest issue is closed.
  • #83 - updates are provided every 30 minutes. Suggest issue is closed.
  • #110 - Data is available, can be configured. Suggest issue is closed.
  • #116 - I don't think this is possible. Suggest issue is closed

Issue to keep open

  • #99 - this needs some work in the initialision code. Not clear how many people needed this. Keep open as a feature request.

Actual meter reading?

Would it be possible to pull in the actual meter reading number for gas & electricity or is this not something that is provided via the Hildebrand Glow service?

Entities units of measurement + more

Hi @HandyHat and @ColinRobbins

A few bits that i found wrong with the entities:

  1. sensor.electric_consumption_today and sensor.gas_consumption_today are missing the unit of measurement (kWh) - this is in the graph
    image
    image

  2. same applies to sensor.electric_consumption_year and sensor.gas_consumption_year
    image
    image

  3. sensor.electric_cost_today and sensor.gas_cost_today are missing the unit of measurement (currency as per instance setting?) - this is in the graph. This works fine for standing charge entities
    image
    image
    image

  4. sensor.electric_consumption_year_cost and sensor.gas_consumption_year_cost
    4.1 have the wrong unit of measurement. For me the graph is showing EUR. This is not the case for standing charge. I must admit that i forgot to change my currency to GBP before installing the integration. Could this be the issue?
    image
    image

4.2 Wouldn't the name Electric Cost (Yearly) be better? This will match Electric Cost (Today)
image

4.3 They do not have unique_id, so they can't be edited in HA - all the others are fine
image
image

I am not sure if some of these were by design (or even limitations) or not, so please don't think i am throwing stones. But if they were not by design maybe they have just been overlooked. I know how it is when you stare at your own code for hours, you are starting to miss things.

Let me know if I can be of any further help

Version
What version of the integration and what version of Home Assistant are you running?
HA 2021.11.5
Integration v0.5.2

Keep getting Error in Logs

This is a constant error i get on every reboot of HA.

Version core-2021.12.9
Installation Type Home Assistant OS
Development false
Supervisor true
Docker true
User root
Virtual Environment false
Python Version 3.9.7
Operating System Family Linux
Operating System Version 5.10.88
CPU Architecture x86_64
Timezone Europe/London
Glow API data error (Electric Tariff Rate): (list index out of range) 09:48:31 – (ERROR) Hildebrand Glow (DCC) (custom integration) - message first occurred at 09:48:31 and shows up 2 times Glow API data error (Electric Tariff Standing): (list index out of range) 09:46:31 – (ERROR) Hildebrand Glow (DCC) (custom integration) - message first occurred at 09:46:31 and shows up 2 times

Invalid Reading?

I received an erroneous reading:

image

Statistics table now contains a big jump between 0800 and 0900:

sqlite> select * from statistics where metadata_id = 131 order by created DESC limit 24
   ...> ;
id|created|metadata_id|start|mean|min|max|last_reset|state|sum
538628|2022-05-22 14:00:10.397682|131|2022-05-22 13:00:00.000000|||||529.06|442.549
538520|2022-05-22 13:00:10.486244|131|2022-05-22 12:00:00.000000|||||528.869|442.358
538412|2022-05-22 12:00:10.387409|131|2022-05-22 11:00:00.000000|||||528.827|442.316
538304|2022-05-22 11:00:10.400448|131|2022-05-22 10:00:00.000000|||||528.825|442.314
538196|2022-05-22 10:00:10.393659|131|2022-05-22 09:00:00.000000|||||528.796|442.285
538088|2022-05-22 09:00:10.310056|131|2022-05-22 08:00:00.000000|||||528.796|442.285
537980|2022-05-22 08:00:10.427848|131|2022-05-22 07:00:00.000000|||||516.444|429.933
537872|2022-05-22 07:00:10.340629|131|2022-05-22 06:00:00.000000|||||516.444|429.933
537764|2022-05-22 06:00:10.830822|131|2022-05-22 05:00:00.000000|||||516.443|429.932
537656|2022-05-22 05:00:10.453906|131|2022-05-22 04:00:00.000000|||||516.287|429.776
537548|2022-05-22 04:00:10.428892|131|2022-05-22 03:00:00.000000|||||516.139|429.628
537440|2022-05-22 03:00:10.422583|131|2022-05-22 02:00:00.000000|||||515.948|429.437
537332|2022-05-22 02:00:10.396159|131|2022-05-22 01:00:00.000000|||||513.724|427.213
537224|2022-05-22 01:00:10.405518|131|2022-05-22 00:00:00.000000|||||513.724|427.213
537116|2022-05-22 00:00:10.403130|131|2022-05-21 23:00:00.000000|||||513.724|427.213
537008|2022-05-21 23:00:10.414657|131|2022-05-21 22:00:00.000000|||||513.724|427.213
536900|2022-05-21 22:00:10.411994|131|2022-05-21 21:00:00.000000|||||513.724|427.213
536792|2022-05-21 21:00:10.378476|131|2022-05-21 20:00:00.000000|||||513.724|427.213
536684|2022-05-21 20:00:10.413584|131|2022-05-21 19:00:00.000000|||||513.724|427.213
536576|2022-05-21 19:00:10.459376|131|2022-05-21 18:00:00.000000|||||513.137|426.626
536468|2022-05-21 18:00:10.468323|131|2022-05-21 17:00:00.000000|||||512.447|425.936
536360|2022-05-21 17:00:10.451888|131|2022-05-21 16:00:00.000000|||||512.446|425.935
536252|2022-05-21 16:00:10.484327|131|2022-05-21 15:00:00.000000|||||512.446|425.935
536144|2022-05-21 15:00:10.418397|131|2022-05-21 14:00:00.000000|||||512.445|425.934

Not 100% if fixing the value and all those above would work? Would I just get another large jump later on?

My actual usage according to the bright app is (I have solar):

0800 - 0
0830 - 0
0900 - 0
0930 - 0.03
1000 - 0.0

Calling glow api too frequently

We (glowmarkt) have been seeing a huge number of calls to the resource system since your last release - can you contact me directly so I can work with you on this - thanks clive @ hildebrand . co . uk
Thank you

Installing from HACS - Integration not available

Describe the bug
Adding the repository within HACS, then installing the integration and restarting. When I click "Add Integration" under Configuration, Hildebrand Glow is not an option".

To Reproduce
Steps to reproduce the behaviour: Running HA 2021.9.7, follow steps to install ha-hildebrandglow-dcc from HACS.

Expected behaviour
Expecting to see Hildebrand Glow as an option when adding a new Integration in Config.

Version
What version of the integration and what version of Home Assistant are you running?
Runnina HA 2021.9.7 and have tried with latest Main version of integration + v0.3.3

Entities not available

Describe the bug
all my entities are showing as unavailable however all data is available in the app - I've readded the integration and was able to login without issue however the problem remains.

To Reproduce
Steps to reproduce the behaviour:

  1. setup integration

Expected behaviour
entities should be available

Screenshots
image

Version
6.0 2022.6.7

Debug log

2022-06-28 08:54:58 DEBUG (SyncWorker_2) [custom_components.hildebrandglow_dcc.glow] get 1: (https://api.glowmarkt.com/api/v0-1/resource)
2022-06-28 08:56:55 DEBUG (SyncWorker_7) [custom_components.hildebrandglow_dcc.glow] Post 1: (https://api.glowmarkt.com/api/v0-1/auth)
2022-06-28 08:56:55 DEBUG (SyncWorker_7) [custom_components.hildebrandglow_dcc.glow] Invalid data: {'valid': False}
2022-06-28 08:57:02 DEBUG (SyncWorker_8) [custom_components.hildebrandglow_dcc.glow] Post 1: (https://api.glowmarkt.com/api/v0-1/auth)
2022-06-28 08:57:02 DEBUG (SyncWorker_2) [custom_components.hildebrandglow_dcc.glow] get 1: (https://api.glowmarkt.com/api/v0-1/resource)

add metric for last poll time

Is your feature request related to a problem? Please describe.
the is currently an issue with the API and retrieving data (about 2.30am it just stopped)

Describe the solution you'd like
a metric to show the last poll time of your smart meters,
so you can do something when the is an outage like a notification

Describe alternatives you've considered
checking the raw API directly shows the lasttime they polled your smart meter
https://api.glowmarkt.com/api/v0-1/resource/{resourceId}/last-time

{
  "status": "OK",
  "name": "electricity consumption",
  "resourceTypeId": "e3a5db34-6e0c-4221-9653-8d33e27511ba",
  "resourceId": "5dbf33f3-1410-4334-a703-a3f9ad645a93",
  "classifier": "electricity.consumption",
  "data": {
    "lastTs": 1635820200
  }
}

Additional context

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.