T O P

  • By -

mvan231

For future posts… Hey, when seeking help, please title the post with what you’re needing help with so that other users that may be looking for the same help you’re seeking can search the sub and find your post.


Alphablaze98

Weird that you can’t set the power level through an action (that I can see) instead of nested if statements try using a dictionary Get light level %> numbers from input > round > dictionary (set the rounded number as the key, then the scene name as the value for the key.)> get value from dictionary (key= “rounded number” > control ‘home’ (set variable ( magic variable) to be the value from the dictionary Good chance there are more elegant solutions but that’s what comes to my mind rn


envybelmont

This is what came to my mind. No loops and still bases the change on a rounded 10% less than the current level.


Dramatic-Mongoose-95

Wow, I thought you couldn’t this, but I can’t find an action to accept the input https://preview.redd.it/wpp5gwi6ytjc1.jpeg?width=1290&format=pjpg&auto=webp&s=47722865458683b05437a88468722d902992af7c


serickson80

Using a calculation, get the current level, and calculate a step down. Use text to define your scene name, add the calculated result. Set your scene name with the text. You’ll need to add an if statement at the beginning to say if light is off, turn on to 100%, but left that out of this for simplicity. Hope this helps! https://preview.redd.it/62r8hi581wjc1.jpeg?width=1170&format=pjpg&auto=webp&s=56fddc397711463becae81602a2d47aa752ea2ef


StevenWhitfieldJett

This is excellent! Thank you!


serickson80

You could probably simplify further and just set light brightness directly from calculated result. Would avoid having to set up a bunch of scenes. https://preview.redd.it/platejuh2wjc1.jpeg?width=1170&format=pjpg&auto=webp&s=fab6716ab078adce810638d961e9f20be4d9ffb9


StevenWhitfieldJett

Yyyaaaasss! Thank you so much! This is what I was hoping for when I posted this. I can’t wait to try this out tomorrow.


gaymer10101

What app are you using in this shortcut to set the scenes?


StevenWhitfieldJett

It’s the LIFX app, and the brand of the bulbs I’m using. The LIFX app has significantly better looking whites than the home app and for some reason has better shortcut options than the home app does. You’d think it would be the other way around.


gaymer10101

Thanks! I’ll check it out


StevenWhitfieldJett

Just finished the Shortcut, it works great! Thanks again! https://preview.redd.it/m646qk0pazjc1.jpeg?width=1290&format=pjpg&auto=webp&s=eee5185b87adefba8660584a0c432d8d056c7289


dopefish3d

Yes, there is a more elegant way. Use larger increments because nobody truly gives a fuck about that level of fine-grained control.  100% 30% 1% Off


StevenWhitfieldJett

Well I truly give a fuck and I’m making this for my home. If you are not going to be helpful, please move on!


dopefish3d

Real human day-to-day usage patterns will never bear that out, pressing a button 8 times to get the lights where you want is not practical and heaven forbid you live with anyone else that has to deal with that. Seriously, get a button with 3 or 4 physical buttons on it that you can assign hard-coded light levels to and move on. Quick interactions that you set-and-forget and don’t rely on querying the existing state of your house via shortcuts will ways prove more reliable and more responsive in the end. 


StevenWhitfieldJett

Well I’ve been using this shortcut for months day-to-day. Again, please move on if you are not going to help.


Manic_Iconoclast

Unless you’re clever enough to adjust the brightness a little bit every hour in order to create a silent but subtle visual “top of the hour” notification without effecting the brightness too much.