bzzoiro / repsolluzygas

Sensor for Home Assistant - Retrieve costs from Repsol Luz y Gas
MIT License
14 stars 8 forks source link

Do user & pw have to be into brackets? #11

Open makutene opened 2 years ago

makutene commented 2 years ago

when placing repsolluzygas folder into custom components and validate config in home assisnts it says 'integration not found' what am I missing? thnak you

tslpre commented 2 years ago

Hello! Both username and password do not need brackets. However, your error message indicates an incorrect installation or configuration. Can you post the relevant configuration for this component and a list of the files in the /config/custom_components/repsolluzygas folder? Finally, did you install it by manually copying the folder under custom_components and rebooted or through HACS?

makutene commented 2 years ago

I just copied the folder of your repo into /config/custom_components and added a sensor in HA as you explained

tslpre commented 2 years ago

Hello, this is not my repository, but I am happy to help. The instructions are correct, so there might be some little copy/paste error during the installation or configuration. I would tend to look at the installation first, as HA cannot find it.

Are you able to share the list of files and folders in the /config/custom_components/repsolluzygas folder?

makutene commented 2 years ago

yes sure. Three python files (init, repsol_api, sensor ) and manifest.json. Let say I didnt place the sensor code al config.yaml. I have a sensors.yaml which it include from config.yaml

tslpre commented 2 years ago

Ok, it might be a copy/paste issue. Can you paste the relevant configuration in your sensors.yaml, please? finally, which version of HA are you using and on which platform?

makutene commented 2 years ago

Basically I just pasted

ad-ha commented 2 years ago

Hi,

So you have to first remove the data that you entered on sensors.yaml and restart HA.

Once you restart, HA can already detect the Custom Component and you can then enter the data back on the sensors.yaml, check the configuration and restart again.

It should start working afterwards.

bzzoiro commented 2 years ago

Hi all,

I think that Alvaro is right, you need to install in the following order:

  1. First remove all "RepsolLuzYGas" settings from your configuration.yaml
  2. Make sure you've the folder "repsolluzygas" inside your custom_components folder.
  3. Restart Home Assistant - it should restart without any problems.
  4. After restart, add the RepsolLuzyGas settings to your config file - configuration.yam.
  5. Restart.

After that, if it's not working, I recommend deleting everything and installing the components using HACS.

Cheers Adriano

El mar, 11 ene 2022 a las 0:03, Alvaro Duarte @.***>) escribió:

Hi,

So you have to first remove the data that you entered on sensors.yaml and restart HA.

Once you restart, HA can already detect the Custom Component and you can then enter the data on the sensors.yaml, check the configuration and restart again.

— Reply to this email directly, view it on GitHub https://github.com/bzzoiro/repsolluzygas/issues/11#issuecomment-1009431251, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACFV7VHLD26P2QSKR4KYBWTUVNQULANCNFSM5LT7AMHQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Adriano Almeida

makutene commented 2 years ago

Thank you both of you. Finally its working but it only retrieves last bill amount payed. I have gas contract with repsol not light. All the sensors re at 0 value except as I said last bill amount payed that matches with the amount Ive payed

tslpre commented 2 years ago

I think that this issue is being worked in #9 as the gas sensors have not been created yet. You probably just need to wait a bit longer until the new version comes out, but I will leave the final comment to @bzzoiro

makutene commented 2 years ago

I think that this issue is being worked in #9 as the gas sensors have not been created yet. You probably just need to wait a bit longer until the new version comes out, but I will leave the final comment to @bzzoiro

Ok Ill wait anxiously till u make gas sensor works. Ty