Not really a blueprint in the way you thought of it yet, but a start maybe also for others to join in and advice me, how to do it better:
my automation (for just one of the i4 buttons) now:
Code
- id: '6349322622791'
alias: WZ-I4-Controller
description: ''
trigger:
- platform: device
device_id: bc9344f2b62a6df210789a5a6645c2e3
domain: shelly
type: single_push
subtype: button1
- platform: device
device_id: bc9344f2b62a6df210789a5a6645c2e3
domain: shelly
type: long_push
subtype: button1
- platform: device
device_id: bc9344f2b62a6df210789a5a6645c2e3
domain: shelly
type: double_push
subtype: button1
condition: []
action:
- service: script.wzi4_{{ trigger.event.data.channel }}_{{ trigger.event.data.click_type }}
mode: single
Alles anzeigen
and then I am declaring scripts like:
Code
wzi4_1_single_push:
alias: wzi4_1_single_push
sequence:
- service: notify.mobile_app_phone
data:
message: WZ I4 single
mode: single
wzi4_1_long_push:
alias: wzi4_1_long_push
sequence:
- service: notify.mobile_app_phone
data:
message: WZ I4 long
mode: single
Alles anzeigen
As I say... just a beginning.