wallpanel-android icon indicating copy to clipboard operation
wallpanel-android copied to clipboard

Mqtt command back to wallpanel app

Open ice2009 opened this issue 2 years ago • 2 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"}'

ice2009 avatar Sep 27 '23 19:09 ice2009

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.

TheTimeWalker avatar Oct 08 '23 17:10 TheTimeWalker

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

bj00rn avatar Apr 24 '24 10:04 bj00rn