Keep Input Dialog on Display

Post your questions and help other users.

Moderator: Martin

Post Reply
MCHilli
Posts: 16
Joined: 20 Feb 2014 20:48

Keep Input Dialog on Display

Post by MCHilli » 28 Feb 2015 16:53

Hi,
can i make, that the "Input Dialog" with single choice menu keeps on display after choose an input, like a overlay widget?!
Is that possible?!

For information:
I control my lights over Automagic and when i switch a light the actual state will shown on the input dialog, so when i choose an input the dialog will go away and switch the light and will shown again after a few seconds. better, the dialog keeps on display and only the actual state will change.

for better understanding here a screenshot of the dialog what i mean:
Attachments
Screenshot_2015-02-28-17-41-22.png
Screenshot_2015-02-28-17-41-22.png (22.85 KiB) Viewed 6154 times

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Keep Input Dialog on Display

Post by Martin » 01 Mar 2015 14:12

Hi,

You can not keep the dialog open but would have to reopen the dialog directly after a value was chosen which should be quite fast when no other actions are running in between.

In this case I would recommend to use a custom widget and use a script to update the text or change the color of a rectangle on the widget when a switch is toggled. You can either place such a widget on one of the home screens or directly on the lock screen (unfortunately Google removed this feature on Android 5). You can also show the widget using action Show Custom Widget Overlay/Eigenes Widget Overlay einblenden somewhere on screen.

Another approach would be to use a toggle widget (Umschalt Widget) with a global boolean variable to implement the switches. You can create the toggle widget by long-pressing on the home screen and then by selecting the widget called AM Toggle Widget/AM Umschalt Widget. You can use trigger Global Variable to execute a flow when a switch is toggled.

Regards,
Martin

Post Reply