also are you getting the actual state from z2m? under action in z2m I am having null everytime even when any buttons are pressed. Do you guys experience the same?
Hi! I modified it to work with DeConz, but i changed it in the blueprint itself. I’m on mobile with no access to a pc for a bit, but you can edit it in the bp by changing the sequence and the variables
Right ok I see.
Also do you get the null under action when you press any buttons?
Yes, that occurred here. In general, I found it’s better to use an alternative under variables:
command: '{{ trigger.to_state.attributes.action }}'
Would love to see the opening post updated with these adjustment, in order to prevent errors and maintainability of the topic
Can someone add the function to set the position Number of the blind?
After every battery change the max out point is erased! That sucks…
I permitted myself to add a feature to control blind opened level
blueprint:
name: Ikea on/off button (E1743) cover control
description: Control cover with IKEA Tradfri ON/OFF button (E1743).
domain: automation
input:
button:
name: button
description: Ikea ON/OFF Button (E1743)
selector:
entity:
domain:
- sensor
multiple: false
cover:
name: Cover
description: Controlled Cover
selector:
target:
entity:
- domain:
- cover
source_url: https://community.home-assistant.io/t/ikea-on-off-button-e1743-to-control-covers-blinds/286307
mode: restart
max_exceeded: silent
trigger:
- platform: state
entity_id: !input button
attribute: action
variables:
command: '{{ trigger.to_state.state }}'
condition:
- condition: template
value_template: '{{ command != ''''}}'
action:
- choose:
- conditions:
- '{{ command == ''off'' }}'
sequence:
- service: cover.close_cover
target: !input cover
data: {}
- conditions:
- '{{ command == ''on'' }}'
sequence:
- service: cover.open_cover
data: {}
target: !input cover
- conditions:
- '{{ command == ''brightness_move_down'' }}'
sequence:
- service: cover.close_cover
data: {}
target: !input cover
- conditions:
- '{{ command == ''brightness_move_up'' }}'
sequence:
- service: cover.open_cover
data: {}
target: !input cover
- conditions:
- '{{ command == ''brightness_stop'' }}'
sequence:
- service: cover.stop_cover
data: {}
target: !input cover
My pleasure.
I was so happy to find this blueprint, don’t hesitate to share the modification for everybody
I just tried to install/use this blueprint but it does not work, it literally does nothing.
I do have an IKEA E1743 connected via z2m and cover with ShellyPlus2PM, I set up the right entity but the automation based on this blueprint does nothing, I do use the blueprint for the same IKEA button to control lights (Zigbee2mqtt - Ikea on/off switch with dimming) and that works perfectly so I am clueless what to check here to troubleshoot the problem, can someone help?
Can you look at the automation trace?
Settings → Automations → “Automation Name” → Traces (Upper right corner)
Check the “Trace Timeline” to see what’s happening there.
Maybe I was not cleat but what I wrote “it does nothing” I meant literally nothing in the traces despite I press the IKEA button associated to the blueprint, when I associate the very same IKEA to the blueprint that dims some lights using the relative blueprint, it works like a charm… what shoudl I look at? it seems to me the bleprint does not work not listening to the events from the button
any clue for me?
this is how blueprint is setup; when I check the IKEA sensors it shows values when I press either on or off button but animation via blueprint never triggers
id: '1697708177169'
alias: Controllo Serranda Gianluca
description: ''
use_blueprint:
path: cliviu74/ikea-on-off-button-e1743-to-control-covers-blinds.yaml
input:
button: sensor.pulsante_serranda_gianluca_action
cover:
device_id: d76858a207145f6604099a9a026c75ce
Hmm, your automation looks OK to me.
If the automation is not triggering at all it means the event from the button is not registered.
Can you check the state of sensor.pulsante_serranda_gianluca_action when you push it?
(Logbook → Entity Id: sensor.pulsante_serranda_gianluca_action) and press the ikea’s buttons a few times. You should see new events showing in the timeline there. If there’s no events, look into your zigbee to homeassistant interactions.
If the button works correctly, you can try removing the automation, removing the blueprint and re-add bluprint and automation.
@papperone can you share what blueprint are you using for lights, the one that you mentioned it works for you? I can take a look if there’s something obvious between the 2.
This blueprint does a “debounce”, which means it eliminates empty events. Without this debounce, you have issues when holding buttons. This doesn’t explain automation not kicking in though, as you should be able to see events in “Trace” regardless of debounce.
ok I use this for the lights → Z2M Ikea Tradfri Dimmer Switch on off and dimming and it works with all E1734 buttons I have
teh Z2M entity of the buttons works and all shoot events when pressed so this is not the issue (as a test I swapped some buttons between the automations and this one for the covers never triggers)
anyhow below the screen that proofs buttons works and reacts:
I will try your suggestion to remove automation and blueprint and try to start from scratch; will let you know later
no progress here, I feel very dumb but it’s first time I’m lost with HA automation
Hi all,
i have also an issue with the automation. im unfortanely not an developer - but i think the last part dont work
everything works fine, apart the stop.
I need to press button long to stop the cover.
long klick (hold) the cover close - when i release the button it stop
- same for opening.
but when i do following
1 klick - closing
1 klick - opening
- wenn i know klick once it should stop.
i need to hold/ press long buton to stop it.
would be very happy if some of your have a look.
Thanks
@cliviu74 Thank you for your blueprint.
Unfortunately, button filter does not work correctly, as it not fully compatible/backward-compatible with z2m 1.4/2.0x. You need to update it a bit:
device:
filter:
- integration: mqtt
manufacturer: IKEA
model: TRADFRI on/off switch
#**For backwards compatability with z2m 1.x. model_id is added to end of model rather than a seperate attribute in z2m 2.x
- integration: mqtt
manufacturer: IKEA
model: TRADFRI on/off switch (E1743)
I have a similar issue. I’ve updated a blueprint with a cover running sensor. Basically workflow now is:
- short press start/stop
- check if cover is running
- if not running - open/close
- if running - stop cover
If you want to have a look/use - homeassistant/blueprints/automation/Cover/ikea-on-off-button-e1743-to-control-covers-blinds.yaml at 9e7c1d5ed3820f165f79ad0651db8e22721c7907 · timota/homeassistant · GitHub