Open edenis875 opened 5 days ago
Hey there @cgtobi, mind taking a look at this issue as it has been labeled with an integration (netatmo
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
netatmo documentation netatmo source (message by IssueLinks)
Same here, thanks for reporting
Same here as well.
With so many people now reporting more or less exactly the same problem (here and in different other forums), we are eagerly awaiting feedback from @cgtobi 😶
Netatmo integration worked for long time - now I cant acccess my devices:
Logger: homeassistant.components.netatmo Quelle: components/netatmo/init.py:151 Integration: Netatmo (Dokumentation, Probleme) Erstmals aufgetreten: 13:20:05 (1 Vorkommnisse) Zuletzt protokolliert: 13:20:05
Webhook not registered - https and port 443 is required to register the webhook
Hello this is is a different issue. If you can’t reach port 443 from outside it’s possible that your reverse proxy has some issues. The issue in this thread is about the error “invalid parameters”
On 16 Sep 2024, at 13:23, Haifi58 @.***> wrote: Netatmo integration worked for long time - now I cant acccess my devices: Logger: homeassistant.components.netatmo Quelle: components/netatmo/init.py:151 Integration: Netatmo (Dokumentation, Probleme) Erstmals aufgetreten: 13:20:05 (1 Vorkommnisse) Zuletzt protokolliert: 13:20:05 Webhook not registered - https and port 443 is required to register the webhook
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>
Thanks for feedback
Hey there, I have been able to move ahead thanks to this thread: the webhook now looks successfully registered but I get plenty of weird errors messages afterwards (see log below) and my Bubendorff shutters are still not showing up. I'll keep digging but it would be much appreciated if anyone could help me fixing this... Many thanks,
2024-09-16 19:28:20.454 INFO (MainThread) [homeassistant.components.netatmo.data_handler] Netatmo webhook successfully registered
2024-09-16 19:29:14.716 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 282
2024-09-16 19:29:27.342 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 362, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "aiohttp/_http_parser.pyx", line 563, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadHttpMessage: 400, message:
Pause on PRI/Upgrade:
b''
^
2024-09-16 19:30:11.939 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 208
2024-09-16 19:31:11.256 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 159
2024-09-16 19:31:17.139 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 362, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "aiohttp/_http_parser.pyx", line 563, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadHttpMessage: 400, message:
Pause on PRI/Upgrade:
b''
^
2024-09-16 19:32:12.598 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 148
2024-09-16 19:33:11.396 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 131
2024-09-16 19:34:14.529 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 128
2024-09-16 19:35:13.137 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 119
2024-09-16 19:36:11.293 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 119
2024-09-16 19:37:14.924 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 112
2024-09-16 19:38:12.588 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 113
2024-09-16 19:43:10.994 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 87
2024-09-16 19:45:10.996 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 81
2024-09-16 19:46:11.139 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 79
2024-09-16 19:47:11.187 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 78
2024-09-16 19:48:12.481 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 80
2024-09-16 19:49:12.694 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 79
2024-09-16 19:50:12.597 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 81
2024-09-16 19:51:14.458 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 80
2024-09-16 19:52:12.131 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 82
2024-09-16 19:53:16.213 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 81
One step further!
2024-09-17 19:44:48.104 INFO (MainThread) [homeassistant.components.netatmo.data_handler] Netatmo webhook successfully registered
No more errors BUT... my Bubendorff shutters remain not visible from Netatmo integration while they are from iDiamant!
Also nothing is received when listening to netatmo_event
from development tools
section.
I guess something is still misconfigured, but I must say I have no further idea of what might be wrong, now... so if any one has any suggestion, it will be much appreciated!
Side note: I'll write details about settings changed somewhere here as soon as possible
Here's my experience: I have two Home Assistant instances - one is HA-OS based using NabuCasa, the other is HA Container Core exposed to the internet through a Reverse Proxy. Both have the Netatmo integration and both have indoor as well as outdoor cameras. Netatmo Webhooks worked well with both for a long time. Then, sometime this summer, it started to get hickups. Now, neither of my HA instances are able to trigger on motion or any other event, except if a camera incidentally drops off-line, which some of them do from time to time (it's always been a bit unstable), not knowing why. They usually come back on-line again by themselves after a short while (less than an hour). However, those off-line/on-line events do generate a proper webhook trigger, not randomly, but persistently, so it seems the communication does work as it should. Why no other events comes through, is beyond me. On both my HA instances I can run the register/un-register Netatmo webhook service successfully. No error messages.
The problem
Hello,
My Bubendorff shutters are not visible from HA.
I suspect the following error during HA startup to be the root cause which I'm not able to solve:
Error during webhook registration - ("400 - Bad request - Invalid url parameter (21) when accessing 'https://api.netatmo.com/api/addwebhook'",)
Also, integration diagnostic file shows "webhook_registered false".Own app has been created on Netatmo developer portal and Netatmo weather station devices are successfully imported which seemingly means that my token is valid. As described in the documentation, I ensured 'redirect URI' and 'webhook URI' parameters were not set.
SSL is enabled on HA side; SSL port is opened on firewall side and forwarded to HA
I tried to
Any idea of what is wrong here? Did I misconfigure anything? Is there any other useful information I could provide to help understanding where the issue comes from?
Many thanks,
What version of Home Assistant Core has the issue?
2024.9.1
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Netatmo
Link to integration documentation on our website
https://www.home-assistant.io/integrations/netatmo
Diagnostics information
config_entry-netatmo-01J7K24YR110VWKJHD5FC417N4.json config_entry-netatmo-01J7K24YR110VWKJHD5FC417N4.json config_entry-netatmo-01J7K24YR110VWKJHD5FC417N4.json
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response