Grizzelbee / ioBroker.mielecloudservice

Integrates your MieleCloudService (aka Miele@Home) Devices to ioBroker
MIT License
20 stars 9 forks source link

Event-based status request possible? #156

Closed alehofde closed 2 years ago

alehofde commented 3 years ago

Hi, great adapter and good work 😊

One question: Is there a way to create Event-based status request? That means, my polling interval is configured to 10 minutes. For normal operating this is good. Now I want to start a request based on an IOBROKER event for a specific attribute (for example Status_raw). Is this possible? How can I achieve this?

It would be great if you can help me with my special request

Thanks, Alexander

Grizzelbee commented 3 years ago

Thnx! 😊

Hmmm. If I understood you right you like to update the adapter values from the Miele-API by a trigger inside IOBroker. Right? E.g.: Monitor some datapoint in IOBroker and if it's changed - trigger an extra poll on the Miele-API.

Currently this is not possible - and for now I have no plans to implement such a behavior. But ... I'm working on Event based updates for the adapter. That means: The values in the adapter won't be updated by polling the API in some time interval anymore, but get updated anytime there is a change of any device state. Means: The updates are triggered by Miele-Servers and you can rely on the values at any time without the need to insert an extra poll.

Would that solve your request?

If not - there may be some kind of solution - doing some weird stuff: If the monitored DP changes - you may stop the adapter, start it again and wait approx. 2 seconds. At the start of the adapter all data get updated. This may be your desired extra poll. 😉

alehofde commented 3 years ago

Hi Grizzelbee,

yes you understood my requirement correct. Your idea with the adapter restart in IOBROKER was mine too but the problem what I see, in case the restart will happen at frequent intervals, a authentication will be done on each restart and Miele can lock the account data. Not sure if this will be happens, but it can.

But your new development with event based update, triggered by Miele, sounds interesting. Happy to test it soon...

Thanks for your feedback and good luck with the development :-)

Regards, Alexander

Grizzelbee commented 3 years ago

Please check V4.5.0 on github out, if it fits your needs. Be aware that this is defenately a BETA version.

alehofde commented 2 years ago

Feature no longer needed due to the change to push communication the problem has been resolved.

Thanks, alehof