AdyRock / com.switchbot

GNU General Public License v3.0
9 stars 5 forks source link

Add a 'then-card' to force status update #134

Open RASK18 opened 1 month ago

RASK18 commented 1 month ago

The webhook doesn't seem to be very reliable, so I propose to have a 'then-card' that allows updating the status manually in a flow (via API). The card should have a warning indicating the limitation of 10,000 accesses per day, which the user will have to manage on their own

Something like this: image

Stable-Adrian commented 1 week ago

I am looking into a method of automatically polling if an updated hasn't occurred for a while. I need this to fit in with the normal polling rate limiting, so it is not a straightforward fix.

I am also trying to figure out how to get to the bottom of the webhook issue but I need to find out where the delay is coming from. ATM I don't know if it's because the SwitchBot device isn't triggering the webhook, if the webhook is being lost before it gets to the Athom server, if it's the Athom server not processing the message properly or the app not processing them. It's could even be down to the connection between Homey and the webhook server being lost.