claudegel / sinope-130

Neviweb130 custom component for Home Assistant to manage devices connected via a GT130 and wifi devices from Sinopé
GNU General Public License v3.0
62 stars 13 forks source link

Error during setup #236

Closed alexbd8192 closed 3 months ago

alexbd8192 commented 3 months ago

Hi,

I've installed 3 new wifi thermostats (2x TH1123WF & 1x TH1124WF). I've setup them in the app and they are working fine within their app. I tried to setup the integration using this repo, but unfortunately the setup seems to fail. Apparently a variable named LOCATIONS_URL return a NoneType instead of a str.

Not sure if its a 'me' problem since its the first time I am using it, and I read the documentation on how to set it up.

Any ideas?

Thanks!

System info: Core 2024.3.3 Frontend 20240307.0

HA install on Unraid, via docker.

Yaml config: neviweb130: username: 'me@email.com' password: 'mypassword' scan_interval: 360 homekit_mode: False stat_interval: 1800

Debug Log: `Logger: homeassistant.setup Source: setup.py:390 First occurred: 9:00:19 AM (1 occurrences) Last logged: 9:00:19 AM

Error during setup of component neviweb Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 390, in _async_setup_component result = await task ^^^^^^^^^^ File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/neviweb/init.py", line 77, in setup data = NeviwebData(hass_config[DOMAIN]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/neviweb/init.py", line 101, in init self.neviweb_client = NeviwebClient(username, password, network, network2) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/neviweb/init.py", line 133, in init self.get_network() File "/config/custom_components/neviweb/init.py", line 178, in get_network raw_res = requests.get(LOCATIONS_URL + self._account, headers=self._headers,


TypeError: can only concatenate str (not "NoneType") to str
`
claudegel commented 3 months ago

Look like you've install the wrong custom_component. There are two:

alexbd8192 commented 3 months ago

Merci Claude!

Definitely a 'me' problem.

Looking a my Log,

After removing the old one, it turned out the new one was already working!

... so, definitely need another sunday morning coffee :)

Thanks, again!

If you ever need to beta test som features, don't hesitate to reach out to me!

claudegel commented 3 months ago

I would like to add some debug when one of the custom_component don't find it's config data to flags this type of «low coffee level» error :) I'm working on patch for HA that remove aux_heat config in HVACMode and I'll add some debug.

alexbd8192 commented 3 months ago

That would be great! Will keep an eye on future developements.

claudegel commented 3 months ago

Ok thank you