A blueprint script to control the LED notification bar on the Inovelli VZM31-SN Blue Series 2-1 Switch. This is based on the Inovelli Z-Wave Red Series Notification LED script.
Features
- Select one or multiple devices, entities, or areas with Inovelli switches
- Selectors for LED Number, Color, Brightness Level, Effect, and Duration
- LED Number, Color, Effect, and Duration can accept direct values or the “friendly name” listed in the dropdown
- Debug info to diagnose issues
- Warning: Debug mode will create a persistent message for every entity called plus 1
Requirements
- Zigbee2MQTT, this does not work with ZHA
- The device name (found in Settings > Devices > MQTT > DeviceName) of the switch entity needs to match the “friendly name” in Zigbee2MQTT
- This can be overridden if needed
- Find the command path
- Settings > Devices > MQTT (click on “## Devices”) > DEVICE NAME
- Click on “More Info” and expand “Payload”
- Find
command_topic
and copy the value
- Enter the
entity_id
of the light entity and thecommand_topic
copied from the device and paste it into the “Command Path Map” field
Example:light.west_light: "zigbee2mqtt/living_room/lights/west_light/set" light.east_light: "zigbee2mqtt/living_room/lights/east_light/set"
Changes
Expand to view
2023.3.1
MQTT Path Override
- Add Command Path Map
- This is used to override the MQTT path for a specified entity
2022.11.2
Refactor and Fixes
- Add target selector
- Choose multiple areas, devices, and entities
- The entity_id field still works
- Default values changed
- Effect - “Slow Blink” > “Clear”
- Color - “Yellow” > “Red”
- Fix the LED number
- Zigbee2MQTT expects 0-6, not 1-7
- All is now -1 (was 0)
- Allow direct value for effect using the friendly name is no longer required
- Force lowercase on the conversion of fields and parameters
- Allow 100 parallel runs (was 10)
- Update Debug info
- Overall info: entity list, entity count, led, color, level, effect, duration
- Each entity: entity, device name, topic, payload
- Warning: Debug mode will create a persistent message for every entity called!
2022.11.1
- Initial version
Add the Blueprint
- Click the “Import Blueprint” button above
- Click Preview, then Import Blueprint
- Click “Create Script” from the Blueprint
- Select an icon (ex.
mdi:led-on
) - Choose Entity ID (ex.
inovelli_blue_led_zigbee2mqtt
)- This will automatically be created from the name if you don’t enter anything
- Save
- Select an icon (ex.
- The script should now be available to Home Assistant
When using the UI to create a script from the blueprint, ensure you have
script.yaml
included in yourconfiguration.yaml
Adding Blueprint Without UI
You can add this script manually if you do not use the UI for scripts by using the following yaml
- Click the “Import Blueprint” button above
- Click Preview, then Import Blueprint
- Add the following yaml to wherever you keep script yaml
inovelli_blue_led:
alias: Inovelli Blue LED (Zigbee2MQTT)
description: Set LED effects for Inovelli VZM31-SN Blue Series 2-1 Switches
use_blueprint:
path: zanix/inovelli_blue_led_zigbee2mqtt.yaml
icon: mdi:led-on
mode: parallel
max: 100
(Optional) Allow Parallel Runs
By default, Home Assistant creates a blueprint script with mode
set to single
and max
will be defaulted to 10
You may want to change these so the script can run with more than a single instance
Alternatively, you can create multiple script instances from the blueprint, but I would not suggest this.
- Go to Settings > Automations & Scenes > Scripts
- Find the script “Inovelli Blue LED (Zigbee2MQTT)” if you didn’t change the name) and click on it
- Click the 3-dot menu and select “Edit YAML”
- Change
mode: single
tomode: parallel
- Add
max: 100
belowmode: parallel
- Save the Script
Using the Script
- Testing Settings > Developer Tools > Services
- Choose “Inovelli Blue LED (Zigbee2MQTT)” or the name you gave the script
- In Automations Settings > Automations
- Choose “Call Service” for the action and select “Inovelli Blue LED (Zigbee2MQTT)” or the name you gave the script
Thanks
@BrianHanifin - Original “Inovelli Z-Wave Red Series Notification LED” script
@kschlichter - Logic for multiple areas, devices, and entities
@romamix - Idea to override MQTT command path