joeyhage / homebridge-alexa-smarthome

Connect Alexa devices to HomeKit
MIT License
82 stars 20 forks source link

iOS Home widget doesn't accurately show On/Off status of devices pulled in from plugin #83

Closed willryan042 closed 9 months ago

willryan042 commented 9 months ago

Describe Your Problem:

I'm not sure if this is actually an issue caused by the plugin, but the iOS Home widget doesn't seem to update to accurately show the on/off status of devices pulled in by the plugin.

For example, if "Bedroom Lights" are on, the respective toggle in the widget sometimes shows them as off. If I tap it, the switch toggles on and nothing changes with the actual light. If I tap it again, the light will turn off as expected. Almost as if the devices in the widget need to update before they display their actual status.

And when I open the Home app, I notice my devices briefly display "Updating..." before correctly showing whether they're on or off, so I'm wondering if this is just the nature of how the plugin works.

Logs:

N/A

Plugin Config:

Haven't touched anything here but I'll paste it anyway:

{
    "bridge": {
        "name": "Homebridge E66A",
        "username": "0E:F5:4C:4F:E6:6A",
        "port": 51199,
        "pin": "248-47-922",
        "advertiser": "bonjour-hap"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "auth": "form",
            "theme": "auto",
            "tempUnits": "f",
            "lang": "auto",
            "platform": "config"
        },
        {
            "devices": [],
            "auth": {
                "refreshInterval": 4,
                "proxy": {
                    "clientHost": "192.168.0.169",
                    "port": 9001
                }
            },
            "amazonDomain": "amazon.com",
            "language": "en-US",
            "performance": {
                "cacheTTL": 30,
                "backgroundRefresh": false
            },
            "debug": false,
            "platform": "HomebridgeAlexaSmartHome"
        }
    ]
}

Screenshots:

N/A

Environment:

joeyhage commented 9 months ago

Thanks for reaching out. This is by design. You can read more about the plugin performance settings if you are interested in adjusting how accessory states are refreshed.

willryan042 commented 9 months ago

Awesome, thanks for the tip. So if I'm understanding some of the settings correctly, will enabling "Refresh device states automatically in the background" and keeping a low value for Device State Cache Lifetime essentially allow the iOS widget to be fairly "live" and update accurately?

joeyhage commented 9 months ago

Yep, that should help! It won’t refresh faster than every 60 seconds or so, unfortunately, otherwise you will get blocked by Amazon temporarily.

On Tue, Dec 26, 2023 at 4:59 PM, willryan042 'notifications at github.com' @.***(mailto:On Tue, Dec 26, 2023 at 4:59 PM, willryan042 'notifications at github.com' < wrote:

This email was sent to @. from @. Click here to deactivate this alias

Awesome, thanks for the tip. So if I'm understanding some of the settings correctly, will enabling "Refresh device states automatically in the background" and keeping a low value for Device State Cache Lifetime essentially allow the iOS widget to be fairly "live" and update accurately?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were assigned.Message ID: @.***>