Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sensors not updating #36

Closed
smondejar opened this issue Jan 7, 2024 · 26 comments · Fixed by #37
Closed

Sensors not updating #36

smondejar opened this issue Jan 7, 2024 · 26 comments · Fixed by #37

Comments

@smondejar
Copy link

smondejar commented Jan 7, 2024

Hi, I updated my HAOS hardware to a Rpi5 and everything works perfectly using the latest release but I have found that the owlintuition sensors are showing initial data but not updating.
If I reload the integration or the system, the integration picks the values up but it will not update values anymore.

Has anyone experienced a similar behaviour or is there a known reason why this could be happening?

TIA

HAOS Core: 2024.1.1, Rpi5 - Latest sensor.owlintuition integration release.

@richardmaidment
Copy link

I updated HA to 2024.1 last week from 2023.12.4 and observed the same thing. Initially the values load but don't subsequently update. I rolled back as I have some automations that boost the hot water when there's a call for heat and this issue resulted in a cold bath for my wife!

I'm expectng that there's something in HA 2024.1 that's causing this as I expect you took the latest version when building your new RP?

I'm not sure how to troubleshoot this?

@smondejar
Copy link
Author

smondejar commented Jan 7, 2024

Hey @richardmaidment, thank you for your reply

I'm expectng that there's something in HA 2024.1 that's causing this as I expect you took the latest version when building your new RP?

I got the latest version indeed, the Rpi5 required it hardware wise and I have to say it is fantastic, blazing fast.
Unfortunately I am not code-savvy so I can only post the owlintuition related logs, which are basically a constant flow of:

2024-01-07 18:50:16.570 WARNING (MainThread) [homeassistant.components.sensor] Updating owlintuition sensor took longer than the scheduled update interval 0:00:30
2024-01-07 18:50:21.539 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.owl_intuition_solar_exported_today is taking over 10 seconds

Multicast flow from the OWL is fine, I tested with some monitoring programs, all of them are getting the data.

As a workaround, I will probably re-install in my old Rpi4, so I can get the integration working and embed the power dashboard into the new installation.

@richardmaidment
Copy link

richardmaidment commented Jan 7, 2024

It does sound like the same issue.

You should be able to put a different version on your Pi by laucing a SSH session and using the following command

ha core update --version 2023.12.4

This is how I got back to working, I prefer this to restoring a from a backup.

@maknij
Copy link

maknij commented Jan 8, 2024

I'm also seeing the same behaviour since upgrading to 2024.1

@smondejar
Copy link
Author

smondejar commented Jan 8, 2024

As a workaround, I have installed version 2023.11 and owlintuition in a Pi Zero I had lying around and used HACS remote_homeassistant integration to push the entities data to 2024.1.1 (Rpi5).

https://github.com/custom-components/remote_homeassistant

It works fine and the entity names, once owlintuition has been uninstalled from the main instance, are the same so everything just came to life.

I'll keep this setup for now until a more clever being finds a permanent fix.

@shortbloke
Copy link
Contributor

shortbloke commented Jan 8, 2024

I've started looking into this issue. The custom component is correctly receiving the datagrams from the intuition owl. I've tried fixing up the code to remove some deprecation warnings, but whilst that's addressed the warnings, the sensor still only get updated once. More investigation is required.

Rolling back to 2023.12.4 the logs look the same, with the same: 2024-01-08 22:10:38.896 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.owl_intuition_solar_exporting is taking over 10 seconds type messages.

@shortbloke
Copy link
Contributor

I've opened a ticket against homeassistant.core: home-assistant/core#107608

@shortbloke
Copy link
Contributor

I've created a PR, but only had time to do limited testing. Need the sun to shine to get some Solar data ;-)

I'd welcome some more beta testers for this change, grabbing the sensor.py from the PR branch, add replacing the version in your custom_components\owlintuition folder and restarting HomeAssistant should do the trick.

@orandaadnaro
Copy link

Count me in - just let me know what I need to do

@shortbloke
Copy link
Contributor

@orandaadnaro
Download the file from the PR sensor.py

Then replace the sensor.py in the custom_components\owlintuition folder. Depending on what you have setup you could replace this file using SSH, Samba or even copy and paste to write out the new file.
Then restart HomeAssistant and/or upgrade to the latest HA release if you're not already on it.

@orandaadnaro
Copy link

No probs - Ill give it a go - report back when Ive had a few hours of sunshine

@smondejar
Copy link
Author

smondejar commented Jan 9, 2024

Hey @shortbloke, thanks for your help, it seems to be working fine, it is updating values every minute or so, at least the power/energy readings.
I'll leave it running and report if anything.

@tluethi71
Copy link

I will try tomorrow morning as well. Question: has the loooong waiting time to have the sensor.owlintuition loaded to do with this issue? since I have deleted owlintuition yesterday due to the issue HA OS is restarting less than 1 Minute. With owlintuition the restart takes around 5 minutes..

@richardmaidment
Copy link

Looking good here too. I use heating and hot water.

I initially tried with HA 2023.12.4 and it didn't seem to work so bumped up to 2024.1.2 and all seemed good.

Thanks for fixing this. I keep feeling my Owl Intuition heating controls are on borrowed time as Owl haven't made any changes to the app for years. I like how it works though, especially the hot water with scheduled time periods at different temperatures and with this integration I can extend the functionality further with automations.

@smondejar
Copy link
Author

2024.1.2 has been working perfectly fine, updated to 2024.1.3 and it broke it again, rolled back to 2024.1.2.

@orandaadnaro
Copy link

orandaadnaro commented Jan 13, 2024 via email

@coleburg
Copy link

Hi, Ive copied over the file and its still erroring for me, im using
Core
2024.1.3
Supervisor
2023.12.0
Operating System
11.4
Frontend
20240104.0

@shortbloke
Copy link
Contributor

It seems 2024.1.3 broke something else:
TypeError: Can't override _attr_name in subclass

Need to look into this, but don't have a fix yet.

@shortbloke
Copy link
Contributor

@coleburg @orandaadnaro @smondejar Can you try with the latest sensor.py from the pending Pull Request?

@coleburg
Copy link

@coleburg @orandaadnaro @smondejar Can you try with the latest sensor.py from the pending Pull Request?

Works perfectly, thank you

@orandaadnaro
Copy link

@coleburg @orandaadnaro @smondejar Can you try with the latest sensor.py from the pending Pull Request?

I couldn't cut and paste the linked sensor.py into the HA file editor for some reason, but the Studio code server took the copy. I'm in the process of restarting my HA on my PI, , but as is sods law the sun has just gone down, here in the UK! So I'm not sure what to expect to see on the HA Energy option?

On the Overview option there is now a range of outputs - so presumably something is working - at least a lot more than I've had over the past few day!

I'll feedback more in the morning :-)

...

@smondejar
Copy link
Author

smondejar commented Jan 15, 2024

Hey @shortbloke I can confirm latest sensor.py from PR works fine on 2024.1.3, at least regarding energy/power sensors, they are working and updating correctly.

@orandaadnaro
Copy link

All APPEARS TO BE WORKING WELL - THANKS

@orandaadnaro
Copy link

Core Update 2024.1.4 has turned up on my HA - Dare I update or should I wait?

@shortbloke
Copy link
Contributor

@orandaadnaro I have updated to 2024.1.4 and the integration continues to work

@orandaadnaro
Copy link

Working here too - thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants