Hi All.
Who can help me?
Problem:
When I push the long press button, the action is not working.
What I did before,…
I have a EcoDIM 10014 and I have downloaded a IKEA blueprint.
I edited the device settings to the ecodim. So far so good the all the buttons are working except the long pressing OFF button. (pressing the long ON button works)
What I have tried,…
I have used the lissener in home assistant to see what the event is doing. I see that the difference between the short ON and OFF is the command: “off” and “on”.
The difference between the long ON and OFF is not the command (both are move_with_on_off). But there is a difference in the args. So I have tried to add the args, but no results.
Question:
What is wrong in my blueprint?
Here is the blueprint:
blueprint:
name: ZHA - Ikea Test Ecodim
description: Nieuwe controle voor de ecodim
'
domain: automation
input:
remote1:
name: Sandje
description: Test IKEA Ecodim Sandje
default:
selector:
device:
integration: zha
manufacturer: EcoDim
model: ED-10014
# multiple: false
lights:
name: Lights
description: Lights to control when using default light actions
default:
entity_id: none
selector:
target:
entity:
domain: light
on_short_custom:
name: Use custom action for short on-button press
description: 'Specify custom actions to run using a short press of the on button.
If not specified, the controlled light will be turned on.'
default: false
selector:
boolean: {}
button_on_short:
name: On button press
description: Action to run on press of On button
default: []
selector:
action: {}
off_short_custom:
name: Use custom action for short off-button press
description: 'Specify custom actions to run using a short press of the off button.
If not specified, the controlled light will be turned off.'
default: false
selector:
boolean: {}
button_off_short:
name: Off button press
description: Action to run on press of Off button
default: []
selector:
action: {}
on_long_custom:
name: Use custom action for long on-button hold
description: 'Specify custom actions to run using a long press of the on button.
If not specified, the controlled light will be increased in brightness.'
default: false
selector:
boolean: {}
button_on_long:
name: On button hold
description: Action to run on long press of On button
default: []
selector:
action: {}
off_long_custom:
name: Use custom action for long off-button hold
description: 'Specify custom actions to run using a long press of the off button.
If not specified, the controlled light will be decreased in brightness.'
default: false
selector:
boolean: {}
button_off_long:
name: Off button hold
description: Action to run on long press of Off button
default: []
selector:
action: {}
source_url: https://community.home-assistant.io/t/zha-ikea-tradfri-wireless-dimmer-with-options-for-custom-actions/294350
trigger:
- platform: event
event_type: zha_event
event_data:
device_id: !input 'remote1'
mode: restart
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 }}'
on_short_custom: !input 'on_short_custom'
off_short_custom: !input 'off_short_custom'
on_long_custom: !input 'on_long_custom'
off_long_custom: !input 'off_long_custom'
lights: !input 'lights'
- choose:
- conditions:
- '{{ command == ''on'' }}'
- '{{ cluster_id == 6 }}'
- '{{ endpoint_id == 1 }}'
sequence:
- choose:
- conditions: '{{ on_short_custom }}'
sequence: !input 'button_on_short'
- conditions: '{{ not on_short_custom }}'
sequence:
- service: light.turn_on
target: !input 'lights'
data:
transition: 1
- conditions:
- '{{ command == ''off'' }}'
- '{{ cluster_id == 6 }}'
- '{{ endpoint_id == 1 }}'
sequence:
- choose:
- conditions: '{{ off_short_custom }}'
sequence: !input 'button_off_short'
- conditions: '{{ not off_short_custom }}'
sequence:
- service: light.turn_off
target: !input 'lights'
data:
transition: 1
- conditions:
- '{{ command == ''move_with_on_off'' }}'
- '{{ cluster_id == 8 }}'
- '{{ endpoint_id == 1 }}'
- '{{ args == [ 0, 50] }}'
sequence:
- choose:
- conditions: '{{ on_long_custom }}'
sequence: !input 'button_on_long'
- conditions: '{{ not on_long_custom }}'
sequence:
repeat:
while:
- condition: template
value_template: '{{ repeat.index < 10 }}'
sequence:
- service: light.turn_on
target: !input 'lights'
data:
transition: 1
brightness_step_pct: 10
- delay: 1
- conditions:
- '{{ command == ''move_with_on_off'' }}'
- '{{ cluster_id == 8 }}'
- '{{ endpoint_id == 1 }}'
- '{{ args == [ 1, 50] }}'
sequence:
- choose:
- conditions: '{{ off_long_custom }}'
sequence: !input 'button_off_long'
- conditions: '{{ not off_long_custom }}'
sequence:
repeat:
while:
- condition: template
value_template: '{{ repeat.index < 10 }}'
sequence:
- service: light.turn_on
target: !input 'lights'
data:
transition: 1
brightness_step_pct: -10
- delay: 1
This is the listener long press OFF:
event_type: zha_event
data:
device_ieee: 90:35:ea:ff:fe:12:3e:65
unique_id: 90:35:ea:ff:fe:12:3e:65:1:0x0008
device_id: ac3c88a814cc279512d330d43162e844
endpoint_id: 1
cluster_id: 8
command: move_with_on_off
args:
- 1
- 50
params:
move_mode: 1
rate: 50
origin: LOCAL
time_fired: "2023-01-10T09:52:05.803004+00:00"
context:
id: 01GPDHG65B0B0FB3BKQP13SDNV
parent_id: null
user_id: null
This is the listener long press ON:
event_type: zha_event
data:
device_ieee: 90:35:ea:ff:fe:12:3e:65
unique_id: 90:35:ea:ff:fe:12:3e:65:1:0x0008
device_id: ac3c88a814cc279512d330d43162e844
endpoint_id: 1
cluster_id: 8
command: move_with_on_off
args:
- 0
- 50
params:
move_mode: 0
rate: 50
origin: LOCAL
time_fired: "2023-01-10T09:52:02.301336+00:00"
context:
id: 01GPDHG2QXQ5P4B4MBMJKYVRMR
parent_id: null
user_id: null
Hopefully someone can telling me what i’m doing wrong,…