Automagic Automation on Sailfish

If you need any help, feel free to ask.
Also feel free to upload any cool setups to the Community Library if you got them working.

1 Like

How much CPU does the daemon need to run 24/7? And with more rules or “scenarios” will the daemon spend more CPU?

1 Like

That depends. Subscribing to a dbus signal should be very efficient as the daemon will be idling most of the time. Polling a web site every second will need more CPU and battery.

Technically yes, but again, depending on what it’s programmed to do it may be next to nothing.

Best you simply try it out :slight_smile:

1 Like

Thank you for your answers, yes I will try it out. Looks very promising . I will share my findings.

Before I try I have 2 scenarios which I hope they already work.

  1. I have like everyone I guess mobile network and wifi network running e.g. as soon as I come home the phone switches to the wifi network and will not use the mobile network. So what I want is that as soon as I leave home and I loose the wifi network that AAS will be switched on and when I come home and I connect to the wifi network AAS will be switched off. Is this possible?
  2. When I come home and I connect to the wifi network I want to send a curl command to Home Assistant to execute a automation. Is this possible?

Both cases rely on the fact that the wifi connection needs to be the active connection.

If there’s a way to start/stop AAS from the command line (which I think I’ve seen on this forum somewhere) then it should probably all work.

Yep:
As root

systemctl restart appsupport@defaultuser

Resp. use start/stop/restart

But if you want it to integrate into Automagic or use on command line you should check beforehand whether defaultuser or nemo or CaptainAhab is used

echo $USER

or

grep 100000:100000 /etc/passwd | cut -f1 -d:
3 Likes

Thank you, it now works perfectly in Automagic:

3 Likes

Version 1.0.32 adds support for physical buttons:

I wonder if it will be possible to access the privacy switch on the J2?

2 Likes

where can I find the online library?
edit: found it at pulley menu.

You can also upload your examples to the library:

3 Likes

Finally caught up and the repos, for those who want to build it are up to date… SailfishOS:Chum community · GitHub

2 Likes

So if you want to install and try Automagic, you install daemon and ui packages? I tried to follow the thread but… : )

It comes with both daemon and UI in a single RPM package.

1 Like

When I run devel-su pkcon install libsailfishapp-launcher it won’t install.
Package not found (running on JP2026).

I could imagine 5.2 may have changed package names or something.

Weird. Searched in with pkcon and found it.
Copy-pasted in the console and that worked fine.
Same spelling (it seems).

Thank you and to all contributors. The library helped me a lot to build an example to toggle wifi off on leaving my home.
It switches wifi off on disconnect. No more mac sharing to external routers. Will upload it next.

2 Likes

New recipe in the Community Library now covers privacy switch and Inari Blue LED:

4 Likes