[Z2M] Inovelli Blue Series Switch LED Notification Script (VZM31-SN, VZM35-SN)

2025.8.0

Refactor Target Handling, Support New Switches

  • Split target list into separate sections to avoid template character limit
  • Move input fields into an advanced section
  • Add support for On/Off Switch (VZM30-SN) and mmWave Zigbee Dimmer (VZM32-SN)
  • Update minimum Home Assistant version to 2024.6.0

Follow Re-importing a blueprint to update

Hi, I’d like to use this blueprint but not sure if it will meet what I want to do.

I’d like to use the LEDs in the VZM31 just like a light. entity so they can’t be controlled as regular lights. Has anyone done this?

1 Like

This blueprint doesn’t expose the LED bar as a light entity and I don’t think any blueprint could work like that. Exposing the LED bar as a light entity that would need to be a custom integration and I don’t know of anything like that.

Does this script need to be updated based on a Z2M update last year that changed the numbering from 0-6 to 1-7?
Convert Inovelli UI LED1-7 to API 0-6 for individualLedEffect by sprior · Pull Request #9288 · Koenkk/zigbee-herdsman-converters · GitHub

Yes, they are mapped correctly. I checked my switch just now.
In this blueprint, LED 1 is on the bottom and LED 7 is on the top.

Is there something I need to do to reinitialize the script? When I send the command to light LED7, I get:

payload: {"individual_led_effect": {"color": 170, "duration": 255, "effect": "solid", "led": 6, "level": 100}}

Which actually lights LED6 (second from the top), meaning I can’t access the top LED as an individual.

Z2M says the allowed values are 1-7 but the blueprint is mapping 0-6 at line 462:

  leds:
    'all': -1
    'led 1': 0
    'led 2': 1
    'led 3': 2
    'led 4': 3
    'led 5': 4
    'led 6': 5
    'led 7': 6

Those diffusers make it hard to tell which LED is active. I checked again and I was wrong. Selecting LED 1 sends 0 but it still activated LED 1. Sending LED 7 sends 6 and it looked like it was 7 from my desk but once I got close I could tell it was 6. I will make an update shortly.

Can you try this updated blueprint? I adjusted the LED values in that list.

I tried it last night and it seemed to be working for my existing scripts, but I didn’t do any exhaustive testing.

Definitely hard to tell 6 vs 7, but in my specific scenario I was using the script to clear the top three LEDs from the default state. Easier to see that LED7 isn’t be accessed when it results in it staying on.

2026.4.0

Fix LED numbering

  • LED numbering was 0-6 but an update to Z2M changed this to 1-7

Follow Re-importing a blueprint to update

Is there a way to have a small delay between updating the LED on multiple devices? I use this blueprint to set the LED color for a label with 24 devices and I noticed that somewhere after 15ish devices some of them would fail to change color. My guess is that my Zigbee network gets oversaturated with messages when they all get fired without a delay in there.

I could obviously use this blueprint inside of a loop to update a single device at a time and add the pause every few iterations, but it would be a great option to have in the blueprint itself

I’m just changing the colors. Using Z2M. They’re a mix of dimmers and switches. I’m down to test a script

Does anyone else using this script experience freezing of their LED bar? I configure the color of the LED bar based on outside temperature, and assign the individual LEDs to get a split coloring. I'd guess that Z2M is getting overwhelmed, but it's only 4 switches and not all of them freeze at the same time, even though they're referencing the same scripts. The rest of the switch works fine, I just cannot change the LED bar when this happens, can't even revert to default coloring. I've learned that I can get everything back online by rebooting home assistant, but that gets to be a pain.

I can't say that I have came across this issue. I have an automation that sets an effect for 6 switches at once but that's a one-and-done command and not several like you have. I would guess that the network is overwhelmed.
I'm not sure if this would work, but I wonder if you can create a group in Z2M and set the effect for the group.

Can this be used to set scheduled timers for LED in dark bedrooms?

I like the LEDs to show the location of switches, but they’re too bright when sleeping, so I’d like to turn them off when in bed, then wake them back to what they should be otherwise.

Do I need to copy the whole state in/out again, or can I use it like a light switch?

I don’t think this script is the best option for what you need.
I do the same thing for a couple switches that are near my bed. I use an automation to set a fan switch attributes: like the LedIntensityWhenOff attribute to 0 and LedIntensityWhenOn to 10 at night as well as setting the LedColorWhenOn and LedColorWhenOff to red so it’s less disruptive when it’s turned on. Then I have the automation set the original levels and colors in the morning.