home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
68.77k stars 28.1k forks source link

Indoor temperature unavailable for Netatmo #116189

Closed KentEkl closed 6 days ago

KentEkl commented 1 week ago

The problem

I have a Netatmo weather station and both the indoor and the outdoor temp sensors works fine when on 2024.4.4, when on 2024.5.b0 the indoor temp sensor shows unavailable, when reverting to 2024.4.4 the indoor temp sensor is back working again.

What version of Home Assistant Core has the issue?

2024.5.0b0

What was the last working version of Home Assistant Core?

2024.4.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

<@370293101492830208> 
ERROR (MainThread) [homeassistant.components.netatmo] Error during webhook registration - 400 - Bad request - Invalid url parameter (21) when accessing 'https://api.netatmo.com/api/addwebhook'

Additional information

IMG_0751 IMG_0750

home-assistant[bot] commented 1 week 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!

Code owner commands Code owners of `netatmo` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign netatmo` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


netatmo documentation netatmo source (message by IssueLinks)

joostlek commented 1 week ago

Can you maybe make a screenshot with the language set to english? I don't really see what entity you're missing now

KentEkl commented 1 week ago

@joostlek Ok, I’m missing all sensors from the indoor station. image1 image0

joostlek commented 1 week ago

Can you download the diagnostics file and upload it here?

joostlek commented 1 week ago

Usually this button is somewhere image

mitikoge commented 1 week ago

I experience the same thing; it appears connected but doesn't show any sensors as available.

trondtorsoe commented 1 week ago

Same here. Just indoor sensors got unavailible. Outdoor and wind is OK. Happened on both x86-PC and Homeassistant Green when upgraded from 2024.4.x to 2024.5.beta.....

Kappa1933 commented 1 week ago

similar for me and only the indoor module is affected... the values are there for a short time and then immediately gone again. Screenshot_47

joostlek commented 6 days ago

Wait what, you do get a value but then it disappears again?

Kappa1933 commented 6 days ago

Moment mal, Sie bekommen zwar einen Wert, aber dann verschwindet er wieder?

Yes, it is as shown in the diagram, and only for the indoor unit sensors (temp., humidity, CO2, ...). The values from the outdoor units are displayed permanently without any problems. Screenshot_48

Kappa1933 commented 6 days ago

the display cycle is very constant. The values are displayed for exactly 3 minutes, then not for 9 minutes, then again for 3 minutes, ... Screenshot_49

lstrong2k commented 6 days ago

I'm seeing the same. The sensors on the base station show as unavailable but the ones on the outdoor module, 2 indoor modules, and rain gauge are fine. The Netatmo app shows all values, and I can still get values through HomeKit.

Screenshot 2024-04-28 at 9 33 35 AM
joostlek commented 6 days ago

Okay I now have some time to look into this. I made a slight debug patch, you can install this via

cd /config
curl -o- -L https://gist.githubusercontent.com/bdraco/43f8043cb04b9838383fd71353e99b18/raw/core_integration_pr | bash /dev/stdin -d netatmo -p 116342

Please then turn on debug logging and reload the integration. Curious what the output is

lstrong2k commented 6 days ago

home-assistant_netatmo_2024-04-28T14-37-55.004Z.log

log attached

joostlek commented 6 days ago

Oh you need to reboot after executing the code

lstrong2k commented 6 days ago

home-assistant_netatmo_2024-04-28T14-53-11.247Z.log

joostlek commented 6 days ago

I pushed an update, can you run the command again and reboot and check if it worked?

KentEkl commented 6 days ago

works fine with the latest patch.

joostlek commented 6 days ago

what patch? 2024.5b1 or what I pushed?

KentEkl commented 6 days ago

That you pushed.

lstrong2k commented 6 days ago

Rebooted and things look good at the moment. I'll keep an eye on it for a bit in case things change

KentEkl commented 6 days ago

Thanks for excellent support.

joostlek commented 6 days ago

Let's close this issue when the PR is actually merged so people testing the beta currently know this is an issue

lstrong2k commented 6 days ago

I've had it open about 10 minutes and it's updated values a couple of times. Still looks good for me. Thanks

trondtorsoe commented 6 days ago

Works FINE !

Thanks :-)

joostlek commented 6 days ago

Please don't forget to remove the Netatmo from the custom components folder if you applied this fix when b2 drops. Otherwise you'll be stuck on this version and miss future improvements