Wireless Charging as condition

Post your questions and help other users.

Moderator: Martin

Post Reply
Knighty
Posts: 2
Joined: 23 Dec 2013 17:22

Wireless Charging as condition

Post by Knighty » 23 Dec 2013 17:38

Hello!

I switched from llama to your app because automations are displayed very clear and structured, but I had some rules that used the AND conditions. I read that AND is not directly possible in your app, but by combining triggers and conditions some workarounds should do it. In my case there seems to be a missing condition and/or a not correctly working variable.

The task is as follows:

between 11pm and 6am AND if the device is charged wireless(!) -> airplane mode should be activated.

As I understand I have to build 2 flows, the first one has wireless charging as trigger and the timespan as condition. This one works as expected.
The second one with interchanged settings. Time as trigger (11pm) and wireless charging as condition (in case the device is already charging at 11pm). But wireless charging is not there as condition. As workaround I chose Expression: battery_plugged == 4. But it doesn't seem to work.

thanks in advance

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

Re: Wireless Charging as condition

Post by Martin » 24 Dec 2013 14:06

Hi,

You could use a condition Power Source Connected to test whether the device is charging in general. The condition also makes some additional variables available to the flow like battery_plugged.
You can test for this variable with a condition Expression: battery_plugged==4 by connecting the true-branch of the first condition with the second condition.

Regards,
Martin

Knighty
Posts: 2
Joined: 23 Dec 2013 17:22

Re: Wireless Charging as condition

Post by Knighty » 21 Jan 2014 17:16

Works, thank you!

Post Reply