Hi,
I have a NodOnn softremote and I want to dim three lamps with ‘+’ and ‘-’ buttons. I found in this form code for a single lamp which works. I try to modify it for 3 lamps but I can’t get it working the right way, With code included in this post I have three ‘entity_id’s’ and one ’ brightness’ lines. Guess what all three lamps dims if I press the “+”, but I do not know why it works. If I add two additional brightness lines I get an error. Combining the entity_id’s in one brightness line gives also an error.
I also tried to use the group-name of the lamps as entity_id but that doesn’t work either.
Which official code is needed to to dim three lamps? Again the included code works but I have only one brightness line.
Automations
- id: '10000000000001'
alias: Verlichting aan
trigger:
- platform: event
event_type: zwave.scene_activated
event_data:
entity_id: zwave.nodon_crc360x_soft_remote
scene_id: 10
action:
- service: light.turn_on
entity_id: group.verlichting
- id: '1000000000002'
alias: Verlichting uit
trigger:
- platform: event
event_type: zwave.scene_activated
event_data:
entity_id: zwave.nodon_crc360x_soft_remote
scene_id: 30
action:
- service: light.turn_off
entity_id: group.verlichting
- id: '1000000000003'
alias: Verlichting dimmen +10%
trigger:
- platform: event
event_type: zwave.scene_activated
event_data:
entity_id: zwave.nodon_crc360x_soft_remote
scene_id: 20
action:
- service: light.turn_on
entity_id:
- light.vloerlamp_tv__ik27
- light.vloerlamp_bank__ik27
- light.lamp_ladekast_kamer_ik14
data_template:
brightness: '{{ states.light.vloerlamp_tv__ik27.attributes.brightness|int + 31 }}'
BR,
Ron