Hi, I've neglected this repository for too long and I should have updated this before.
This project is now unsupported because the pyhydroquebec python library I used has been renamed and reworked from scratch.
Don't feel bad, it's now really better and this project has been merged into the gitlab project. So there's an addon you can use in HA too.
New project website: https://hydroqc.ca/fr/
Gitlab project: https://gitlab.com/hydroqc
Hass-addon repository: https://gitlab.com/hydroqc/hydroqc-hass-addons
There's even a Discord if you have questions or want to contribute: https://discord.gg/2NrWKC7sfF
I'll close this issue and the other than update the readme with the information above.
Thanks, have a great day!
HASS addon code for pyhydroquebec integration.
Work in progress, please report any issue.
Option 2: Go in the supervisor page -> Add-on Store -> click on the vertical "..." on the top right of the page, add this repository: https://github.com/arsenicks/pyhydroquebec-hass-addons.git
Once completed, go into the pyhydroquebec addon and click install.
First, create a file named "pyhq-config.yaml" in your hass config directory. You can use the pyhq-config.yaml included in this directory as example.
Then add all the required configurations item in the Config tab of the add on. There's currently two places where you have to enter your HQ user/pass and contract number(config files and inside the config tab of the addon), this should be fixed soon.
- Find a way to use only ENV vars and get rid of the config file
- Improve entrypoint.sh to test if required vars are set
- Try to add some logic, if HQ user/pass are set but not contract number, try to print contract in log and stop
Rebuild image using hass add-on tooling(https://github.com/home-assistant/builder) and better understand the whole image thing in hass add-on- Cleanup of name, repos url and other stuff.
Let me know your feeling, suggestions, ideas.