-
-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ZHA Yphix/Namron 2 Channel Switch (#123)
* Added blueprint for new switch Blueprint for zigbee 2 channel switch sold under names of Yphix and Namron, probably more. * Replacing with fixed version * Fixed file Added transparancy * Add files via upload Renamed blueprint to namron; On the Blakadder database there are numerous namron devices including this exact one, while yphix only shows 2 entries. Using the namron name will make it more likely to be found by people who use it. Made the organisational changes requested by sian-lee-sa in the pull request. * Delete zha-yphix-two-channel.png Renamed blueprint to other brand * Delete zha-yphix-two-channel.yaml Renamed blueprint to other brand * Update zha-namron-two-channel-dimmer-k4.yaml changed hold actions * Update zha-namron-two-channel-dimmer-k4.yaml
- Loading branch information
1 parent
f47c9a7
commit c2738e7
Showing
2 changed files
with
122 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+163 KB
custom_components/switch_manager/blueprints/zha-namron-two-channel-dimmer-k4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
122 changes: 122 additions & 0 deletions
122
custom_components/switch_manager/blueprints/zha-namron-two-channel-dimmer-k4.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
name: Namron 2 Channel Dimmer K4 | ||
service: ZHA | ||
event_type: zha_event | ||
identifier_key: device_id | ||
buttons: | ||
|
||
# top left ( I ) | ||
- x: 86 | ||
y: 86 | ||
width: 127 | ||
height: 214 | ||
conditions: | ||
- key: endpoint_id | ||
value: 1 | ||
actions: | ||
- title: press | ||
conditions: | ||
- key: cluster_id | ||
value: 6 | ||
- key: command | ||
value: 'on' | ||
- title: hold | ||
conditions: > | ||
{{ data.cluster_id == 8 | ||
and data.command == 'move_with_on_off' | ||
and data.params.move_mode == 0 }} | ||
- title: hold (released) | ||
conditions: | ||
- key: cluster_id | ||
value: 8 | ||
- key: command | ||
value: stop_with_on_off | ||
- key: button_last_state.0.title | ||
value: hold | ||
# top right ( O ) | ||
- x: 390 | ||
y: 86 | ||
width: 127 | ||
height: 214 | ||
conditions: | ||
- key: endpoint_id | ||
value: 1 | ||
actions: | ||
- title: press | ||
conditions: | ||
- key: cluster_id | ||
value: 6 | ||
- key: command | ||
value: 'off' | ||
- title: hold | ||
conditions: > | ||
{{ data.cluster_id == 8 | ||
and data.command == 'move_with_on_off' | ||
and data.params.move_mode == 1 }} | ||
- title: hold (released) | ||
conditions: | ||
- key: cluster_id | ||
value: 8 | ||
- key: command | ||
value: stop_with_on_off | ||
- key: button_last_state.1.title | ||
value: hold | ||
|
||
|
||
# bottom left ( I ) | ||
- x: 86 | ||
y: 300 | ||
width: 127 | ||
height: 214 | ||
conditions: | ||
- key: endpoint_id | ||
value: 2 | ||
actions: | ||
- title: press | ||
conditions: | ||
- key: cluster_id | ||
value: 6 | ||
- key: command | ||
value: 'on' | ||
- title: hold | ||
conditions: > | ||
{{ data.cluster_id == 8 | ||
and data.command == 'move_with_on_off' | ||
and data.params.move_mode == 0 }} | ||
- title: hold (released) | ||
conditions: | ||
- key: cluster_id | ||
value: 8 | ||
- key: command | ||
value: stop_with_on_off | ||
- key: button_last_state.2.title | ||
value: hold | ||
|
||
|
||
# bottom right ( O ) | ||
- x: 390 | ||
y: 300 | ||
width: 127 | ||
height: 214 | ||
conditions: | ||
- key: endpoint_id | ||
value: 2 | ||
actions: | ||
- title: press | ||
conditions: | ||
- key: cluster_id | ||
value: 6 | ||
- key: command | ||
value: 'off' | ||
- title: hold | ||
conditions: > | ||
{{ data.cluster_id == 8 | ||
and data.command == 'move_with_on_off' | ||
and data.params.move_mode == 1 }} | ||
- title: hold (released) | ||
conditions: | ||
- key: cluster_id | ||
value: 8 | ||
- key: command | ||
value: stop_with_on_off | ||
- key: button_last_state.3.title | ||
value: hold |