If not, you can check one other possibility.
Does the name of the switch in Home Assistant match the name in Z2M?
If not, you will need to override the command path when calling the script.
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 the command_topic copied from the device and paste it into the “Command Path Map” field
Example:
No errors in the log (matching the device or script). I found some other things to look at but that’ll be for another time.
Getting the command_topic was exactly what I needed!
I bet that is because I changed the device type to be a fan instead of it being a light or a switch.
This is FANTASTIC! Thank you all for the hard work. For some reason, the blueprint/script did not work right away for me. Double checked the requirements, etc. All options were selected, but when I changed the Effect from blink to solid a few times, the script started working.
I have been looking for something like this. Thanks much!
@zanixmechanix Just wanted to give you a heads up that this blueprint is broken after updating to Zigbee2MQTT version 1.36. This appears to be due to a change in the Inovelli device model name.
Previous model name: Inovelli 2-in-1 switch + dimmer (VZM31-SN)
I just checked and it works. I am on Z2M 1.36.0 and Home Assistant 2024.2.5
The last updates to the blueprint were fixes for the model IDs that just use the model number.
2023.10.2
Update model filter to only model numbers
This fixes the fan switch not working with the latest Zigbee herdsman converters
2023.10.3
Model ID fix
Fix changing the model IDs in the last update that broke the script
good moring.
i seem to have an issue where only Aurora effect works. no other effect works the bar is just off. i have tried different colors.
also if i want to reset the ‘on’ bright blue ‘off’ dim blue do i just set that in another script with the 'LED Color When On (non-effect)" ‘LED Color When Off (non-effect)’?
Just wanted to say thank you for continuing to support this blueprint and making this change. Reimporting the blueprint, which I hadn’t done to date, corrected my issues without needing to do anything else.
Deprecated payload_template option used in MQTT publish action call to topic zigbee2mqtt/Lights/set from payload template {"led_effect": {"color": 170, "duration": 60, "effect": "pulse", "level": 100}} . Use the payload option instead. In automations templates are supported natively. Update the automation or script to use the payload option instead and restart Home Assistant to fix this issue.
I believe this line just needs to be changed from payload_template: '{{ payload }}'
to payload: '{{ payload }}'
Thanks for creating this blueprint! I just started using it today and it works great… as long as I’m controlling a single switch. When I try to use a label, nothing happens on any of the switches with that label. Any thoughts on how I can troubleshoot this?
They’re on the switch devices. Do I need to have them on the entities instead? (When I successfully use this for individual switches, that’s also on devices)