Mqtt command back to wallpanel app
ice2009 opened this issue · comments
Hello :)
I need help from mqtt. After ringing my doorbell, wallpanel opens the Reolink application. I would need an mqtt command to close reolink application or re-open the wallpanel application with a mqtt command.
This command for reolink application
service: mqtt.publish
data:
topic: wallpanel/mywallpanel/command
payload: '{"url": "intent:#Intent;launchFlags=0x10000000;component=com.mcu.reolink/com.android.bc.login.WelcomeActivity;end"}'
Hey,
Unfortunately it's not possible how it's implemented right now. The WebView has to be on the screen for this to work properly. I'm also not sure if you can even open intents in the background from Android 10 onwards.
I have a similar use case where I would like to call a built in service to control brightness on my Lenovo Smart Clock 2. Would it be possible to implement support for calling services?
Equivalent adb command
service call charge_base 7 i64 255