Skip to content

Commit

Permalink
Added ZHA Yphix/Namron 2 Channel Switch (#123)
Browse files Browse the repository at this point in the history
* 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
pieterdevriesch authored May 14, 2023
1 parent f47c9a7 commit c2738e7
Show file tree
Hide file tree
Showing 2 changed files with 122 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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

0 comments on commit c2738e7

Please sign in to comment.