Hallo,
ich habe 2 Scripte, um eine Gruppe von Lampen ein- bzw. auszuschalten.
2 Scripte, da ich zum einen 2 Taster nutze (frühere Wechselschaltung) und zum anderen zum
Einschalten eine andere Taste nutze, als zum Ausschalten. "Umschalten" als Aktion geht da nicht.
Hier mal die Scripte:
Einschalten:
Code: Alles auswählen
alias: Licht Schlafzimmer ein
description: ""
trigger:
- platform: device
domain: homematicip_local
device_id: bec34fed0219fc4e6f9ddb57ec6a140d
event_type: homematic.keypress
interface_id: raspberrymatic-HmIP-RF
address: ******
type: press_short
subtype: 1
- platform: device
domain: homematicip_local
device_id: fec9d489860ac1e285679c80585ca9e6
event_type: homematic.keypress
interface_id: raspberrymatic-HmIP-RF
address: *******
type: press_short
subtype: 1
condition: []
action:
- service: homeassistant.turn_on
data: {}
target:
entity_id: light.licht_schlafzimmer
mode: single
Ausschalten:
Code: Alles auswählen
alias: Licht Schlafzimmer aus
description: ""
trigger:
- platform: device
domain: homematicip_local
device_id: bec34fed0219fc4e6f9ddb57ec6a140d
event_type: homematic.keypress
interface_id: raspberrymatic-HmIP-RF
address: ******
type: press_short
subtype: 2
- platform: device
domain: homematicip_local
device_id: fec9d489860ac1e285679c80585ca9e6
event_type: homematic.keypress
interface_id: raspberrymatic-HmIP-RF
address: *******
type: press_short
subtype: 2
condition: []
action:
- service: homeassistant.turn_off
data: {}
target:
entity_id: light.licht_schlafzimmer
mode: single
Kann man das in ein Script packen? Ich bekomme das nicht hin bzw. denke wohl wieder zu kompliziert
VG
Jens