Hi,
I have 3 switches in my living room and I would like to switch the same lamp from all of them. Actually I use 3 time the same code for each switch. Is there a way how to shorten the code a little bit?
alias: UI Busch-Jäger-Esstisch
description: ""
trigger:
- platform: device
domain: mqtt
device_id: db465fd4a340ef65dcb6f45a087eb83f
type: action
subtype: on_row_2
discovery_id: 0xd85def11a1006ac6 action_on_row_2
id: ein
- platform: device
domain: mqtt
device_id: db465fd4a340ef65dcb6f45a087eb83f
type: action
subtype: off_row_2
discovery_id: 0xd85def11a1006ac6 action_off_row_2
id: aus
- platform: device
domain: mqtt
device_id: 84b973e0373ab257e7faa98551f917ef
type: action
subtype: on_row_2
discovery_id: 0xd85def11a1006ac9 action_on_row_2
id: ein
- platform: device
domain: mqtt
device_id: 84b973e0373ab257e7faa98551f917ef
type: action
subtype: off_row_2
discovery_id: 0xd85def11a1006ac9 action_off_row_2
id: aus
- platform: device
domain: mqtt
device_id: 2757aa39e94d6d9f9602ad8c1606a129
type: action
subtype: on_row_2
discovery_id: 0xd85def11a10065f2 action_on_row_2
id: ein
- platform: device
domain: mqtt
device_id: 2757aa39e94d6d9f9602ad8c1606a129
type: action
subtype: off_row_2
discovery_id: 0xd85def11a10065f2 action_off_row_2
id: aus
The device IDs are:
- device_id: db465fd4a340ef65dcb6f45a087eb83f
- device_id: 84b973e0373ab257e7faa98551f917ef
- device_id: 2757aa39e94d6d9f9602ad8c1606a129
Thanks for support,
Spartacus