Custom Component - Repsol Luz y Gas - Sensor

Hello HA Community,

Just sharing my new custom component with you.
This is working at least is Spain.

Home Assistant Platform which allows you to get data from Repsol Luz y Gas website.

Know Limitations

  • This component is limited to 1 house - MultiHouses is not working
  • Data is updated every 2 hours

Current Features

  • Read data from repsolluzygas.com.
  • Multi contracts per house. (only working with 1 house)
  • Available sensors: Amount, Consumption, Total Days, Amount Variable, Amount Fixed, Average Daily Cost, Number of contracts

More information at:

Usage:

1 Like

Tested this morning (I live in Spain) and I can confirm it’s working perfectly!

Nice job!

1 Like

By the way, I’ve noticed a couple of brackets and comas missing in the manifest.json file. I’ve created a pull request here - https://github.com/bzzoiro/repsolluzygas/pull/1

1 Like

Already merged it with main.
Thanks for the help.

Feel free to improve the component :slight_smile:

I was thinking that it would probably help having this into HACS, to make sure it can reach more people. Have you considered this?

If you want help me fell free. Thanks in advance

PR opened here.

You should just need to add some topics to the repo and publish a release.

With that, the addon installs correctly through HACS. :wink:

Thanks for the help @tsl.

Just released it with v1.0 and HACS support.

Edit:
Just noticed that installing from HACS is not working - not creating folder inside custom_components.
Have any idea @tsl ? It’s working on your system?

@bzzoiro - No problem. Apologies for the time taken to reply, but I was on vacation :slight_smile:

I’ve been able to replicate the issue and it seems to be working if the release is marked as “pre-release”. So I guess that as pre-release, not all the relevant checks are done in HACS.

So I’ve added the GitHub action as per https://hacs.xyz/docs/publish/action and found a few issues that I’m in process of fixing. The manifest.json has been slightly updated and I’ve requested to add “Repsol” in HA brands (https://github.com/home-assistant/brands/pull/2799), and opened a PR for wheels (https://github.com/home-assistant/wheels-custom-integrations/pull/499).

I am happy to support from your repo, it would be great if you could re-invite me, as the invitation has expired…

Everything seems ok now and the recently added “validator” in Github says that there are no issues. Are you ok to release a new version with the small changes made and test it?

1 Like

Let’s go for it :slight_smile:

Just hit the button.

Hi, I’m trying to install the integration and I can’t, I’m a newbie and it’s costing me a lot.
Place the repsoluzygas folder where you specify but when restarting HA nothing happens or appears in integrations.
I would appreciate some help !!

Hi Lucky, did you got it working? If not let me now, and will help you.

Just released version 1.1

Added 2 new sensors: Last Invoice Amount (Numeric) and Last Invoice Status (Boolean).

  • Last Invoice Amount (LIA): represents the amount of the last amount.
  • Last Invoice Status (LIS): it’s a boolean that returns if invoice was paid or not.

image

Yes I made it work but today it has fallen, with the new update.
It was because of the name change init.py.

thank you

Hi There, i just installed this componet but got automation error when HA loads.

Logger: homeassistant.config
Source: config.py:464
First occurred: 16:57:53 (1 occurrences)
Last logged: 16:57:53

Invalid config for [automation]: [platform] is an invalid option for [automation]. Check: automation->platform. (See /config/configuration.yaml, line 46).

if I comment component on configuration i got no errors.

Good morning it stopped working since Saturday, on Friday I looked at it and it worked.

I guess bzzoiro was fixing it, he already did it a few months ago.

By the way, thank you very much bzzoiro and Tsl for everything!!..