Please don’t use Pastebin, since it can randomly add spaces to the main view. Please also don’t share text as images since it makes it harder for people to help you. Remember that others may have colour blindness, impaired vision, etc.
It doesn’t seem to like the zero value for brightness. Try passing ‘0’ with quotes or even ‘1’. Since the effect itself is set to “off” it should still clear the effect. You should also be able to call the script with just:
alias: "Inovelli Blue Series Master Bathroom Fan Clear Notifications "
use_blueprint:
path: kschlichter/inovelli_led_blueprint.yaml
input:
entity:
- fan.master_bathroom_fan
The button at the top will always import the latest version of the script, so depending on when you did it, that may no longer be current. I think I was also changing some of this in March, before I bought a new house and took a new job, and got distracted. If loading the latest script and the above suggestions don’t work, I’ll try to make some time this weekend and see if I can set up ZigbeeMQTT to see how it’s all working.
I’ve update the script and the blueprint. No change unfortunately. Calling the script as you suggested does not work either. The switch in question is a VZM35-SN, which is the blue series fan switch.
This script call does not clear the effect.
In your trace, I don’t see the service call it’s using. Maybe I’m just not familiar enough with Z2M and I don’t know what I’m looking at. I’ll have to spend more time on it this weekend. The error you’re posting says “effect” is missing.
According to what’s exposed in Z2M, it should be “clear_effect” apparently. If I apply this “effect” manually through Z2M, it DOES clear the notification. Perhaps that’s what changed. This was definitely working before the last Z2M update.
As far as I can tell from the Z2M.io docs, the correct name for the effect has always been clear_effect. I’m not sure why clear ever worked. I’ve issued a new release with only this change. The blueprint will need to be reimported. If anyone is still on Z2M 1.37 or below, I’d love to know if I’ve broken anything so that I can fix it for all versions.
I also notice that “off” is an effect for these, unlike some of the Red Series where “off” means “clear the effect”. When I have more time I could add clear effect to the list of effects to differentiate them. If anyone is currently using “off” for “clear effect” it’ll break your automation and I’d love to hear from you before I cause you that trouble. I’d also like to hear if anyone is eager to use “off” as an effect. If nobody cares, maybe I’ll just leave things how they are.
I can confirm this change resolves the issue. Thank you! I have lots of red series and I was using “off” in this particular case to clear the effect on the blue series fan switch, just like I do for my red series devices. Updating the blueprint/script resolved the issues with no further changes on my end.
Thanks for putting this blueprint together! I don’t have any previous versions installed, and only have a few Inovelli Blue switches controlled through ZHA. When I try to import the blueprint via the import button, I get an Invalid blueprint error from Home Assistant which appears to show that every field in the blueprint has extra keys. Ex:
extra keys not allowed @ data['blueprint']['device']. Got '{{ input_device|default("invalid")|lower }}'
Is there something incorrect with my setup, or is there something I need to do to enable the blueprint to load?
This is a great blueprint thank you very much! I’ve had this in my automations for the past few weeks and it’s been 50/50 if it triggers. I am getting errors in the logs with the latest version.
Logger: homeassistant.components.script.day_led
Source: helpers/script.py:526
integration: Script (documentation, issues)
First occurred: 10:21:50 PM (15 occurrences)
Last logged: 10:28:27 PM
Light Switches Daytime LED Color: Repeat at step 2: Choose at step 6: default: Choose at step 3: choice 1: Repeat at step 2: Error executing script. Unexpected error for call_service at pos 1: invalid literal for int() with base 10: 'off'
Light Switches Daytime LED Color: Repeat at step 2: Choose at step 6: default: Choose at step 3: choice 1: Error executing script. Unexpected error for repeat at pos 2: invalid literal for int() with base 10: 'off'
Light Switches Daytime LED Color: Repeat at step 2: Choose at step 6: default: Error executing script. Unexpected error for choose at pos 3: invalid literal for int() with base 10: 'off'
Light Switches Daytime LED Color: Repeat at step 2: Error executing script. Unexpected error for choose at pos 6: invalid literal for int() with base 10: 'off'
Light Switches Daytime LED Color: Error executing script. Unexpected error for repeat at pos 2: invalid literal for int() with base 10: 'off'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 526, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 763, in _async_call_service_step
response_data = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 726, in _async_run_long_action
return await long_task
^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2741, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2784, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1080, in _async_admin_handler
await result
File "/usr/src/homeassistant/homeassistant/components/zha/websocket_api.py", line 1361, in issue_zigbee_cluster_command
await zha_device.issue_cluster_command(
File "/usr/src/homeassistant/homeassistant/components/zha/core/device.py", line 850, in issue_cluster_command
**convert_to_zcl_values(params, commands[command].schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/zha/core/helpers.py", line 199, in convert_to_zcl_values
value = field.type(value)
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/zigpy/types/basic.py", line 94, in __new__
n = super().__new__(cls, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: 'off'
Sorry for the delay, don’t know why I didn’t get the notification.
VZM31-SN, ZHA
See below
I was not getting this error before the 23rd.
I am able to run the first half to chance my switches LED colors with no issue. I can’t get this script to run any effects though. Regardless, it always produces this error. I’ve tried removing the groups and calling a switch individually and still produces this error.
alias: Light Switches Night LED Color
use_blueprint:
path: kschlichter/inovelli_led_blueprint.yaml
input:
entity: []
area: []
device: []
LEDcolor: Red
LEDcolor_off: Red
group:
- light.inovelli_switches
LEDbrightness: 2
LEDbrightness_off: 0.2
floor: []
brightness: 0
LEDnumber: All
description: ""
icon: mdi:weather-night
Edit: also getting this line in the error logs “Error for choose at pos 1: Failed to set attribute: value: 2 attribute: 63 cluster_id: 64561 endpoint_id: 1“