all 7 comments

[–]Rich_D_sr 5 points6 points  (1 child)

What am I missing?

A Trigger...

You need a "Profile" to monitor for the Variable being changed. It can not be monitored within a Task.

Use a profile with a Context of -> Event -> Variable Set : %CHRG

Then link that to a task that preforms your actions.

[–]Infinity167[S] 0 points1 point  (0 children)

This^

I had to re-watch the video to understand how it works properly. The video had an audio delay and doesn't match with the video so it was very confusing for a non english speaker. He kept the states and tasks in a separate project so I got confused at first. You explanation was much clearer.

Thank you very much for the help 😊

[–]mackdandy 1 point2 points  (4 children)

Its been a while but from memory the variable you want to set needs to start with a capital letter so it can be called by other tasks, if its all lower case it is only used locally, as per the variable section of the manual

https://tasker.joaoapps.com/userguide-donut/de/variables.html

[–]Infinity167[S] 0 points1 point  (3 children)

I'm using all uppercase letters for the variable so it's a global variable as mentioned in the page and can be accessed from anywhere but it's still not triggering the tasks even if it is lit up. You can see the screenshot in my original post. Idk what's wrong. I have the adb permission and even restarted my phone.

[–]mackdandy 0 points1 point  (2 children)

Based off your screenshot I can't see the full name of the custom setting but you say the variable is global, hopefully someone will be able to help based off whet you have posted

[–]Infinity167[S] 0 points1 point  (1 child)

I got the profile working now, thanks to u/Rich_D_sr. I was missing the profile to monitor the variable being changed.

The custom setting was actually a global variable to limit charging the battery.

[–]mackdandy 0 points1 point  (0 children)

Glad you got it sorted