thecowan / wallpanel-android

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

Mqtt command back to wallpanel app #363

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"}'
GernotAlthammer commented 11 months ago

You can use the Relaunch command See description. https://github.com/thecowan/wallpanel-android/wiki/MQTT-and-HTTP-Commands {"relaunch": true} --> Relaunches the dashboard from configured launchUrl

billchurch commented 10 months ago

See #341

Jieper001 commented 2 months ago

@ice2009 - did you ever got this working? Using the Relaunch command over MQTT doesn't close the Reolink app. I would like to make a script which after x-minutes sends an MQTT command to wallpanel to return to "the wallpanel app".

ice2009 commented 2 months ago

Back to the wall app not working for me. I use wallpaper app to default launcher on android settings and after i use tasker for back home after 90 seconds