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

MQTT not processed in the background #68

Closed
Radstake opened this issue Sep 20, 2020 · 4 comments
Closed

MQTT not processed in the background #68

Radstake opened this issue Sep 20, 2020 · 4 comments

Comments

@Radstake
Copy link

When the homekit app is active, changes are working when MQTT is configured. Both on and off work.
When the homekit app is not active, the status changes are not processed. When you open the homekit app, it loads with the previous state, not the updated one.

For now I fall back to statusurl, but would love this the work propperly

@Supereg
Copy link
Owner

Supereg commented Dec 4, 2020

Could you maybe provide some details about your configuration?

This sounds like intended behavior. The Home App will only subscribe to event notifications if it is open. When it closes, after a while, it will unsubscribe from any notifications (so the device could for example also go to sleep and save battery).
When the Home App reopens it will make a READ request (and also subscribe to future event notifications). And that's where your initial configuration would be important, as typically it would call the statusUrl to retrieve the latest state. But there are plugin configurations possible where you can omit the statusUrl and then the last known value (should) be returned.

@Radstake
Copy link
Author

Radstake commented Dec 4, 2020 via email

@Supereg Supereg closed this as completed in c6f267a Dec 4, 2020
@Supereg
Copy link
Owner

Supereg commented Dec 4, 2020

Just had a look at the code, and yes, indeed toggle switches (this without statusUrl) didn't properly return values coming from MQTT or notification server on read requests.

Fixed v0.5.32

@Radstake
Copy link
Author

Radstake commented Dec 4, 2020 via email

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

No branches or pull requests

2 participants