Situations application feedback

Hello, the 326 works also fine on my x10III with 5.1.0.11 and the BT Problem with the BT bridge is also solved here. The fist start need also terminal because the screen was empty. But after that it works from launcher. Thanks I will tested it a hole day now…

Thanks @babo & @rdomschk , the empty screen with just Situation heading seems like the UI didn’t connect to background service - for whatever reason. I’ll see if I can reproduce with a fresh install.

1 Like

Situations startup problems seem to have been caused by the app support bluetooth changes - causing some dbus exception to happen on non-root installations - i.e. on a default startup on a clean device. Or any installation with just a non-root service. Should be fixed now here. But I haven’t tested if bluetooth plugins work anymore with app support and non-root service. Probably not.

Also made some blind changes to watchface plugin. It was already broken, so most likely no harm trying to fix it. If anyone has a pebble watch, please check if the new plugin shows any signs of life with it.

2 Likes

Thanks

I had a quick look at watchface and when I click on ‘what’ to a situation entry and then try to add a watchface, the list remains empty.

1 Like

Is there a way to turn bluetooth off, if it isnt connected to a device for a while?

Also if I use the followig automation it keeps turning off and on in a loop:
when:
Bluetooth = on and bluetooth device “XY” not nearby
do:
Bluetooth off

It would be cool if you be able to manually select between AND/OR commands.
And I’d like to trigger the start up command if the shell gets restarted. (patchmanager collides with the boot-commands if it doesnt start automatically after boot)

I have to say that the app is awesome. Coming from an iphone, it alone makes me fall in love with this device. It gives the user sooo much power without needing any linux knowledge.

Thanks for the feedback! The intent of the app is exactly to be somewhat intuitive while still be powerful enough for advanced uses also. So I guess that makes you a target audience :wink:

Sort of yes, but that “while” is quite limited at the moment. You can create a situation with a Bluetooth pro condition that has “Method” selected as “Active connection” (for some certain device connection) or “Any connection” (for any device connection). Then you can tap the condition icon to make it “negative” - i.e. the situation activates when ever that connection is not available.

As an action you can then have Bluetooth state. When editing that action (selecting on or off), in the bottom left corner there there is a small gear to edit action properties. Currently there is only one: timeout. From there you can set the a timeout for that action in milliseconds. But it can be maximum 60000 milliseconds, i.e. 60 seconds. So that’s the limitation.

I was thinking, perhaps there could be a separate “Timeout” condition that allows much bigger timeouts to be used. Alone it wouldn’t be too useful, but in this kind of case, combined with Bluetooth condition, might be. It would basically start a timeout right after the conditions before it have activated. So a situation could be active during that timeout. And by “negating” the timeout, a situation could instead become active after that timeout has passed. Requires a bit of mental juggling, but would such condition perhaps be useful?

For most actions the app restores previous values set in a situation when one is disabled. Perhaps that is what is happening here. Would it work better without the “Bluetooth = on” condition? When Bluetooth (or Wifi) is turned off, a periodic scanning condition should remember previous results precisely so that one could be used for this kind of scenario. But of course there might be bugs also…

Doing that would most likely complicate the UI a lot, so unlikely to happen. But you can achieve it by creating multiple situations instead. And using them in another situation as multiple conditions for a Situation condition (which are then “OR”).

Could you explain a bit more what exactly do you mean? Currently startup actions in Situations are reserved only for application startup itself. So could Situations perhaps also be restarted in this case? Or would there perhaps need to be a condition that tracks the shell state in an ordinary situation? Or something else…

I noticed a bug I had introduced earlier with plugin loading. Had to fix it, so updates are available here. Basically shouldn’t affect users much, but if you notice a plugin missing, please check the features page first if it is actually installed.

2 Likes

thanks for that long reply and especially your time!

60 seconds are enough to find a device and connect to it or reconnect on a connection loss.

I guess it would be enough, if you could set up a timer in the when clause and then the condition has to be true for as long as that timer is to trigger the actions. Similar to home assistant automations.

For most actions the app restores previous values set in a situation when one is disabled. Perhaps that is what is happening here.

Yes. I’m pretty sure thats the reason. I will try it with on next time. Would be cool, if there is an option while creating the situation to choose between trigger once or trigger in a loop like it happened here.

Doing that would most likely complicate the UI a lot, so unlikely to happen.

Yes, that would be difficult for sure. also it would complicate the code signifficantly i suppose. also combining and/or could create some weird behavior for people not used to such operators without also adding ().

Could you explain a bit more what exactly do you mean?

I try as best as i can :slight_smile:

i run the app karuselli to stick some apps into the partnered space. those apps are not started by default, so i trigger the launch with situations.

but if the ui crashes f.e., the apps wont get lauched again.

I also installed patch manager and its default setting willlaunch a few seconds after boot and restart the ui. vefore it triggers the restart itgives you the option to cancel it. the restart also closes my apps in the partnered space and situations wont fire them up again.

the app is already doing more than i could wish for! thanks for sacrificing your time with this cool project!