Coder Social home page Coder Social logo

home-assistant-brandstofprijzen's Introduction

Hi there ๐Ÿ‘‹

home-assistant-brandstofprijzen's People

Contributors

dependabot[bot] avatar metbril avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

home-assistant-brandstofprijzen's Issues

Errors in home-assistant.log-file

Describe the bug
A clear and concise description of what the bug is.

Noticing these errors:

2023-12-20 16:06:20.162 ERROR (MainThread) [homeassistant.components.sensor] brandstofprijzen: Error on device update! Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 575, in _async_add_entity await entity.async_device_update(warning=False) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 961, in async_device_update await hass.async_add_executor_job(self.update) File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/brandstofprijzen/sensor.py", line 129, in update self._state = self.rest.data[idx] ~~~~~~~~~~~~~~^^^^^ IndexError: list index out of range

To Reproduce
Steps to reproduce the behavior:

  1. Fire up HA
  2. Look in home-assistant.log and see the error

Expected behavior
A clear and concise description of what you expected to happen.
No error. :-)

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

Desktop (please complete the following information):

  • OS: Debian bookworm
  • Browser NA
  • Version NA

Additional context
Add any other context about the problem here.
It looks like it seems to work without error as I see updates of the 'brandstofprijzen'

support for https://carbu.com/

I LOVE this but would it be possible to add data from https://carbu.com/ ?

Since prices here in Belgium are quite different then the netherlands it would be much more useful.

Thanks for all the work and keep up the good work ๐Ÿ‘

Error about device_state_attributes

After upgrading to 2021.12.b2 I'm seeing this warning in my logs:

Logger: homeassistant.helpers.entity
Source: helpers/entity.py:549
First occurred: 7 december 2021 19:07:28 (4 occurrences)
Last logged: 7 december 2021 19:07:29

Entity sensor.adviesprijs_euro95 (<class 'custom_components.brandstofprijzen.sensor.BrandstofprijzenSensor'>) implements device_state_attributes. Please report it to the custom component author.
Entity sensor.adviesprijs_diesel (<class 'custom_components.brandstofprijzen.sensor.BrandstofprijzenSensor'>) implements device_state_attributes. Please report it to the custom component author.
Entity sensor.adviesprijs_lpg (<class 'custom_components.brandstofprijzen.sensor.BrandstofprijzenSensor'>) implements device_state_attributes. Please report it to the custom component author.

Read about it in the official HA discord server and found this:
"device_state_attributes -> extra_state_attributes, is a name change... its really just that"

Add price difference

Next to the current price, the website provides the difference with the previous price. Add this difference as an attribute to the sensor.

Support all available fuel types

Currently only the 3 main fuel types are supported. Extend the component to support all available fuel types from the United Consumers website.

Seems like BlueOne95 has been removed from the UC website

I started getting an error log from this integration since about early November. I just noticed that it's now only receiving 7 values instead of 8, so BlueOne95 is missing, as you can see here as well: https://www.unitedconsumers.com/brandstofprijzen/

I commented out BlueOne95 from my configuration and now everything is fine. Should the documentation be updated to remove BlueOne95? Although it seems like they still track it's price as seen on this page.

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.