mirror of
https://github.com/nikdoof/homeassistant-blueprints.git
synced 2025-12-22 13:59:24 +00:00
Correct on/off switch naming
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
blueprint:
|
||||
name: Zigbee2MQTT - IKEA Tradfri On/Off Switch (E1743)
|
||||
description:
|
||||
description:
|
||||
This blueprint is for the IKEA 2 button Trafri On/Off Switch (E1524/E1810) being controlled via Zigbee2MQTT.
|
||||
Hold buttons will be repeated every second, so are useful for brightness adjustments or other adjustable
|
||||
values.
|
||||
@@ -14,24 +14,24 @@ blueprint:
|
||||
integration: mqtt
|
||||
domain: sensor
|
||||
on:
|
||||
name: On
|
||||
name: "On"
|
||||
description: Action to run when ON button SHORT press
|
||||
default: []
|
||||
selector:
|
||||
action: {}
|
||||
off:
|
||||
name: Off
|
||||
name: "Off"
|
||||
description: Action to run when OFF button SHORT pressed
|
||||
default: []
|
||||
selector:
|
||||
action: {}
|
||||
on_hold:
|
||||
brightness_move_up:
|
||||
name: On Hold
|
||||
description: Action to run when ON button LONG pressed (brightness up)
|
||||
default: []
|
||||
selector:
|
||||
action: {}
|
||||
off_hold:
|
||||
brightness_move_down:
|
||||
name: Off Hold
|
||||
description: Action to run when OFF button LONG pressed (brightness down)
|
||||
default: []
|
||||
@@ -41,22 +41,22 @@ blueprint:
|
||||
mode: restart
|
||||
max_exceeded: silent
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: !input 'remote'
|
||||
attribute: action
|
||||
- platform: state
|
||||
entity_id: !input "remote"
|
||||
attribute: action
|
||||
action:
|
||||
- variables:
|
||||
command: '{{ trigger.to_state.state }}'
|
||||
- choose:
|
||||
- conditions:
|
||||
- '{{ command == ''on'' }}'
|
||||
sequence: !input 'on_button_short'
|
||||
- conditions:
|
||||
- '{{ command == ''off'' }}'
|
||||
sequence: !input 'off_button_short'
|
||||
- conditions:
|
||||
- '{{ command == ''brightness_move_up'' }}'
|
||||
sequence: !input 'on_hold'
|
||||
- conditions:
|
||||
- '{{ command == ''brightness_move_down'' }}'
|
||||
sequence: !input 'off_hold'
|
||||
- variables:
|
||||
command: "{{ trigger.to_state.state }}"
|
||||
- choose:
|
||||
- conditions:
|
||||
- "{{ command == 'on' }}"
|
||||
sequence: !input "on"
|
||||
- conditions:
|
||||
- "{{ command == 'off' }}"
|
||||
sequence: !input "off"
|
||||
- conditions:
|
||||
- "{{ command == 'brightness_move_up' }}"
|
||||
sequence: !input "brightness_move_up"
|
||||
- conditions:
|
||||
- "{{ command == 'brightness_move_down' }}"
|
||||
sequence: !input "brightness_move_down"
|
||||
|
||||
Reference in New Issue
Block a user