Page 1 of 1

dzVents Android app launch

Posted: Sunday 20 September 2020 12:06
by ChrisKerswell
Hi,

I have a device which needs to be polled via MQTT to get the latest status.

Is there a way to trigger an event when the Android app opens, that way I run a script to poll the device when needed.

I can't find an event in any documentation that would achieve this?

Re: dzVents Android app launch

Posted: Sunday 20 September 2020 12:46
by waaren

ChrisKerswell wrote:
Is there a way to trigger an event when the Android app opens, that way I run a script to poll the device when needed.
If the tasker plugin can send a customEvent via JSON or MQTT on opening the app, it should be doable.




Re: dzVents Android app launch

Posted: Monday 21 September 2020 2:11
by ChrisKerswell
Good plan, thanks!

I have a virtual push button switch to allow me to manually trigger the commends I need so I have just set tasker to use the plugin to press that when the Domoticz app opens.