Git Product home page Git Product logo

hassio-ovh's People

Contributors

guilleer avatar guillegf avatar wrt54g avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hassio-ovh's Issues

Multiple domains not working

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?

Error loading addon on HA 2021.12.9

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?

Not really an issue but something to add to the documentation

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.

DynHost isn’t updated automatically

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

Update various subdomains

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.

Bug while retrieving IP

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 :

  • I downloaded the latest release available
  • I extracted the archive in the custom_components/ovh folder
  • I wrote a config like shown in the doc in the config/configuration.yml file of Home Assistant
  • I restarted Home Assistant

Missing version in manifest

Message 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'

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.