blueprint for the Icasa remote (the black remote)
single push
top buttons for 0 and 1:
- these just call the four buttons for 0 and 1 respectively below
push buttons 0-1 1 to 4:
- cluster_id= 6
- endpoint_id is 1 to 4 relating to the keys (starting from the top)
- command is “on” for 1 and “off” for 0
- no arguments
S1 and S2
- a push gives four events
- cluster_id =5
- endpoint_id = 1 to 4 relating to keys
- command is “recall”
- “args” are [0, 1] for S1 and [0, 2] for S2
long push normal keys
- two events
- cluster_id = 8
- endpoint_id = 1 to 4
- command: first event “move_with_on_of” and second: “stop”
- first event: args is always [0, 50], second event no args
long push S1 and S2
- four events
- cluster_id is 5
- endpoint_id = 1 to 4
- command is “store”
- args is [0, 1] for S1 and [0, 2] for S2
double click no different commands
the blueprint below gives automation to the middle four buttons. The top 0 and 1 also work (since these are just 4 events for the other buttons).
S1 and S2 are not yet implemented in the blueprint but should be easy to add. As are the long pushes. The information to distinguish these is in the text above.
If someone can explain to me how to upload the blueprint file here?
blueprint:
name: icasa remote 2
description: icasa remote 2
domain: automation
input:
icasa_remote:
name: icasa remote
description: The Remotec ZRC-90 to interact with.
selector:
device:
integration: zha
manufacturer: icasa
model: ICZB-RM11S
button_1_0:
name: single press 0 on 1
description: Action to run on button press once.
default: []
selector:
action: {}
button_1_1:
name: single press 1 on 1
description: Action to run on button press once.
default: []
selector:
action: {}
button_2_0:
name: single press 0 on 2
description: Action to run on button press once.
default: []
selector:
action: {}
button_2_1:
name: single press 1 on 2
description: Action to run on button press once.
default: []
selector:
action: {}
button_3_0:
name: single press 0 on 3
description: Action to run on button press once.
default: []
selector:
action: {}
button_3_1:
name: single press 1 on 3
description: Action to run on button press once.
default: []
selector:
action: {}
button_4_0:
name: single press 0 on 4
description: Action to run on button press once.
default: []
selector:
action: {}
button_4_1:
name: single press 1 on 4
description: Action to run on button press once.
default: []
selector:
action: {}
mode: queued
max_exceeded: silent
trigger:
- platform: event
event_type: zha_event
event_data:
device_id: !input icasa_remote
action:
- variables:
endpoint_id: "{{ trigger.event.data.endpoint_id }}"
command: "{{ trigger.event.data.command }}"
- choose:
- conditions: "{{ endpoint_id == 1 and command == 'off' }}"
sequence: !input button_1_0
- conditions: "{{ endpoint_id == 1 and command == 'on' }}"
sequence: !input button_1_1
- conditions: "{{ endpoint_id == 2 and command == 'off' }}"
sequence: !input button_2_0
- conditions: "{{ endpoint_id == 2 and command == 'on' }}"
sequence: !input button_2_1
- conditions: "{{ endpoint_id == 3 and command == 'off' }}"
sequence: !input button_3_0
- conditions: "{{ endpoint_id == 3 and command == 'on' }}"
sequence: !input button_3_1
- conditions: "{{ endpoint_id == 4 and command == 'off' }}"
sequence: !input button_4_0
- conditions: "{{ endpoint_id == 4 and command == 'on' }}"
sequence: !input button_4_1