I seem to remember that the location of the systemctl binary was changed some time ago from /bin to /usr/bin. I had to modify sudoers then.
It has indeed changed to /usr/bin. That was it.
Thanks, appreciated!
I’ve just started using this application and really like what it can do, so thanks for that! 
Though I do have a question as well: Is (already?) possible to trigger a When event at startup? I’d like to automatically start certain applications on boot, and haven’t yet found a way to do that completely automatically!
At the moment I have a “When” → DND to launch applications, which is a nice workaround, but fully automated would be neater of course.
Thanks for the feedback!
I Wonder If this works for you: do not have any condition in the situation that is supposed to run in startup. Instead, make it manual and activated by hand. I.e. swipe left and swipe right on the main list. You should see a red stop-sign on the right (manual) and yellow play-sign on left (activated).
Of course it will run the actions first time. But should activate also in the future in startup if Situations is autostarted.
“Downside” is that the situation is then always active…
You can fully automize, make a situation with when based on time for 24h full hours. Then use that situation for when and for what just start your apps. This is what I do and it works, it will only start apps on boot.
That works and solves my issue, so easy I just didn’t think it would work as a trigger! 
Thanks a lot! 
Is there any way to enable hotspot when the phone is connected via Bluetooth to a specific device ? I want to be able to open hotspot when connected with my car Bluetooth device
Hi, and apologies for the slow reply.
With BT scanning condition (pro-version), it should be possible to set scanning method to “active connection” and select your car bluetooth. And then add hotspot action to that situation.
But I haven’t tested it for a long time and apparently Situations is not really working with the latest SF OS (I hear). I’ve focused on getting Android version running on top of latest Qt and recent enough Android SDK. Will jump back to Sailfish also at some point, but not yet…
It work like a charm ! Amazing job on the app . I ve also setup Nightish to start during night hours and terminate in the morning via the command feature. Its a tasker alternative in sailfishos but friendlier abd simplier. Sailfishos 5 works. I will be donating
Situations indeed seems to work with SFOS 5. The only thing I could not set up so far is commands to stop and start Android AppSupport (such as ‘systemctl start apkd.service’). It is likely related to missing privilege inside situations. I thought that the daemon that we install upon the installation of Situations would be enough to get the right to launch commands as root?
Ok, thanks. So perhaps it was some other issue with SFOS 5 then.
Sorry, I have no help to starting/stopping that Android AppSupport. The separately installed background service should indeed have enough privileges to do that though. The best that I can remember now is closing individual applications with command something like “sudo appsupport-attach am force-stop [androidapllication]”.
Hi!
I’ve been using this application for a while now and I’m a fan. I’m seeing a few bugs, but nothing that serious. Someone mentioned earlier that may occur on sfos 5.
I do have a feature suggestion though. I think it would have been neat if situations could detect when an alarm goes off. Perfect time to turn off “do not disturb” in the morning, or maybe send out a few mqtt messages to turn on house ligths and the coffe machine ![]()
Or set Nextcloud-Status to ‘Driving Car’ when connected to the car audio via Bluetooth
Is there a way switch VPN on with situations or with command? I would like to turn vpn on for backupscript, but net.connman call requires root.
To be able to run this elevated command from Situations, you could install sudo and configure it to not prompt for a password when running dbus-send:
- Install Sudo: devel-su + Password ; pkcon install sudo
- Create a file “my-personal-settings” under
/etc/sudoers.d/ - Fill the file with following lines:
defaultuser ALL = (ALL) NOPASSWD: ALL
defaultuser ALL = NOPASSWD: /usr/bin/dbus-send
taken from: Potential Bluetooth Support in the Android App Support (AAS) - #155 by rdav
Hey,
I’ve been lately working on updating the app on Sailfish to the same level with Android version. Android version in based on latest Qt & QML & Controls, so basically this was making the libraries compile & work with an older Qt & rewriting the UI for Sailfish.
With UI I ended up emulating the controls library but with Sailfish style - so that the source differences to Android version would be quite minimal. In practice this meas UI is close to “native” on Sailfish - but not entirely.
Anyway, the work is now in such phase that I decided to publish beta version(s) here: Release Beta release 315 · pastillilabs/packages · GitHub
So any brave souls can now try it out. And hopefully report problems
I haven’t tried for example updating over previous versions yet. Or perhaps the UI has issues on other devices than my Xperia 10 or emulator. Or perhaps some feature/plugin is not working as it should. Or something else. Please do try it out.
To be honest, I didn’t even try the packages I uploaded there (I’ve been mostly just deploying to emulator & device from QtC). But should be fine, I hope ![]()
Br,
Heikki
Hello, I tested it but I could not import my old situation Backup. Also a new backup from this app I cannot found. The app run without other problems. Only the notifications are in English and not in my choosen language.
Thanks! I also finally tried the actual package and it does install also for me. But for some reason lost the previous app data. Good to know there are problems with import/export also.
Does the notifications language change if you change the language setting from application settings?
Br,
Heikki
The notifications are in German, but special notifications like Export done are only in English. But this are not bad. The app show that they will save the export in “home/defaultuser/situations/” but this folder not exist. If I create a folder it is also empty after a export. If I copy my backup file appdata.json in this folder the import also not work. A folder “home/defaultuser/situations2/” exist but the same game. No export file and with my file no import. The notification and the busy circel shows done? I gave with root also all rights for writing, reading and execute but no chance.
The good think is, after uninstall and reinstall the old version all is back. I will look in your code to see more and we get in contact… Sorry I see its all binary and I cannot see qml files.