Yesterday, I installed an Inovelli Blue (IB) Zigbee switch/dimmer (model VZM31-SN) as a dimmer (replacing a Leviton Zigbee dimmer). For the OFF state, I wanted the LED strip to show only a single LED at night, but all 7 LEDs during the day. I worked out last night how to set individual parameters in Rule Machine for the IB dimmer -- an image of the code is below.
Two questions:
First, is there a more elegant way in RM to run through all 7 LED's, like a function or the like to which the LED number (e.g., "61") is passed, and a loop?
Second, I'm about to replace 40 more Leviton Zigbee dimmers with IB's. The brute force way to set the nighttime LEDs would require 41 lengthy rules. Is there a way to pass a device name or ID to a rule or function? For example, have a first rule with the names/IDs of all 41 IB units and a loop calling a second rule that applies the code below to each IB unit?
Here's an article from Inovelli on the topic -- it mentions both Rule Machine (RM) stuff and a community-developed Hubitat app called "LED Mini Dashboard". I think that Mini Dashboard app still works, but it's unfortunately no longer being supported -- the developer left the Hubitat platform quite a while ago.
I used that app when I first installed my Blues long ago, but I swapped everything over to RM earlier this year... That Inovelli article gives a good start/intro as to the basics of managing the LED bar in RM, but it still took me a while experimenting how to fine-tune the available RM options, but now I'm happy I did -- I've found RM to be more flexible than that app.
Here's one of my posts from earlier this year where I show a few examples of my rule builds.
I had already found the Mini-Dashboard app. However, that only deals with using the LEDs for notifications, not ON/OFF state -- different parameters are involved. Also, I'm most interested in Rule Machine "shortcuts", such as looping through a set of parameters or device names/IDs so that I don't have to create 41 rules (tedious even with cloning and/or copy-paste, and much more difficult to maintain if system-wide changes are desired).