Hello, I just recently found this script and I’m playing with it on my LZW36 fan/light switch. I have been able to make the LED strip for the light button work with the script but the fan button doesn’t seem to respond to commands. Is there something special I need to do to get the fan LED strip to use the effects?
and this way the light LED strip responds, the fan does not. I’ve tried all 3 entities in my YAML as well but it’s the same so I’m thinking there’s something I’m missing.
#2 The code you’ve posted does not contain the modification I’ve posted. Using what I have posted will change the fan LED on the LZW36. (I’ve tested it locally)
I’m having issues getting the blueprint to work (and I’m a noob, so I don’t know how to just install the script either). I’m getting the following in my log:
Logger: homeassistant.components.websocket_api.http.connection
Source: components/blueprint/importer.py:160
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 7:34:30 PM (1 occurrences)
Last logged: 7:34:30 PM
[140257971047968] Error handling message: Unknown error (unknown_error)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response
await func(hass, connection, msg)
File "/usr/src/homeassistant/homeassistant/components/blueprint/websocket_api.py", line 68, in ws_import_blueprint
imported_blueprint = await importer.fetch_blueprint_from_url(hass, msg["url"])
File "/usr/src/homeassistant/homeassistant/components/blueprint/importer.py", line 225, in fetch_blueprint_from_url
imported_bp = await func(hass, url)
File "/usr/src/homeassistant/homeassistant/components/blueprint/importer.py", line 160, in fetch_blueprint_from_github_url
resp = await session.get(import_url, raise_for_status=True)
File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 640, in _request
resp.raise_for_status()
File "/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 1004, in raise_for_status
raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url=URL('https://raw.githubusercontent.com/brianhanifin/Home-Assistant-Config/master/blueprints/script/brianhanifin/inovelli_led.yaml')
I found this thread and tried your script, which appears to solve my issues (as I believe it has to do with the deprecated Z-wave protocols is was evaluating or something along those lines). Anyway, the script works great for this Blueprint, except I am getting this error related to the “for_each” part of the repeat section.
Logger: homeassistant.components.script.inovelli_led
Source: helpers/script.py:409
Integration: Script (documentation, issues)
First occurred: 20:09:18 (1 occurrences)
Last logged: 20:09:18
: Repeat ‘for_each’ must be a list of items in , got: light.mudroom
This automation is only dealing with one Inovelli switch, so there’s not a list of entities it’s going to update. I’ve tried adjusting the script to only do the one, but I haven’t figured out how to resolve this error. Do you have any suggestions on how I should modify it so it’s OK with only one entity and not expecting an entire list? I’d really appreciate any pointers you can provide. Thanks for posting this.
Just want to document that for the new 2-1 dimmer/switch (800 series) the parameter is different(99) and the math variables order is also different. More details here.
I’ve updated my automation with a variable that covers the different byte order for the VZW31, and a conditional that uses one set of math or the other based on model identifier.
The VZW31 also supports a larger set of effects which are not implemented, and won’t be since I have the prior generation Red series dimmers and switches.
Thanks to @LoremIpsum and @BrianHanifin for all their efforts on this, I have gone ahead and forked @LoremIpsum’s latest changes and expanded on the VZW31 list of available effects, and added some additional time and color options.
In the process I likely broke the ability of anything else using the switch model type, unfortunately I don’t have any of the older switches to test with so if anyone is able to help here is my current contribution. I’m very new to Home Assistant and Python so still very much learning, unlike all you very accomplished coders. I do learn pretty fast though so I will keep at it.
As time allows I’ll look to add or homogenize the color choices based off the Z-Wave JS Config DB Entries, and work with everyone to improve further.
I did notice that whenever I tried to set param 99 back to 0 Z-Wave JS would immediately log 99 being set from 0 to 4, which was preventing the notification effect from turning off. After much experimentation I found that setting a bitmask and just turning the effect off worked just fine for the VZW31. I imagine there maybe some adjustments needed if different techniques are needed for different models.
Anyways, here’s my rough fork, thanks again for all the past work on this.
My fork that supports the new Inovelli Red 2-in-1 switch and the Blue series 2-in-1 switch through the Zigbee2MQTT integration. I do not have the old red series dimmer or fan switch, so support for them was dropped. I got rid of the inovelli math in favor of the new bitmasked named parameters in zwave js. [Z2M] Inovelli led notification script for Red onoff, Red 2-in-1, and Blue 2-in-1
I would like to send you my thanks for this. As a refugee from Hubitat, I had been struggling to get my LED alerts to work again under HA. Perfect implementation for me. Thumbs UP!