Get light sensor value (room brightness)

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
User avatar
aximili
Posts: 23
Joined: 28 Jun 2018 11:14

Get light sensor value (room brightness)

Post by aximili » 29 Jun 2018 03:52

(I am a Tasker user who just bought Automagic because I love the flow chart view and the less need for plugins)

In Tasker you can get the light sensor value using %LIGHT.
I rely on that heavily for my automations but my battery still survived so it's definitely worth it :)

In AutoMagic there is a light sensor trigger, but you cannot get the value from a condition.
Can this be added or am I missing something?

May be related:
1. viewtopic.php?f=5&t=4209
2. viewtopic.php?f=6&t=6096 (Creating your own screen filter using widget sounds really cool, if it can adjust transparency based on the current light, but first you'll need the light value)

User avatar
digitalstone
Posts: 342
Joined: 21 Oct 2017 12:36
Location: The Netherlands

Re: Get light sensor value (room brightness)

Post by digitalstone » 29 Jun 2018 04:04

If you look at the conditon Light Level, you'll see inside the variable part of the help-section that you can use the variable light_level further on inside your flow.
Inside this condition you'll set the criteria under or over which value should end up in a 'true' exit.
Phone: LG Nexus 5X (rooted vanilla Android 7.1.2)

User avatar
aximili
Posts: 23
Joined: 28 Jun 2018 11:14

Re: Get light sensor value (room brightness)

Post by aximili » 29 Jun 2018 07:56

Perfect! Thanks very much! I've looked everywhere but couldnt find an answer I thought it was unavailable

Locked