guillegf / hassio-ovh Goto Github PK
View Code? Open in Web Editor NEWOVH DynHost Updater Component for https://www.home-assistant.io/
OVH DynHost Updater Component for https://www.home-assistant.io/
If you want, I can contribute some advanced CI to your repository in a PR. Let me know if you want that.
I've trying to setup multiple domains, and I get an error:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 256, in _async_setup_component
result = await task
File "/config/custom_components/ovh/init.py", line 66, in async_setup
result = await _update_ovh(session, domain, user, password)
File "/config/custom_components/ovh/init.py", line 93, in _update_ovh
_LOGGER.warning("Updating OVH failed: %s => %s", domain, OVH_ERRORS[body.strip()])
KeyError: 'badfqdn'
I've tried manually and the credentials are working.
on yaml I tried
domain: test.test.com,test1.test.com
and domain: "test.test.com,test1.test.com"
with no luck. Am I doing something wrong?
Hello
First of all thank you for that great addon. I was using it for a while but after last update the addon not loading properly:
2022-01-12 00:08:08 WARNING (MainThread) [homeassistant.setup] Setup of ovh is taking over 10 seconds.
2022-01-12 00:08:08 WARNING (MainThread) [custom_components.ovh] Timeout from OVH API for domain: home.inclouds.pl
2022-01-12 00:08:08 ERROR (MainThread) [homeassistant.setup] Setup failed for ovh: Integration failed to initialize.
Any thoughts?
Hi,
First of all, thx for this helpful integration.
I ve experienced an issue when configuring it for the first time, that is related to the way the ovh api is requested.
I finally figured out this is not a bug in the code but a side effect.
My dynhost entry had been set up using OVH manager, and i've added the ovh
related data in HA configuration.yaml.
When restarting, HA was keeping complaining about a connection error raised by line 66 of __init.py__
.
I finally figured out that the problem was coming from a '#' character in my dynhost username entry password, and that the presence of this character was breaking the url built with the pattern found in line 83 of the same script url = f"https://{user}:{password}@{HOST}?system=dyndns&hostname={domain}"
Maybe it should be useful to add a note in the documentation to warn about special characters usage in passwords.
My 2 cents.
I started using your integration yesterday as I was looking to setup external acces to HA and prefer using the domain I already own at OVH then something like DuckDNS
However it doesn’t seem like the DynHost get updated correctly when my public IP changes. I’ve looked at the code and my understanding is that it should get updated every 5 minutes ?
The DynHost gets correctly updated if I restart HA
Hi,
I have various subdomains on OVH, all pointing to the same IP at home, one of them being Home Assistant.
Would it be possible to use this script to update all of them at once ?
I tried to set up the custom component with *.domain.com instead of subdomain.domain.com but it gives a configuration error.
Another option would be to input a list of subdomains to update.
Thanks.
Hello,
I just installed the hassio-ovh component on my setup, and it seems that the service that should return an IP doesn't return one in my case. I got the following error back from OVH :
2020-12-13 19:38:04 ERROR (MainThread) [homeassistant.setup] Error during setup of component ovh
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 213, in _async_setup_component
result = await task
File "/config/custom_components/ovh/__init__.py", line 63, in async_setup
result = await _update_ovh(session, domain, ip, user, password)
File "/config/custom_components/ovh/__init__.py", line 107, in _update_ovh
"Updating OVH failed: %s => %s", domain, OVH_ERRORS[body.strip()]
KeyError: '<!DOCTYPE html>\n\t<html>\n\t <head>\n\t\t<meta name="viewport" content="width=device-width, initial-scale=1">\n\t\t<meta charset="utf-8">\n\t\t<title>Application Error</title>\n\t\t<style media="screen">\n\t\t html,body,iframe {\n\t\t\tmargin: 0;\n\t\t\tpadding: 0;\n\t\t }\n\t\t html,body {\n\t\t\theight: 100%;\n\t\t\toverflow: hidden;\n\t\t }\n\t\t iframe {\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t\tborder: 0;\n\t\t }\n\t\t</style>\n\t </head>\n\t <body>\n\t\t<iframe src="//www.herokucdn.com/error-pages/application-error.html"></iframe>\n\t </body>\n\t</html> n\'est pas une ip'
I don't know if someone encountered this issue before, but here's how I proceed to install the component :
custom_components/ovh
folderconfig/configuration.yml
file of Home AssistantMessage in Ha logs :
No 'version' key in the manifest file for custom integration 'ovh'. As of Home Assistant 2021.6, this integration will no longer be loaded. Please report this to the maintainer of 'ovh'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.