I am not sure if this is related, but I do have an issue setting rgbw modules:
wohnzimmer:
entities:
- light.led_sofa
- light.led_esstisch
Added to the config script:
light.led_sofa:
endpoint: 1
light.led_esstisch:
endpoint: 1
From Z2M:
[160-38-1-targetValue] Target value
I guess it should work like that, right? But I get an error:
zwave_js_server.exceptions.FailedZWaveCommand: Z-Wave error 302: This virtual node (endpoint 1) does not support the Command Class Multilevel Switch! (ZW0302)
I don’t get the error if they are already off and I set to 0.
These devices are new and also a different model than the ones that do already work. So maybe I am missing something.
Fibargroup RGBW CONTROLLER 2 FGRGBW-442
I do have multiple entities for each color and one master. But that is the same as for the older models.
petro
(Petro)
August 20, 2022, 2:22pm
66
You’re using the wrong command class for that light. The script defaults to a normal light command class, your device must use something different. Or you have the wrong endpoint.
settings:
light:
command_class: 38
property: targetValue
endpoint: 0
value: "{{ brightness_pct }}"
It should match this one:
[160-38-1-targetValue]
I can manually set this in Z2M and it switches on properly.
petro
(Petro)
August 20, 2022, 2:27pm
68
then it should be working. I’d have to see your trace variables
Now it is getting weird.
If both light are on (Z2M says 99), I can’t set both to 0. But if either one of them is already at 0 it works.
It also doesn’t work if using a group that contains multiple lights in addition. If both are on (or off), it fails
petro
(Petro)
August 20, 2022, 2:31pm
70
that doesn’t help, i literally need to see the trace variables.
petro
(Petro)
August 20, 2022, 2:42pm
71
… do you know how to get the trace variables? It’s easy…
I am not sure what it means.
petro
(Petro)
August 20, 2022, 2:45pm
73
in the script trace, there’s a page named variables. Just like automations.
Thanks, like this?
this:
entity_id: script.z_wave_multicast_wohnzimmer_lichter_einschalten
state: 'off'
attributes:
last_triggered: '2022-08-20T14:50:30.257600+00:00'
mode: single
current: 0
friendly_name: Z-Wave Multicast - Wohnzimmer Lichter einschalten
last_changed: '2022-08-20T14:50:30.307177+00:00'
last_updated: '2022-08-20T14:50:30.307177+00:00'
context:
id: 01GAXVQSZDJ3V6P0ZSCXYSHX54
parent_id: null
user_id: 724db9ce77aa4301a79ff8562e5901d9
context:
id: 01GAXVR0ZXD1K861XX8F7BRJQY
parent_id: null
user_id: 724db9ce77aa4301a79ff8562e5901d9
petro
(Petro)
August 20, 2022, 2:53pm
76
No… you’re missing all the information I need to see. This is an example of my last run.
this:
entity_id: script.zwave_multicast_group
state: 'off'
attributes:
last_triggered: '2022-08-20T14:44:50.838640+00:00'
mode: parallel
current: 0
max: 10
friendly_name: Multicast to Zwave Switch/Light Group
last_changed: '2022-08-20T14:44:51.689589+00:00'
last_updated: '2022-08-20T14:44:51.689589+00:00'
context:
id: 01GAXVDEGK5Q2K00GJFXDD7FZW
parent_id: null
user_id: 22e2ad009e2d4637994cb494afe30c8e
group: group.office_area
level: 255
brightness_pct: 99
value: true
settings:
light:
command_class: 38
property: targetValue
endpoint: 0
value: 99
switch:
command_class: 37
property: targetValue
endpoint: 0
value: true
switch.flood_light:
endpoint: 1
switch.sliding_door_sconce:
endpoint: 2
switch.double_plug_left:
endpoint: 1
switch.floating_double_plug_left:
endpoint: 1
switch.floating_double_plug_right:
endpoint: 2
lights:
- light.bonus_room_office_fixture
- light.bonus_room_office_recessed
switches: null
items:
- domain: light
command_class: 38
property: targetValue
endpoint: 0
value: 99
entity_id:
- light.bonus_room_office_fixture
- light.bonus_room_office_recessed
execute: true
total: 1
context:
id: 01GAXVFR9D2NJRZZZT6GR91E2T
parent_id: null
user_id: 22e2ad009e2d4637994cb494afe30c8e
petro
(Petro)
August 20, 2022, 2:54pm
77
Do you not have it set to parallel mode?
No, but I changed it to parallel by inserting the code again in scripts.yaml.
Still the same.
The traces don’t change. I run the script and go to traces. But there is no more information.
petro
(Petro)
August 20, 2022, 3:06pm
79
can’t do anything without traces. It’s all working on my end. Try clearing your cache.
From where do I have to run the script? From the editor and then going to show the traces?
petro
(Petro)
August 20, 2022, 3:10pm
81
doesn’t matter, whenever the script runs a trace will be created
There is no trace - nowhere.
Do I have to enable that somewhere? I don’t use default_config:
for example.
petro
(Petro)
August 20, 2022, 3:16pm
83
why does the entity_id not match what’s in the changed variables?
I don’t know.
I don’t see the script zwave_multicast_group
in the frontend anymore. But it still works for other scripts. It was visible before though.
I use scripts to trigger zwave_multicast_group
, for example:
service: script.zwave_multicast_group
data:
group: group.wohnzimmer
level: 255