AdyRock / com.smartthings

Home app to integrate SmartThings
GNU General Public License v3.0
12 stars 7 forks source link

Refreshing of the app is not working #14

Closed Arjan-21 closed 2 years ago

Arjan-21 commented 3 years ago

After two weeks my samsung washing machine is not working on Homey anymore. I really loved this app, because I can make my washing machine smarter. Just added the device again (with a new token). After adding Homey will see the washing machine is running and the complete time. But it didn't see the wash machine is finished or started again.

The only problem I can think of is the polling. it was 30, but changed it to 60. I've a samsung tv but use a different homey app and token (can't change the polling with this app).

I don't know or the polling is the problem, but was the only thing I know for now.

AdyRock commented 3 years ago

Could you enable the log, wait for it to populate and then copy and past it to a reply. My washing machine is still reporting OK so I don't think Samsung have made any breaking changes. My polling interval is 15 seconds.

I also use the Samsung SmartTV app for my TV as it is an older model that is not compatible with ST.

Arjan-21 commented 3 years ago

Thanks for your comment.

This is my whole log file. The 401 code was when I was trying or the code was wrong. I've removed the info from the tv

AdyRock commented 3 years ago

At a quick glance, what is there looks fine but it does appear the polling is not running. Can you try setting the polling back to 30 or down to 15 to see if it makes any difference. You should see the log update on every polling cycle so even if nothing is changing it should be obvious if it is polling.

Arjan-21 commented 3 years ago

I’ve update the polling to 15 times and delete the log after that. But don’t see a new log anymore. So I think it isn’t updating.

Edit: I’ve a new log with some errors. I’m going to look what the errors mean.

Arjan-21 commented 3 years ago

I thought I've seen a site where all the errors are, but unfortunately I can't find it.

Arjan-21 commented 3 years ago

It was a polling issue. After a week the wasmachine is working again. Thanks for your help.

AdyRock commented 3 years ago

Glad it's working again. Had me totally stumped, I must admit. I can't find why the polling would stop.

Arjan-21 commented 3 years ago

I think it was the maximum of polling request. It’s the only thing I can think about when it starts working after a week.

AdyRock commented 3 years ago

Maybe, but the app should ensure it doesn't exceed the limits. I will check the ST documents again to make sure they haven't changed the rules.