Giter VIP home page Giter VIP logo

danielhiversen / home_assistant_tibber_custom Goto Github PK

View Code? Open in Web Editor NEW
74.0 8.0 15.0 320 KB

Display Tibber prices and energy consumption as a graph. Tibber is available in Germany, Norway and Sweden Tibber has helped tens of thousands of new customers each month in Sweden, Norway & Germany to lower their energy bill and consumption. Tibber is using digital technology to make electricity consumption smarter. If you use this link to signup for Tibber, you get 50 euro to buy smart home products in the Tibber store: https://invite.tibber.com/6fd7a447

License: Apache License 2.0

Python 100.00%
tibber home-assistant hacs

home_assistant_tibber_custom's Introduction

Tibber Custom ⚡

Validate with hassfest GitHub Release hacs_badge

Display Tibber prices and your consumption as a graph. Tibber is available in Germany, Norway and Sweden Tibber has helped tens of thousands of new customers each month in Sweden, Norway & Germany to lower their energy bill and consumption. Tibber is using digital technology to make electricity consumption smarter. The consumption is only shown if you have a realtime meter (Tibber Pulse or Watty)

If you use this link to signup for Tibber, you get 50 euro to buy smart home products in the Tibber store: https://invite.tibber.com/6fd7a447

Buy me a coffee :)

imgage

imgage

Install

https://hacs.xyz/docs/faq/custom_repositories

Configuration

The Tibber component needs to be configurated first: https://www.home-assistant.io/integrations/tibber/

In configuration.yaml:

tibber_custom:

You will then get a camera.YOUR_ADRRESS that displays the current graphic.

home_assistant_tibber_custom's People

Contributors

danielhiversen avatar erijo avatar espenfjo avatar postlund avatar rangoy 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

home_assistant_tibber_custom's Issues

Feature request

Is it possible to add functionality to read the value of sold electricity as well as bought in local currency?

self._home.last_data_timestamp is NoneType

Weird problem... restarted several times, no effect.
Main tibber integration seems to work fine.

Logger: aiohttp.server
Source: /usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py:421
First occurred: 16:32:11 (16 occurrences)
Last logged: 20:08:48

Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 452, in _handle_request
resp = await request_handler(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 543, in _handle
resp = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_middlewares.py", line 114, in impl
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 92, in security_filter_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 83, in forwarded_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 88, in ban_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp_session/init.py", line 199, in factory
response = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 295, in auth_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 32, in headers_middleware
response = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 73, in handle
result = await handler(request, **request.match_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 815, in get
return await self.handle(request, camera)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 833, in handle
image = await _async_get_image(
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 187, in _async_get_image
else await camera.async_camera_image(width=width, height=height)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/tibber_custom/camera.py", line 49, in async_camera_image
await self._generate_fig(width or DEFAULT_WIDTH, height or DEFAULT_HEIGHT)
File "/config/custom_components/tibber_custom/camera.py", line 56, in _generate_fig
if (self._home.last_data_timestamp - dt_util.now()).total_seconds() > 11 * 3600:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
TypeError: unsupported operand type(s) for -: 'NoneType' and 'datetime.datetime'

Electricity Price two hours old, should be current price

The Tibber integration shows a two-hour old value for the current price.
I have found two Issues that are closed on this topic, without finding what to do. I have tried removing and adding the integration with no difference. I have Core 10.5 installed and this has not helped either.

Electricity Price two hours old, should be current price #80603

Tibber integration seems to report the wrong price since 2022.10.0 #79701

Graph not updating.

After various updates my Tibber Custom graph no longger updates. Tried to reinstall Tibber Custom a couple of times. And also tried to delete the graph manually. Resulting in no graph at all. It no longer saves the .png file. Anyone else with this problem?

Installation Problem

Hello i loaded the integration, tibber integration is running . what do i have to do now so that the prices for the entire day are displayed to me?

No camera visible with error 'Could not read camera De Veste image from file'

When setting up the integration, the camera feed is empty and the log shows an error
image

Logger: homeassistant.components.local_file.camera
Source: components/local_file/camera.py:78
Integration: local_file ([documentation](https://www.home-assistant.io/integrations/local_file), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+local_file%22))
First occurred: 09:50:15 (1 occurrences)
Last logged: 09:50:15

Could not read camera De Veste image from file: /config/www/prices_De Veste.png

How to rename/name the tibber energy sensor?

How can I change (or re-setup) the tibber energy sensor with a sensible and short name?

Right now I have something like this in the energy dashboard
tibber:energy_consumption_783b7040e25640d097xxxxxxxx12456

Would prefer something like tibber:total_consumption (that fits the UI)

Missing camera.YOUR_ADRRESS

I have installed and configured the Tibber integration, and have 2 devices and 41 entities from the integration. These are spread across two different locations (home and the cabin).

I then added this repository as a custom repository in HACS, and finally added the following in configuration.yaml:
tibber_custom:

However, after restarting Home Assistant, I can`t find any entity named camera.YOUR_ADRRESS.

Could this be due to the fact that two locations is available in the Tibber account? Or should the integration handle that and simply add one camera per address?

Camera entity does not support requesting width and height, please open an issue with the integration author

Been working fine for a long time but after adding a Pulse and adding a nickname in the Tibber app something broke and the camera image stoped updating.

Tried reinstalling the component with no difference.

Completly removing the component and installing it again rendered the following errors and no image generated in 'www'

The camera entity camera.blah_blah does not support requesting width and height, please open an issue with the integration author

Could not read camera blah blah image from file: /config/www/blah_blah road 15.png

Consumtion not shown

Hi,
Got tibber_custom configured and correctly shows todays pricing.
I also have Tibber pulse and get my consumption into HA but it is now shown on the graph/camera.
Is there anything I need to do to get it to show?

[Enhancement] Add support for external energy meters

I have Tibber but no Pulse or Watty. I do have is an home built energy meter that provide real time information.

A possible enhancement would be that a sensor could be provided for the hourly consumption to replace the once from Tibber.

error message: Could not find currency

I get an error after installing the tibber_custom (log below) and I suspect that the reason for the error can be that I have signed up with tibber. But the switch from my previous supplier to tibber is not effective yet.

The following fields are missing (Unknown) from the data I get from tibber:
Monthly cost 1etg -> Unknown
Monthly net consumption 1etg ->Unknown
Monthly peak hour consumption 1etg ->Unknown
Time of max hour consumption 1etg ->Unknown

The log

2022-09-26 22:09:29.771 ERROR (MainThread) [tibber] Could not find currency.
2022-09-26 22:09:31.288 ERROR (MainThread) [tibber] Could not find currency.
2022-09-26 22:09:31.440 ERROR (MainThread) [homeassistant.components.sensor] tibber: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 493, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 703, in async_device_update
await task
File "/usr/src/homeassistant/homeassistant/components/tibber/sensor.py", line 374, in async_update
self._attr_native_value, price_level, self._last_updated = res
TypeError: cannot unpack non-iterable NoneType object
2022-09-26 22:09:32.282 ERROR (MainThread) [homeassistant.components.sensor] tibber: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 493, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 703, in async_device_update
await task
File "/usr/src/homeassistant/homeassistant/components/tibber/sensor.py", line 374, in async_update
self._attr_native_value, price_level, self._last_updated = res
TypeError: cannot unpack non-iterable NoneType object

What to expect from this?

Hi, Daniel!
You do a great job with AI, Tibber and Easee. Appreciate it!

I was gonna test this add-on, and has installed it through HACS, and was prompted for an update today to versjon 0.2.
I do have the Tibber integration running, and Pulse is reporting values.

What would I expect from the timber_custom integration?
This is in my configuration.yaml, but nothing seems to show in regard to new sensors or whatever I would expect...

tibber:
  access_token: !secret tibber_access_token
tibber_custom:

No Image generated

this is from the log:

2022-03-22 09:41:26 DEBUG (MainThread) [custom_components.tibber_custom.camera] Failed to generate image
Traceback (most recent call last):
File "/config/custom_components/tibber_custom/camera.py", line 211, in _generate_fig
await self.hass.async_add_executor_job(fig.savefig, self._path)
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/matplotlib/figure.py", line 3019, in savefig
self.canvas.print_figure(fname, **kwargs)
File "/usr/local/lib/python3.9/site-packages/matplotlib/backend_bases.py", line 2319, in print_figure
result = print_method(
File "/usr/local/lib/python3.9/site-packages/matplotlib/backend_bases.py", line 1648, in wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/matplotlib/_api/deprecation.py", line 412, in wrapper
return func(*inner_args, **inner_kwargs)
File "/usr/local/lib/python3.9/site-packages/matplotlib/backends/backend_agg.py", line 540, in print_png
FigureCanvasAgg.draw(self)
File "/usr/local/lib/python3.9/site-packages/matplotlib/backends/backend_agg.py", line 436, in draw
self.figure.draw(self.renderer)
File "/usr/local/lib/python3.9/site-packages/matplotlib/artist.py", line 73, in draw_wrapper
result = draw(artist, renderer, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/matplotlib/artist.py", line 50, in draw_wrapper
return draw(artist, renderer)
File "/usr/local/lib/python3.9/site-packages/matplotlib/figure.py", line 2810, in draw
mimage._draw_list_compositing_images(
File "/usr/local/lib/python3.9/site-packages/matplotlib/image.py", line 132, in _draw_list_compositing_images
a.draw(renderer)
File "/usr/local/lib/python3.9/site-packages/matplotlib/artist.py", line 50, in draw_wrapper
return draw(artist, renderer)
File "/usr/local/lib/python3.9/site-packages/matplotlib/axes/_base.py", line 3046, in draw
self._update_title_position(renderer)
File "/usr/local/lib/python3.9/site-packages/matplotlib/axes/_base.py", line 2986, in _update_title_position
bb = ax.xaxis.get_tightbbox(renderer)
File "/usr/local/lib/python3.9/site-packages/matplotlib/axis.py", line 1103, in get_tightbbox
ticks_to_draw = self._update_ticks()
File "/usr/local/lib/python3.9/site-packages/matplotlib/axis.py", line 1045, in _update_ticks
major_locs = self.get_majorticklocs()
File "/usr/local/lib/python3.9/site-packages/matplotlib/axis.py", line 1277, in get_majorticklocs
return self.major.locator()
File "/usr/local/lib/python3.9/site-packages/matplotlib/dates.py", line 1340, in call
dmin, dmax = self.viewlim_to_dt()
File "/usr/local/lib/python3.9/site-packages/matplotlib/dates.py", line 1125, in viewlim_to_dt
return num2date(vmin, self.tz), num2date(vmax, self.tz)
File "/usr/local/lib/python3.9/site-packages/matplotlib/dates.py", line 528, in num2date
return _from_ordinalf_np_vectorized(x, tz).tolist()
File "/usr/local/lib/python3.9/site-packages/numpy/lib/function_base.py", line 2163, in call
return self._vectorize_call(func=func, args=vargs)
File "/usr/local/lib/python3.9/site-packages/numpy/lib/function_base.py", line 2246, in _vectorize_call
outputs = ufunc(*inputs)
File "/usr/local/lib/python3.9/site-packages/matplotlib/dates.py", line 359, in _from_ordinalf
dt = dt.astimezone(tz)
ValueError: fromutc: non-None dst() result required

Error when adding custom repository

Hi,

I try to add this to the Custom repositories as instructed as described in the installation instruction. I'm getting an error messages that says "<Plugin Danielhiversen/home_assistant_tibber_custom> Repository structure for 0.5.1 is not compliant"

What is the problem?

//Per

Component error: tibber_custom - Integration 'tibber_custom' not found.

Assuming this custom repository should be added as an integration in HACS? Selecting any other category gives error "Repostitory structure for 0.2 is not compliant"

After adding "tibber_custom:" to configuration.yaml I get errors in log when restarting HA:

Logger: homeassistant.components.hassio
Source: components/hassio/init.py:420
Integration: Hass.io (documentation, issues)
First occurred: 10:02:40 (1 occurrences)
Last logged: 10:02:40

Component error: tibber_custom - Integration 'tibber_custom' not found.

There are also two other errors showing up in log that probably is related (they dissapear when "tibber_custom:" is not present in configuration.yaml);

Logger: root
Source: helpers/entity.py:422
First occurred: 10:02:34 (20 occurrences)
Last logged: 10:11:34

Uncaught thread exception
Traceback (most recent call last):
File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.8/site-packages/pyShelly/block.py", line 181, in update_status_information
self.raise_updated()
File "/usr/local/lib/python3.8/site-packages/pyShelly/base.py", line 36, in raise_updated
callback(self)
File "/config/custom_components/shelly/block.py", line 68, in _updated
self._update_ha_state()
File "/config/custom_components/shelly/block.py", line 60, in _update_ha_state
self.schedule_update_ha_state(True)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 422, in schedule_update_ha_state
assert self.hass is not None
AssertionError

Logger: pyShelly
Source: helpers/entity.py:422
First occurred: 10:02:34 (16 occurrences)
Last logged: 10:11:34

Error update device status: 227F90 SHSW-1, , Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyShelly/block.py", line 191, in update_status_information dev.raise_updated(force_update_devices) File "/usr/local/lib/python3.8/site-packages/pyShelly/base.py", line 36, in raise_updated callback(self) File "/config/custom_components/shelly/device.py", line 59, in _updated self._update_ha_state() File "/config/custom_components/shelly/device.py", line 51, in _update_ha_state self.schedule_update_ha_state(True) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 422, in schedule_update_ha_state assert self.hass is not None AssertionError
Error receive CoAP
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pyShelly/block.py", line 191, in update_status_information
dev.raise_updated(force_update_devices)
File "/usr/local/lib/python3.8/site-packages/pyShelly/base.py", line 36, in raise_updated
callback(self)
File "/config/custom_components/shelly/device.py", line 59, in _updated
self._update_ha_state()
File "/config/custom_components/shelly/device.py", line 51, in _update_ha_state
self.schedule_update_ha_state(True)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 422, in schedule_update_ha_state
assert self.hass is not None
AssertionError

Otherwise this seems as awesome stuff for HA and Tibber users :)

Transparent background?

I have a dark theme in HA and the png created in this integration has a white background that does not look as nice in the dashboard. Would it be possible to have a transparent background in the png?

0.5 seem to break update of camera image

I've not succeeded to get any debug logs out for this - but after upgrading to 0.5 I can still see a camera image in the widget - but it's always the same, have been for days - I just downgraded to 0.4 and now it's up to date again with today's pricing.

It was my guess from the beginning but I manually implemented the step based plot and that works fine - so something with the async_camera_image made it stop working for me.

Feature request - dark mode

Is it possible to provide an option or version of the integration to display the graph on a dark background?
it would be perfect if the Integration would adapt to a selected theme, but an option would be fine for me too.

Color themes

Love this integration, but it is in desperate need of some color theming. Right now, the white is making me blind, and sadistically destroys my current theme (I'm using mushroom theme btw). Something to the likes of:

tibber_custom:
  background_color: darkblue
  line_color: blue
  fill_color: evenBluer
  font_color: yello

Also, sidenote: The image I get looks nothing like what you have in the readme. Those look way better :)
image
This is what I'm looking at

Bug or intended in the columns?

Innimellom så blir de grå søylene feil. Dvs. søylen for aktuell time jeg ser på er veldig høy mens alle de tidligere søylene er små. Er det en bug eller er det noe den er ment å illustrere?

TibberCustom

I tillegg, hva er det numrene på høyresiden egentlig viser? De fra - 0 til - 250.

Cant find image

Installed through Hacs, made a restart, then added tibber_custom: to my config.yaml. Had another restart and get the error:

`Logger: homeassistant.components.local_file.camera
Source: components/local_file/camera.py:78
Integration: local_file (documentation, issues)
First occurred: 23:48:34 (1 occurrences)
Last logged: 23:48:34

Could not read camera Hjemme image from file: /config/www/prices_Hjemme.png`

I have checked the www folder as well, and I cant find the image there. Where do I go wrong?

Issues with readability on the Google Nest Hub 2

Problem
I use a Google Nest Hub 2nd gen on my kitchen desk to show some Home Assistant-data. This is done through casting. Of course, one thing I show on the display, is the Tibber Custom chart :-) However there are some readability issues when streaming to this display. Please see the following screenshot:
https://capture.dropbox.com/5vQ77DpTKFSNz5nU

Expected behaviour
Sometime it shows a cleaner and more readable chart for a few seconds before it redraws into the less readable variant. This is about how it looks for those few seconds.
https://capture.dropbox.com/5vQ77DpTKFSNz5nU

About the display: The resolution of the screen is said to be 1024x600.

Matplotlib not installed in HA 2024.2.X

Error in the latest beta due to missing matplotlib. Can you look into it when you have time?


Logger: homeassistant.setup
Source: setup.py:221
First occurred: 20:02:10 (1 occurrences)
Last logged: 20:02:10

Setup failed for custom integration 'tibber_custom': Requirements for tibber_custom not found: ['matplotlib’]
Logger: homeassistant.util.package
Source: util/package.py:122
First occurred: 19:59:28 (3 occurrences)
Last logged: 20:02:10

Unable to install package matplotlib: error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [579 lines of output] Edit mplsetup.cfg to change the build options; suppress output with --quiet. BUILDING MATPLOTLIB python: yes [3.12.1 (main, Jan 4 2024, 09:41:05) [GCC 13.2.1 20231014]] platform: yes [linux] tests: no [skipping due to configuration] macosx: no [Mac OS-X only] /usr/local/lib/python3.12/site-packages/setuptools/__init__.py:80: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. !! ******************************************************************************** 
Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`.
 ******************************************************************************** !! dist.fetch_build_eggs(dist.setup_requires) [02/01/24 19:59:05] WARNING toml section missing pyproject_reading.py:42 'pyproject.toml does not contain a tool.setuptools_scm section' /tmp/pip-install-v83cs5dk/matplotlib_8fb2ff4e9bcc4d27b8ba8b874a4f069d/.eggs/setuptools_scm-8.0.4-py3.12.egg/setuptools_scm/git.py:308: UserWarning: git archive did not support describe output warnings.warn("git archive did not support describe output") /tmp/pip-install-v83cs5dk/matplotlib_8fb2ff4e9bcc4d27b8ba8b874a4f069d/.eggs/setuptools_scm-8.0.4-py3.12.egg/setuptools_scm/git.py:327: UserWarning: unprocessed git archival found (no export subst applied) warnings.warn("unprocessed git archival found (no export subst applied)") /usr/local/lib/python3.12/site-packages/setuptools/dist.py:674: SetuptoolsDeprecationWarning: The namespace_packages parameter is deprecated. !! ******************************************************************************** Please replace its usage with implicit namespaces (PEP 420). See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages for details. ******************************************************************************** 

Missing consumption tabs

Hi,

I am missing consumption tabs, even though I read consumption with the tibber integration through a TIBBER PULSE.
Is there any more configuration than the tibber_custom: ? (Hoping to update camera when nordpool release day-ahead prices)

Camera Width, logfile has for long time showed 1 single "warning" , now it's "followed but a bunch of, with below "error-handling-Traceback"

2022-04-07 21:13:07 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 79, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 219, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 137, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 724, in get
return await self.handle(request, camera)
File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 742, in handle
image = await _async_get_image(
File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 163, in _async_get_image
if image_bytes := await camera.async_camera_image(
TypeError: async_camera_image() got an unexpected keyword argument 'width'
2022-04-07 21:13:58 ERROR (MainThread) [aiohttp.server] Error handling request

Missing support for width and height

I get this message in the log now:

The camera entity camera.xxx does not support requesting width and height, please open an issue with the integration author

Just wanted to make notice of it.

Stopped updating

The camera picture is not updating anymore. Running latest version on HA Blue. Stopped working this weekend.

Failed logins from 127.0.0.1

I downloaded v0.5 via HACS and installed on:

Home Assistant 2022.7.7
Supervisor 2022.07.0
Operating System 8.4
Frontend 20220707.1 - latest 

After a while, HA notified me about failed logins from 127.0.0.1. I had never seen that message before so I uninstalled the addon and now I have not seen the notification for hours; leading me to believe something in the addon is causing the notifications.

Anyone else seeing this? Maybe you can explain why.

Missing camera

Camera.ADRESS is no longer visible in Home Assistant. Related to problems with tibber_data?

Possibly broken with 2022.5

I get the following error:

Logger: homeassistant.setup
Source: setup.py:298
First occurred: 10:13:34 PM (1 occurrences)
Last logged: 10:13:34 PM

Unable to prepare setup for platform tibber_custom.camera: Platform not found (numpy.core.multiarray failed to import).

While I haven’t changed any of my configs. Just updated to 2022.5.

Is it working for anyone else on this version?

Feature request: provide raw data

While this integration is great to provide a graph where I can see whether the costs go up or down, I cannot use it for any kind of automation.
The original Tibber integration does not provide data for the next day either.

Is there a way to make the data points available to consume in automations?

Issue with addresses containing Æ, Ø or Å

My address contains an "å", and Home Assistant logs show the following

Logger: homeassistant.components.local_file.camera
Source: components/local_file/camera.py:98
Integration: local_file (documentation, issues)
First occurred: 20:39:49 (1 occurrences)
Last logged: 20:39:49

Could not read camera <my address> image from file: /config/www/prices_<my address>.png

Suggest to use ae, oe or aa as substitutes.

Does not work with new Home Assistant version

I have installed the new hassio verdion and Matplotlib makes trouble, see my log below.

` 2024-02-08 06:48:11.431 ERROR (MainThread) [tibber.realtime] Watchdog: Connection is down, 2024-02-08 06:48:21.431156
2024-02-08 06:48:13.615 ERROR (SyncWorker_13) [homeassistant.util.package] Unable to install package matplotlib: error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [579 lines of output]

  Edit mplsetup.cfg to change the build options; suppress output with --quiet.
  
  BUILDING MATPLOTLIB
        python: yes [3.12.1 (main, Jan  4 2024, 11:43:50) [GCC 13.2.1 20231014]]
      platform: yes [linux]
         tests: no  [skipping due to configuration]
        macosx: no  [Mac OS-X only]
  
  /usr/local/lib/python3.12/site-packages/setuptools/__init__.py:80: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
  !!
  
          ********************************************************************************
          Requirements should be satisfied by a PEP 517 installer.
          If you are using pip, you can try `pip install --use-pep517`.
          ********************************************************************************
  
  !!
    dist.fetch_build_eggs(dist.setup_requires)
  [02/08/24 06:48:01] WARNING  toml section missing        pyproject_reading.py:42
                               'pyproject.toml does not
                               contain a
                               tool.setuptools_scm
                               section'
  /tmp/pip-install-wflcc07n/matplotlib_42a85b50ef564c63b6d343d4b40e7579/.eggs/setuptools_scm-8.0.4-py3.12.egg/setuptools_scm/git.py:308: UserWarning: git archive did not support describe output
    warnings.warn("git archive did not support describe output")
  /tmp/pip-install-wflcc07n/matplotlib_42a85b50ef564c63b6d343d4b40e7579/.eggs/setuptools_scm-8.0.4-py3.12.egg/setuptools_scm/git.py:327: UserWarning: unprocessed git archival found (no export subst applied)
    warnings.warn("unprocessed git archival found (no export subst applied)")
  /usr/local/lib/python3.12/site-packages/setuptools/dist.py:674: SetuptoolsDeprecationWarning: The namespace_packages parameter is deprecated.
  !!
  
          ********************************************************************************
          Please replace its usage with implicit namespaces (PEP 420).
  
          See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages for details.
          ********************************************************************************
  
  !!
    ep.load()(self, ep.name, value)
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-aarch64-cpython-312
  copying lib/pylab.py -> build/lib.linux-aarch64-cpython-312
  creating build/lib.linux-aarch64-cpython-312/mpl_toolkits
  copying  `

Publish to HACS

It would be nice to be able to search for and install this custom component from the UI in Home Assistant. Currently, it does not show up.

Todays graph shows the wrong data

Hi. It seems like todays graph is showing the wrong data. For instance, the graph says "0.45 at 14:00", but in reality (and in the Tibber app) it is "0.14 øre" at that time.

Also the consumption isn't updated since a few hours before midnight.

StuckGraph

Feature Request - Future Data in a sensor entity

Hi @Danielhiversen,

thank you for the nice integration and your work.

As you already use the data which is stored in HA by the offical tibber integration it would be very nice to put this future data into a new sensor - in the same format the nordpool intergration does. So it would be possible to use all the templates which are out there in the community to find the cheapest hours without creating a new rest sensor to pull the data from the tibber API again.

Thanks dickesW

camera.YOUR_ADRRESS does not have a unique ID

This entity ('camera.r_xxxxxxx14') does not have a unique ID, therefore its settings cannot be managed from the UI

Anyone know how to solve this? I've tried to remove tibber_custom, restarted HA and reinstalled tibber_custom without any luck.

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.