Giter Site home page Giter Site logo

Comments (26)

emilohman avatar emilohman commented on June 11, 2024

Sorry to hear that!
Can you please send me you logs by going to Plejd settings in the Homey app. Then press the settings icon on top right corner. There hit the "Send diagnostic report" button.

from homey-plejd.

gorper avatar gorper commented on June 11, 2024

558264e8-0190-4759-91ac-965c95a4f3e7 is a code that I should provide homey told me.

from homey-plejd.

joco73 avatar joco73 commented on June 11, 2024

I have also encountered this. Every second day I need a restart and then all is fine again.

It seems that it do not free up resources, starts on 10 MB and after a day it is up above 30 MB.

from homey-plejd.

emilohman avatar emilohman commented on June 11, 2024

Thanks for reporting this!
The problem is that when getting state of a device that doesn't support dim I try to set the dim value in homey but no such capability exists.
I'll try to publish a fix later today!

from homey-plejd.

gorper avatar gorper commented on June 11, 2024

I also see that plejd app is growing. I looked into the memory statistic. And in 1 hour it have grown from 23.2 Mb to 24.4 Mb.

from homey-plejd.

emilohman avatar emilohman commented on June 11, 2024

I see... I will look into that.
I've now published a fix for the dimmer error. That error generated lots of errors in the log.. and that can be one theory why homey disables the app after some time. Please report back if its works better now.

from homey-plejd.

gorper avatar gorper commented on June 11, 2024

Unfortunately I see growing of app since you pushed update to 3.0.1 and my homey auto installed it yesterday my plejd app has gone from 12 mb to now 35mb so it is slowly consuming memory. It has not yet gone into pause mode.

from homey-plejd.

gorper avatar gorper commented on June 11, 2024

Don’t know what to do with this. So I post it here c19ae296-3ce9-40ec-b0e3-d6d10b2d0fba homey state I should give it to developer.

from homey-plejd.

joco73 avatar joco73 commented on June 11, 2024

Since update, it has been working fine for me. No more problems. But as @gorper say, the size grows mine is up on 40+ MB, but I just then restart it when I remember but something is leaking...

Good App by the way and I hope the BT fix from Homey will come soon, and also that Plejd open up their API, Good work!

from homey-plejd.

emilohman avatar emilohman commented on June 11, 2024

I have localized and hopefully fixed the memory leaking problem. I'll do some more testing but it's looking good.
In sdk 3 (Homey v5) Athom changed what timezone Homey uses. So I need to convert the time to be able to synk with the time in Plejd. That conversion was leaking memory but now I've found a better way of doing it.

So really thanks for reporting! I'll publish a fix very soon.

from homey-plejd.

gorper avatar gorper commented on June 11, 2024

It is me that should thank You for the splendid app. I noted after auto update to 3.0.1 the memory consuming slows down but still occur. But today it was like 50+ Mb suddenly it cleaned up so now it is just 20Mb again. Good that it don’t stop working.

from homey-plejd.

gorper avatar gorper commented on June 11, 2024

Unfortunately once again the app 3.0.2 went into pause. After restart it is 12.6 Mb but before it was stoped by homey it was like 74.? Mb. So it is still growing but slow. And as my last comment sometime it seems to shape up and shrink.

from homey-plejd.

gorper avatar gorper commented on June 11, 2024

Don’t know if this help. But since DST change to summer time a original plejd dim up timer I have set in plejd direct begun to start 2 hours to early. Memory usage for app has increased from 12.6 Mb to 34.3 in 2 days. Do the app any attempt to set time in plejd ?

from homey-plejd.

emilohman avatar emilohman commented on June 11, 2024

I published a new version last night. How do you think that one works?
The main problem in the memory leak is that Homey now use UTC time and I need to convert it to Plejd time..
The other problem is polling.. I've now changed to only set the Plejd clock on startup for now so it works if the power breaks and Plejd need to set its clock. I've also changed polling interval for states from 2s to 10s. That gives Homey time to clean up some memory. Hopefully Homey get support for instant state changes over BLE soon so we don't have use polling.

from homey-plejd.

gorper avatar gorper commented on June 11, 2024

I tried to put a Graf from insights her but it did not work. Unfortunately app still grow. Approx 10 mb / 24h. Will let it continue until fail. Regarding the alter of polling it is fine by me. Don’t need it more accurate and I don’t see any drawback at the moment. Could my plejd accessory BAT-01 be a player in this ? Just thinking because it seems to involve time.

from homey-plejd.

fredrikostlind avatar fredrikostlind commented on June 11, 2024

Just updated Homey to 6.0.0-rc5 to be able to test the new BLE notification together with the Plejd app.

If I try to change the state of an DIM-01 (example) from the mobile or desktop app, I get this error message Missing Capability Listener: onoff. Do you recognize this problem?
image

from homey-plejd.

emilohman avatar emilohman commented on June 11, 2024

Strange.. no nothing I've seen. Can you please send me a. error report? Go to More->Apps->Plejd->cog wheel->Send diagnostic report button.

from homey-plejd.

fredrikostlind avatar fredrikostlind commented on June 11, 2024

Between the time I posted the error message and now, I have rebooted Homey twise, and now i'm unable to reproduce the error again. Although, created a diag report with code 9393e8ca-c1e9-490c-b117-efe3ad7cb150.

from homey-plejd.

emilohman avatar emilohman commented on June 11, 2024

Ok, good that it's working again. Can't see any error in your log. Strange.. please let me know if it happens again.

from homey-plejd.

fredrikostlind avatar fredrikostlind commented on June 11, 2024

Will do! With the new beta version of Homey and the new version of your app, it's a big different in responsiveness between the Plejd device and the state in Homey compared to before. Great work!

from homey-plejd.

gorper avatar gorper commented on June 11, 2024

Hallo. Plejd app 3.1.3 grow from 20 to 80 Mb and is paused by homey in 7days in my system. But it works until shutted down. I have noticed that homey hog memory by it self not specific to any app. So my action to solve this is to test a flow restarting homey or plejd app now and then.

from homey-plejd.

emilohman avatar emilohman commented on June 11, 2024

Which version of homey do you use? My experience is it works much better with v6.0 so Plejd app can use notifications instead of polling.

from homey-plejd.

gorper avatar gorper commented on June 11, 2024

I running version 5.0.4 of homey. It is auto updating so I guess that is the official version. But as I mentioned homey itself seems to hog memory. Fresh restarted other is like 200 Mb but it was like 600 Mb when I restarted. And on top plejd app grow until paused as I mentioned.

from homey-plejd.

emilohman avatar emilohman commented on June 11, 2024

Please try upgrading to v6.0: https://firmware.athom.com/

from homey-plejd.

gorper avatar gorper commented on June 11, 2024

Done and wi will see. Thanks.

from homey-plejd.

gorper avatar gorper commented on June 11, 2024

So I must say plejd 3.1.3 and Homey 6.0.0 is memory wise steady as a rock around 11 Mb so with this I say this issue open by me solved. And I close it. Well done.

from homey-plejd.

Related Issues (20)

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.