Hallo ihr Lieben,
Ich habe einige Zwave Fernsteuerungen ZRC-90 von Remotec in Verwendung und bin gerade dabei diese von Fibaro HC2 in HA zu übersiedeln.
Nun habe ich mir eine Vorlage gemacht wo ich nur die Device ID ändern muss.
Allerdings kommt sie im Skript 32 x vor!!!
Nun stellen sich mir folgende Fragen:
- Ist mein Skript (siehe unten) praxistauglich, wenn das Ändern der DeviceID jedes mal gemacht wird.
- Kann man das vielleicht am Anfang des Skriptes mit einer Variable oder sowas lösen?
- Ist es besser eine Blaupause, die ich NACHHER gefunden habe zu verwenden?
- Gibt es vor und Nachteile wenn man die Blaupausen nicht verwenden, sondern die Kontrolle „ubernimmt“ und dann direkt ohne Bezug zum Ursprung einsetzt?
Sorry das sind viele Fragen, aber ich bin noch ganz am Anfang meiner HA Karriere und möchte mein HA System mit möglichst wenig „exterenen“ Tools verwenden ohne „leere Kilometer“ zu machen
Ich hab mein funktionierendes Skript mal hier zur Verfügung gestellt, freue mich über euer Feedback:
alias: "Vorlage - Remotec ZRC-90 "
description: ""
triggers:
# -----------------------------------------------------------Taste 1
- alias: Taste 1 - gedrückt
device_id: <DeviceID des Gerätes>
domain: zwave_js
type: event.value_notification.central_scene
property: scene
property_key: "001"
endpoint: 0
command_class: 91
subtype: Endpoint 0 Scene 001
trigger: device
value: 0
id: Taste 1 - gedrückt
- alias: Taste 1 - losgelassen
device_id: <DeviceID des Gerätes>
domain: zwave_js
type: event.value_notification.central_scene
property: scene
property_key: "001"
endpoint: 0
command_class: 91
subtype: Endpoint 0 Scene 001
trigger: device
value: 1
id: Taste 1 - losgelassen
- alias: Taste 1 - gehalten
device_id: <DeviceID des Gerätes>
domain: zwave_js
type: event.value_notification.central_scene
property: scene
property_key: "001"
endpoint: 0
command_class: 91
subtype: Endpoint 0 Scene 001
trigger: device
value: 2
id: Taste 1 - gehalten
- alias: Taste 1 - 2 x gedrückt
device_id: <DeviceID des Gerätes>
domain: zwave_js
type: event.value_notification.central_scene
property: scene
property_key: "001"
endpoint: 0
command_class: 91
subtype: Endpoint 0 Scene 001
trigger: device
value: 3
id: Taste 1 - 2 x gedrückt
# -----------------------------------------------------------Taste 2
- alias: Taste 2 - gedrückt
device_id: <DeviceID des Gerätes>
domain: zwave_js
type: event.value_notification.central_scene
property: scene
property_key: "002"
endpoint: 0
command_class: 91
subtype: Endpoint 0 Scene 002
trigger: device
value: 0
id: Taste 2 - gedrückt
- alias: Taste 2 - losgelassen
device_id: <DeviceID des Gerätes>
domain: zwave_js
type: event.value_notification.central_scene
property: scene
property_key: "002"
endpoint: 0
command_class: 91
subtype: Endpoint 0 Scene 002
trigger: device
value: 1
id: Taste 2 - losgelassen
- alias: Taste 2 - gehalten
device_id: <DeviceID des Gerätes>
domain: zwave_js
type: event.value_notification.central_scene
property: scene
property_key: "002"
endpoint: 0
command_class: 91
subtype: Endpoint 0 Scene 002
trigger: device
value: 2
id: Taste 2 - gehalten
- alias: Taste 2 - 2 x gedrückt
device_id: <DeviceID des Gerätes>
domain: zwave_js
type: event.value_notification.central_scene
property: scene
property_key: "002"
endpoint: 0
command_class: 91
subtype: Endpoint 0 Scene 002
trigger: device
value: 3
id: Taste 2 - 2 x gedrückt
# -----------------------------------------------------------Taste 3
- alias: Taste 3 - gedrückt
device_id: <DeviceID des Gerätes>
domain: zwave_js
type: event.value_notification.central_scene
property: scene
property_key: "003"
endpoint: 0
command_class: 91
subtype: Endpoint 0 Scene 003
trigger: device
value: 0
id: Taste 3 - gedrückt
- alias: Taste 3 - losgelassen
device_id: <DeviceID des Gerätes>
domain: zwave_js
type: event.value_notification.central_scene
property: scene
property_key: "003"
endpoint: 0
command_class: 91
subtype: Endpoint 0 Scene 003
trigger: device
value: 1
id: Taste 3 - losgelassen
- alias: Taste 3 - gehalten
device_id: <DeviceID des Gerätes>
domain: zwave_js
type: event.value_notification.central_scene
property: scene
property_key: "003"
endpoint: 0
command_class: 91
subtype: Endpoint 0 Scene 003
trigger: device
value: 2
id: Taste 3 - gehalten
- alias: Taste 3 - 2 x gedrückt
device_id: <DeviceID des Gerätes>
domain: zwave_js
type: event.value_notification.central_scene
property: scene
property_key: "003"
endpoint: 0
command_class: 91
subtype: Endpoint 0 Scene 003
trigger: device
value: 3
id: Taste 3 - 2 x gedrückt
# -----------------------------------------------------------Taste 4
- alias: Taste 4 - gedrückt
device_id: <DeviceID des Gerätes>
domain: zwave_js
type: event.value_notification.central_scene
property: scene
property_key: "004"
endpoint: 0
command_class: 91
subtype: Endpoint 0 Scene 004
trigger: device
value: 0
id: Taste 4 - gedrückt
- alias: Taste 4 - losgelassen
device_id: <DeviceID des Gerätes>
domain: zwave_js
type: event.value_notification.central_scene
property: scene
property_key: "004"
endpoint: 0
command_class: 91
subtype: Endpoint 0 Scene 004
trigger: device
value: 1
id: Taste 4 - losgelassen
- alias: Taste 4 - gehalten
device_id: <DeviceID des Gerätes>
domain: zwave_js
type: event.value_notification.central_scene
property: scene
property_key: "004"
endpoint: 0
command_class: 91
subtype: Endpoint 0 Scene 004
trigger: device
value: 2
id: Taste 4 - gehalten
- alias: Taste 4 - 2 x gedrückt
device_id: <DeviceID des Gerätes>
domain: zwave_js
type: event.value_notification.central_scene
property: scene
property_key: "004"
endpoint: 0
command_class: 91
subtype: Endpoint 0 Scene 004
trigger: device
value: 3
id: Taste 4 - 2 x gedrückt
# -----------------------------------------------------------Taste 5
- alias: Taste 5 - gedrückt
device_id: <DeviceID des Gerätes>
domain: zwave_js
type: event.value_notification.central_scene
property: scene
property_key: "005"
endpoint: 0
command_class: 91
subtype: Endpoint 0 Scene 005
trigger: device
value: 0
id: Taste 5 - gedrückt
- alias: Taste 5 - losgelassen
device_id: <DeviceID des Gerätes>
domain: zwave_js
type: event.value_notification.central_scene
property: scene
property_key: "005"
endpoint: 0
command_class: 91
subtype: Endpoint 0 Scene 005
trigger: device
value: 1
id: Taste 5 - losgelassen
- alias: Taste 5 - gehalten
device_id: <DeviceID des Gerätes>
domain: zwave_js
type: event.value_notification.central_scene
property: scene
property_key: "005"
endpoint: 0
command_class: 91
subtype: Endpoint 0 Scene 005
trigger: device
value: 2
id: Taste 5 - gehalten
- alias: Taste 5 - 2 x gedrückt
device_id: <DeviceID des Gerätes>
domain: zwave_js
type: event.value_notification.central_scene
property: scene
property_key: "005"
endpoint: 0
command_class: 91
subtype: Endpoint 0 Scene 005
trigger: device
value: 3
id: Taste 5 - 2 x gedrückt
# -----------------------------------------------------------Taste 6
- alias: Taste 6 - gedrückt
device_id: <DeviceID des Gerätes>
domain: zwave_js
type: event.value_notification.central_scene
property: scene
property_key: "006"
endpoint: 0
command_class: 91
subtype: Endpoint 0 Scene 006
trigger: device
value: 0
id: Taste 6 - gedrückt
- alias: Taste 6 - losgelassen
device_id: <DeviceID des Gerätes>
domain: zwave_js
type: event.value_notification.central_scene
property: scene
property_key: "006"
endpoint: 0
command_class: 91
subtype: Endpoint 0 Scene 006
trigger: device
value: 1
id: Taste 6 - losgelassen
- alias: Taste 6 - gehalten
device_id: <DeviceID des Gerätes>
domain: zwave_js
type: event.value_notification.central_scene
property: scene
property_key: "006"
endpoint: 0
command_class: 91
subtype: Endpoint 0 Scene 006
trigger: device
value: 2
id: Taste 6 - gehalten
- alias: Taste 6 - 2 x gedrückt
device_id: <DeviceID des Gerätes>
domain: zwave_js
type: event.value_notification.central_scene
property: scene
property_key: "006"
endpoint: 0
command_class: 91
subtype: Endpoint 0 Scene 006
trigger: device
value: 3
id: Taste 6 - 2 x gedrückt
# -----------------------------------------------------------Taste 7
- alias: Taste 7 - gedrückt
device_id: <DeviceID des Gerätes>
domain: zwave_js
type: event.value_notification.central_scene
property: scene
property_key: "007"
endpoint: 0
command_class: 91
subtype: Endpoint 0 Scene 007
trigger: device
value: 0
id: Taste 7 - gedrückt
- alias: Taste 7 - losgelassen
device_id: <DeviceID des Gerätes>
domain: zwave_js
type: event.value_notification.central_scene
property: scene
property_key: "007"
endpoint: 0
command_class: 91
subtype: Endpoint 0 Scene 007
trigger: device
value: 1
id: Taste 7 - losgelassen
- alias: Taste 7 - gehalten
device_id: <DeviceID des Gerätes>
domain: zwave_js
type: event.value_notification.central_scene
property: scene
property_key: "007"
endpoint: 0
command_class: 91
subtype: Endpoint 0 Scene 007
trigger: device
value: 2
id: Taste 7 - gehalten
- alias: Taste 7 - 2 x gedrückt
device_id: <DeviceID des Gerätes>
domain: zwave_js
type: event.value_notification.central_scene
property: scene
property_key: "007"
endpoint: 0
command_class: 91
subtype: Endpoint 0 Scene 007
trigger: device
value: 3
id: Taste 7 - 2 x gedrückt
# -----------------------------------------------------------Taste 8
- alias: Taste 8 - gedrückt
device_id: <DeviceID des Gerätes>
domain: zwave_js
type: event.value_notification.central_scene
property: scene
property_key: "008"
endpoint: 0
command_class: 91
subtype: Endpoint 0 Scene 008
trigger: device
value: 0
id: Taste 8 - gedrückt
- alias: Taste 8 - losgelassen
device_id: <DeviceID des Gerätes>
domain: zwave_js
type: event.value_notification.central_scene
property: scene
property_key: "008"
endpoint: 0
command_class: 91
subtype: Endpoint 0 Scene 008
trigger: device
value: 1
id: Taste 8 - losgelassen
- alias: Taste 8 - gehalten
device_id: <DeviceID des Gerätes>
domain: zwave_js
type: event.value_notification.central_scene
property: scene
property_key: "008"
endpoint: 0
command_class: 91
subtype: Endpoint 0 Scene 008
trigger: device
value: 2
id: Taste 8 - gehalten
- alias: Taste 8 - 2 x gedrückt
device_id: <DeviceID des Gerätes>
domain: zwave_js
type: event.value_notification.central_scene
property: scene
property_key: "008"
endpoint: 0
command_class: 91
subtype: Endpoint 0 Scene 008
trigger: device
value: 3
id: Taste 8 - 2 x gedrückt
#--------------------------------------------------------------------------- Actions -------------------------
conditions: []
actions:
# -----------------------------------------------------------Taste 1
- alias: Taste 1 - gedrückt
if:
- condition: trigger
id:
- Taste 1 - gedrückt
then:
- action: notify.mobile_app_handy_paul_s22
metadata: {}
data:
message: Remotec ZRC90 - Taste 1 gedrückt
- alias: Taste 1 - losgelassen
if:
- condition: trigger
id:
- Taste 1 - losgelassen
then:
- action: notify.mobile_app_handy_paul_s22
metadata: {}
data:
message: Remotec ZRC90 - Taste 1 losgelassen
- alias: Taste 1 - gehalten
if:
- condition: trigger
id:
- Taste 1 - gehalten
then:
- action: notify.mobile_app_handy_paul_s22
metadata: {}
data:
message: Remotec ZRC90 - Taste 1 gehalten
- alias: Taste 1 - 2 x gedrückt
if:
- condition: trigger
id:
- Taste 1 - 2 x gedrückt
then:
- action: notify.mobile_app_handy_paul_s22
metadata: {}
data:
message: Remotec ZRC90 - Taste 1 - 2 x gedrückt
# -----------------------------------------------------------Taste 2
- alias: Taste 2 - gedrückt
if:
- condition: trigger
id:
- Taste 2 - gedrückt
then:
- action: notify.mobile_app_handy_paul_s22
metadata: {}
data:
message: Remotec ZRC90 - Taste 2 gedrückt
- alias: Taste 2 - losgelassen
if:
- condition: trigger
id:
- Taste 2 - losgelassen
then:
- action: notify.mobile_app_handy_paul_s22
metadata: {}
data:
message: Remotec ZRC90 - Taste 2 losgelassen
- alias: Taste 2 - gehalten
if:
- condition: trigger
id:
- Taste 2 - gehalten
then:
- action: notify.mobile_app_handy_paul_s22
metadata: {}
data:
message: Remotec ZRC90 - Taste 2 gehalten
- alias: Taste 2 - 2 x gedrückt
if:
- condition: trigger
id:
- Taste 2 - 2 x gedrückt
then:
- action: notify.mobile_app_handy_paul_s22
metadata: {}
data:
message: Remotec ZRC90 - Taste 2 - 2 x gedrückt
# -----------------------------------------------------------Taste 3
- alias: Taste 3 - gedrückt
if:
- condition: trigger
id:
- Taste 3 - gedrückt
then:
- action: notify.mobile_app_handy_paul_s22
metadata: {}
data:
message: Remotec ZRC90 - Taste 3 gedrückt
- alias: Taste 3 - losgelassen
if:
- condition: trigger
id:
- Taste 3 - losgelassen
then:
- action: notify.mobile_app_handy_paul_s22
metadata: {}
data:
message: Remotec ZRC90 - Taste 3 losgelassen
- alias: Taste 3 - gehalten
if:
- condition: trigger
id:
- Taste 3 - gehalten
then:
- action: notify.mobile_app_handy_paul_s22
metadata: {}
data:
message: Remotec ZRC90 - Taste 3 gehalten
- alias: Taste 3 - 2 x gedrückt
if:
- condition: trigger
id:
- Taste 3 - 2 x gedrückt
then:
- action: notify.mobile_app_handy_paul_s22
metadata: {}
data:
message: Remotec ZRC90 - Taste 3 - 2 x gedrückt
# -----------------------------------------------------------Taste 4
- alias: Taste 4 - gedrückt
if:
- condition: trigger
id:
- Taste 4 - gedrückt
then:
- action: notify.mobile_app_handy_paul_s22
metadata: {}
data:
message: Remotec ZRC90 - Taste 4 gedrückt
- alias: Taste 4 - losgelassen
if:
- condition: trigger
id:
- Taste 4 - losgelassen
then:
- action: notify.mobile_app_handy_paul_s22
metadata: {}
data:
message: Remotec ZRC90 - Taste 4 losgelassen
- alias: Taste 4 - gehalten
if:
- condition: trigger
id:
- Taste 4 - gehalten
then:
- action: notify.mobile_app_handy_paul_s22
metadata: {}
data:
message: Remotec ZRC90 - Taste 4 gehalten
- alias: Taste 4 - 2 x gedrückt
if:
- condition: trigger
id:
- Taste 4 - 2 x gedrückt
then:
- action: notify.mobile_app_handy_paul_s22
metadata: {}
data:
message: Remotec ZRC90 - Taste 4 - 2 x gedrückt
# -----------------------------------------------------------Taste 5
- alias: Taste 5 - gedrückt
if:
- condition: trigger
id:
- Taste 5 - gedrückt
then:
- action: notify.mobile_app_handy_paul_s22
metadata: {}
data:
message: Remotec ZRC90 - Taste 5 gedrückt
- alias: Taste 5 - losgelassen
if:
- condition: trigger
id:
- Taste 5 - losgelassen
then:
- action: notify.mobile_app_handy_paul_s22
metadata: {}
data:
message: Remotec ZRC90 - Taste 5 losgelassen
- alias: Taste 5 - gehalten
if:
- condition: trigger
id:
- Taste 5 - gehalten
then:
- action: notify.mobile_app_handy_paul_s22
metadata: {}
data:
message: Remotec ZRC90 - Taste 5 gehalten
- alias: Taste 5 - 2 x gedrückt
if:
- condition: trigger
id:
- Taste 5 - 2 x gedrückt
then:
- action: notify.mobile_app_handy_paul_s22
metadata: {}
data:
message: Remotec ZRC90 - Taste 5 - 2 x gedrückt
# -----------------------------------------------------------Taste 6
- alias: Taste 6 - gedrückt
if:
- condition: trigger
id:
- Taste 6 - gedrückt
then:
- action: notify.mobile_app_handy_paul_s22
metadata: {}
data:
message: Remotec ZRC90 - Taste 6 gedrückt
- alias: Taste 6 - losgelassen
if:
- condition: trigger
id:
- Taste 6 - losgelassen
then:
- action: notify.mobile_app_handy_paul_s22
metadata: {}
data:
message: Remotec ZRC90 - Taste 6 losgelassen
- alias: Taste 6 - gehalten
if:
- condition: trigger
id:
- Taste 6 - gehalten
then:
- action: notify.mobile_app_handy_paul_s22
metadata: {}
data:
message: Remotec ZRC90 - Taste 6 gehalten
- alias: Taste 6 - 2 x gedrückt
if:
- condition: trigger
id:
- Taste 6 - 2 x gedrückt
then:
- action: notify.mobile_app_handy_paul_s22
metadata: {}
data:
message: Remotec ZRC90 - Taste 6 - 2 x gedrückt
# -----------------------------------------------------------Taste 7
- alias: Taste 7 - gedrückt
if:
- condition: trigger
id:
- Taste 7 - gedrückt
then:
- action: notify.mobile_app_handy_paul_s22
metadata: {}
data:
message: Remotec ZRC90 - Taste 7 gedrückt
- alias: Taste 7 - losgelassen
if:
- condition: trigger
id:
- Taste 7 - losgelassen
then:
- action: notify.mobile_app_handy_paul_s22
metadata: {}
data:
message: Remotec ZRC90 - Taste 7 losgelassen
- alias: Taste 7 - gehalten
if:
- condition: trigger
id:
- Taste 7 - gehalten
then:
- action: notify.mobile_app_handy_paul_s22
metadata: {}
data:
message: Remotec ZRC90 - Taste 7 gehalten
- alias: Taste 7 - 2 x gedrückt
if:
- condition: trigger
id:
- Taste 7 - 2 x gedrückt
then:
- action: notify.mobile_app_handy_paul_s22
metadata: {}
data:
message: Remotec ZRC90 - Taste 7 - 2 x gedrückt
# -----------------------------------------------------------Taste 8
- alias: Taste 8 - gedrückt
if:
- condition: trigger
id:
- Taste 8 - gedrückt
then:
- action: notify.mobile_app_handy_paul_s22
metadata: {}
data:
message: Remotec ZRC90 - Taste 8 gedrückt
- alias: Taste 8 - losgelassen
if:
- condition: trigger
id:
- Taste 8 - losgelassen
then:
- action: notify.mobile_app_handy_paul_s22
metadata: {}
data:
message: Remotec ZRC90 - Taste 8 losgelassen
- alias: Taste 8 - gehalten
if:
- condition: trigger
id:
- Taste 8 - gehalten
then:
- action: notify.mobile_app_handy_paul_s22
metadata: {}
data:
message: Remotec ZRC90 - Taste 8 gehalten
- alias: Taste 8 - 2 x gedrückt
if:
- condition: trigger
id:
- Taste 8 - 2 x gedrückt
then:
- action: notify.mobile_app_handy_paul_s22
metadata: {}
data:
message: Remotec ZRC90 - Taste 8 - 2 x gedrückt
# -----------------------------------------------------------Mode queued
mode: queued
max: 10
# -----------------------------------------------------------Mode Single
#mode: single
# -----------------------------------------------------------Mode Parallel
#mode: parallel
#max: 10