I have a load of Thread switches around my house to control the lights. They mostly use shortcuts, because I want on/off toggle. So the most simple of these is usually:
If {lightX} is On
Turn {lightX} Off
Else
Turn {lightX} On
End If
Many of these are colour bulbs though. So I'd like to do a very similar thing on some buttons of "if it's white, go blue, else go white" or similar. So I can get the current "hue" of the bulb in the shortcut (which I presume is basically the colour) and use it as a variable. So if it's the colour it currently is is white, go blue, else go white. But I can only say if it's one hue, change the colour to an undefined colour hue I've chosen from a colour picker and have no idea what hue it is, else go to something hopefully near the original colour, but then won't be able to cycle it a second time if it's not exactly the same hue.
How on earth do I relate what the current colour is ("hue"), to anything on the numberless/hueless colour wheel or vice-versa!
Is there any chart, or way to get it to tell you?
I was wondering if I can set the shortcut to email me the current hue for now, work the numbers out, then remove that bit of the shortcut, but I can add an email address to the shortcut, but seemingly not send a message (I can do programming, but have little experience of Apple Shortcuts, and there seems little info on the more basic Home shortcuts, than the full range out there for say an iPhone). Could I make that work?
I have considered if I put a range in rather than a single value for the "if hue is" maybe I can get close enough to pull it off? But I haven't a clue if hues have some kinda universal colour numbering system, and if there is trying to google it didn't help.
Any ideas? (Other than re-program the switch so everytime I press a button it emails Apple telling Craig Federighi to put some bloody numbers in the colour picker! 😂)
If {lightX} is On
Turn {lightX} Off
Else
Turn {lightX} On
End If
Many of these are colour bulbs though. So I'd like to do a very similar thing on some buttons of "if it's white, go blue, else go white" or similar. So I can get the current "hue" of the bulb in the shortcut (which I presume is basically the colour) and use it as a variable. So if it's the colour it currently is is white, go blue, else go white. But I can only say if it's one hue, change the colour to an undefined colour hue I've chosen from a colour picker and have no idea what hue it is, else go to something hopefully near the original colour, but then won't be able to cycle it a second time if it's not exactly the same hue.
How on earth do I relate what the current colour is ("hue"), to anything on the numberless/hueless colour wheel or vice-versa!
Is there any chart, or way to get it to tell you?
I was wondering if I can set the shortcut to email me the current hue for now, work the numbers out, then remove that bit of the shortcut, but I can add an email address to the shortcut, but seemingly not send a message (I can do programming, but have little experience of Apple Shortcuts, and there seems little info on the more basic Home shortcuts, than the full range out there for say an iPhone). Could I make that work?
I have considered if I put a range in rather than a single value for the "if hue is" maybe I can get close enough to pull it off? But I haven't a clue if hues have some kinda universal colour numbering system, and if there is trying to google it didn't help.
Any ideas? (Other than re-program the switch so everytime I press a button it emails Apple telling Craig Federighi to put some bloody numbers in the colour picker! 😂)