TheTimeWalker / wallpanel-android

WallPanel is an Android application for Web Based Dashboards and Home Automation Platforms
https://wallpanel.xyz
Apache License 2.0
448 stars 46 forks source link

Mqtt command back to wallpanel app #98

Open ice2009 opened 1 year ago

ice2009 commented 1 year ago

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"}'
TheTimeWalker commented 1 year ago

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.

bj00rn commented 6 months ago

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