Appreciate the quick fix! I actually have another issue: the areas and groups don’t seem to work, I’ve only had success when addressing a specific device. I’m no expert in reading these traces but it looks like it’s interesting through 11 device_types and not finding any switches, but I have several VZM31-SN. I’m using Z2M, I’m not sure where to find the model name in HA to see if it matches but perhaps this screenshot helps. Otherwise please let me know where I should look to figure it out?
The model is in your second screenshot ("2-in-1 switch + dimmer) and that’s what it’s searching for. These should be in the light domain (i.e. light.entity_id) but if you’ve changed them to switches, they’ll be filtered out. That’s one possible issue. If the entity_id is still in the light domain, take a look at comment #106 above and send me that info? I’m especially looking for anything with an exclamation mark, like the service call at the bottom of this trace:
I found two bugs and fixed them. Reimport your blueprint after 12:00PM Pacific and see if that helps. One is a bug in ZHA but the other fix might be what you were seeing. If it doesn’t help, get me the service calls and variable info from comment #106 and I’m sure I can figure this out.
I tried out the latest version but have the same error. I haven’t changed any of the types, they’re still lights. I also don’t have any errors or exclamation points in the trace. The only service call that runs seems to be clear effects.
To keep it basic I’m using one of the examples from github like so, can you let me know if this part looks correct, it could just be my error:
action: script.inovelli_led
data:
entity: light.bathroom_ceiling
LEDcolor_off: RED
LEDbrightness_off: 2
The only service that runs is this one and it actually seems correct, but all the others are skipped.
That example is only going to set the off color but it should work. Can you send me the output of your travel from the top box and “changed variables”? When I get home I can try that example on one of my VZM31-SN entities.
I’ve joined discord but I don’t know how to find you. I used my real name so you can find me. That’s okay on the internet; right? Anyway…
entity: light.bathroom_ceiling
LEDcolor_off: no change
LEDbrightness_off: 11
That didn’t get the LEDcolor_off or LEDbrightness_off values. Are you calling the script from the actions tab or from an automation? The output looks like it was run with all the defaults; just the entity_id and nothing else. You seem to be using the script–not the blueprint–so I’ve run the script with:
action: script.inovelli_led
data:
entity: light.office
LEDcolor_off: RED
LEDbrightness_off: 2
I get these changed variables (excluding the stuff that isn’t changed) and you can see it picks up my entity_id and the variable values. It’s already converted RED to lowercase as well.
Did you import the blueprint and then call it like a script from the Developer Tools → Actions tab? I don’t think that will work. If you imported the blueprint, you’ll have to navigate to Settings → Automations & Scenes → Blueprints (at the top), click on my blueprint (whatever you named it) to open the configuration UI. Configure it however you’d like and save it as a script. It’s then a static script which won’t accept inputs from the Actions tab. In other words, you can’t set it for red one time and blue another time. You’d need to open the blueprint, configure it for red, save it as Inovelli_red_leds and then do it again to generate inovelli_blue_leds. Calling those will do the needful but you need to save it as a statically-configured script for each configuration you want.
Personally, I find it limiting and so I don’t use blueprints very much. If you want to call it with different values that can be templated in automations, you’ll need to save the script as a script. To do that, go to the github link and open the inovelli_leds.yaml file. Copy the contents. In Home Assistant, navigate to Settings → Automations & Scenes → Scripts (at the top), then click on the “+ Create Script” button in the lower-right corner. On the dialog box that pops up, click “create a script” to open a new script editor. In the upper-right click the vertical ellipsis menu and “edit in YAML”. Delete everything you see there and paste in the contents from github. After you save it, you can call the script with dynamic values from templates. To update the script you’ll have to edit it again and copy / paste the contents but it’s so much more powerful than using a statically configured blueprint. That’s my opinion, anyway.