This works for 1/3 states on my devices. Still need to deploy the other portions. Been mucking around with this for a while and this is the closest I got to it.
A was trying to use the choose block to send the triggering and non triggering light id’s as data variables and use them in the script, but that wasn’t working.
I really would like to get this so it just changes the portions that are changed, iterating through all the diff possible settings every state change. Kinda clunky to doit this way, but hey, its working for what I need.