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

Hi Joshua,

Thanks for the effort on this. I just got it working, sort of on my HA installation.
The problem I’m having is in the blueprint line 390~.
I’m using two instances of Z2M because of covering two separate buildings. One named -1 and the second -2.
Looks like it’s stripping that to go with “zigbee2mqtt.” I can get manually change it to “zigbee2mqtt-1” and get it to work in one instance. Can the full path be carried over to the command path?
I’m a nube with the code. Sugestions?


- variables:
       command_path: "{% if repeat.item in command_path_map %}\n  {{ command_path_map[repeat.item]
         }}\n{% else %}\n  zigbee2mqtt-1/{{ device_attr(repeat.item, \"name\") }}/set\n{%
         endif %}" 

There isn’t a way to get the command path in the script, so I had to hard-code the MQTT path on the line you found.

You can edit the blueprint, but then it would only work for one of the Z2M instances.

You could also copy the blueprint and have 2 instances of it and create a script instance for each blueprint. But that seems kind of wasteful.

There is a third solution that is built into the blueprint script instance. You can use the “Command Path Map” field for a custom path per-light entity:

light.west_light: "zigbee2mqtt/living_room/lights/west_light/set"
light.east_light: "zigbee2mqtt/living_room/lights/east_light/set"

The only downside is you would be adding this list for each call to the script.

Now that I am writing this, I think there might be a way to add a global map to the blueprint.
When I get some time, I will look into this.

I went ahead and made a script blueprint for controlling Inovelli LED notifications via ZHA: ZHA - Inovelli VZM31-SN Blue Series 2-1 Switch LED Notification Script

1 Like

Awesome! Glad one exists for ZHA now.

1 Like

@zanixmechanix I reused a lot of your code for another blueprint that uses ZHA and takes your idea of iterating through targets (such as areas, devices, entities) to get all switches found that correspond with the target. Also took the opportunity to optimize a few things and make the script faster. Would love your feedback! Thanks.

ZHA - Inovelli Blue Series Animated Notifications to single or multiple switches simultaneously!

Awesome! Glad to hear my code helped.

I see the biggest changes are the payload construction was moved out of the repeat loop and the removal of the “entity_id” parameter (which is only there since I made this script initially without the target options).
Not having to rebuild the payload on each loop would be slightly faster. Thanks for catching that, now I’ll have to update my blueprint.

No thank you @zanixmechanix . Your code saved the day! I’d been looking for a way to achieve a multicast to all switches at once and your iteration idea is for sure the closest thing to it. In essence, here is what I modified:

  1. Converted from Z2M to ZHA
    1.1 Command_path removed
    1.2 Changed integration: zha
    1.3 service: mqtt.publish replaced by zha.issue_zigbee_cluster_command
  2. Removed the Off values from most config options except from Effect, to generate 1 standard way to stop an animation and avoid confusion
  3. Changed several Default values so that the script does a bare minimal animation with bare minimal configuration
  4. Remove the depricated Entity_ID parameter and extra logic
  5. Took the payload building out of the loop for faster iteration

The rest, is basically the same! Could this be the ZHA alternative you suggest in this post instead?

  1. I agree with the multiple “off” options, I will update my blueprint as well.
  2. My thought on the default values is that the switch should clear the current effect when nothing is passed, so mine is staying the same.
  3. I’m removing entity_id on my next update too.
  4. I’m doing this as well

As for replacing the ZHA script I mentioned with yours, I would rather add yours as an option.


Thanks for not kicking mine out :slight_smile:

I updated my script with some of the improvements @diegomorales17 made (and more).

At the end of the day, our versions accomplish slightly different objectives, so it’s good to point people to whichever one suits their needs best.

1 Like

Blueprint updated


Add Fan Switch, Optimize Loop, Cleanup

  • Add support for the “Inovelli Fan Controller (VZM35-SN)”
  • Optimize looping over multiple entities
  • Remove entity_id from fields/parameters
    • Use target: entity_id: <entity> instead
  • Remove “Off” option from “Color” and “Duration”
    • Use “Effect” instead
    • “Off” values are still accepted, just not selectable from the fields
  • Change “Brightness level” default from 40 to 100
  • Sort the “Effect” to group similar effects together
1 Like


Update model filter to only model numbers

  • This fixes the fan switch not working with the latest Zigbee herdsman converters


Model ID fix

  • Fix changing the model IDs in the last update that broke the script