What did you change in the yaml?
I would be grateful if you could post it here. I can’t get it to work.
- choose:
- conditions:
- ‘{{ command == ‘‘on’’ }}’
sequence: !input ‘button_on_short’
- ‘{{ command == ‘‘on’’ }}’
- conditions:
- ‘{{ command == ‘‘off’’ }}’
sequence: !input ‘button_off_short’
- ‘{{ command == ‘‘off’’ }}’
- conditions:
- ‘{{ command == ‘‘move_with_on_off’’ }}’
sequence: !input ‘button_on_long’
- ‘{{ command == ‘‘move_with_on_off’’ }}’
- conditions:
- ‘{{ command == ‘‘move’’ }}’
sequence: !input ‘button_off_long’
- ‘{{ command == ‘‘move’’ }}’
- conditions:
Hi
See the section choose,I deleted the middle sections of each conditions and then restarted HA.
Here is the whole updated blueprint file.
blueprint:
name: ZHA - IKEA wireless on/off switch
description: Control anything using IKEA wireless on/off switch
domain: automation
input:
remote:
name: Remote
description: IKEA wireless on/off switch to use
selector:
device:
integration: zha
manufacturer: IKEA of Sweden
model: TRADFRI on/off switch
button_on_short:
name: On button press
description: Action to run on press of On button
default: []
selector:
action:
button_off_short:
name: Off button press
description: Action to run on press of Off button
default: []
selector:
action:
button_on_long:
name: On button hold
description: Action to run on long press of On button
default: []
selector:
action:
button_off_long:
name: Off button hold
description: Action to run on long press of Off button
default: []
selector:
action:
mode: restart
max_exceeded: silent
trigger:
- platform: event
event_type: zha_event
event_data:
device_id: !input remote
action:
- variables:
command: "{{ trigger.event.data.command }}"
cluster_id: "{{ trigger.event.data.cluster_id }}"
endpoint_id: "{{ trigger.event.data.endpoint_id }}"
args: "{{ trigger.event.data.args }}"
- choose:
- conditions:
- "{{ command == 'on' }}"
sequence: !input button_on_short
- conditions:
- "{{ command == 'off' }}"
sequence: !input button_off_short
- conditions:
- "{{ command == 'move_with_on_off' }}"
sequence: !input button_on_long
- conditions:
- "{{ command == 'move' }}"
sequence: !input button_off_long
Hey guys,
Same issue with the long press,
So how do import a blueprint without the blueprint button LOL?
EDIT
I just created a new file in a subfolder under blueprints and copy paste the YAML there.
Thanks boradwell
Im using this to control Spotify, and for some reason (no matter what template ive tried) the volume is not a constant up and down
Anyone have an idea of why that is?
Thanks - a huge help! These edits also worked with another related blueprint, ZHA - IKEA wireless on/off switch
Hello thank you for this blueprint, it looks very clean. But for some reason I cannot get one use case working. I wanted to turn light on, wait some time and turn it off.
But then I mapped those actions in this blueprint to any button press light never turn off
button_on_short:
- service: light.turn_on
target:
device_id: 36164ac7b7536bc1a0ef04f74af8e534
data:
rgb_color:
- 255
- 0
- 0
- delay:
hours: 0
minutes: 0
seconds: 20
milliseconds: 0
- service: light.turn_off
target:
device_id: 36164ac7b7536bc1a0ef04f74af8e534
data: {}
I even tried it with custom script with those 3 actions and cashed from blueprint but with no luck.
I tried to edit your blueprint but I am quite noob in it still.
I got it working with different blueprint (Controller - IKEA E1743 TRÅDFRI On/Off Switch & Dimmer | Awesome HA Blueprints)
But that have different issue (long press not working and not maintained)
If you could help me it would be wonderful.
Thanks