The button actions are mapped to cover services as follows:
Short Press ON - (on) - Open Cover
Short Press OFF - (off) - Close Cover
Long Press ON - (rightness_move_up) - Move cover UP until button is released.
Long Press OFF - (rightness_move_down) - Move cover DOWN until button is released.
Release ON or OFF after Long Press - Stop Cover
Update 28/09/2022 - Introduced condition to avoid random behavior due to zigbee2mqtt sending empty commands.
Updated: 23.06.2023 - changed behaviour of buttons to allow hold to move behaviour
Love this! Could I make a suggestion;
When you click the on/off button while it’s moving, it should stop the cover. Not on the long press. This removes the need for long clicks! I’m not sure how to do that conditionally, though.
Hey @ferryhel delighthed you find this useful.
Great suggestion there, there’s a small complication though. I use these buttons to control RF blinds, which don’t have state. While the state is maintained by home assistant, it’s still inaccurate (gets reset when you restart home assistant for example).
Having the stop function as a second click will require a more complex state machine, that you’ll need to implement using something like input_boolean.
If you have time to research this, I’m happy to take implementation suggestions and update this blueprint.
service: |
{% if is_state('cover.rolluik_kantoor', 'closing' or 'opening') %}
cover.stop_cover
{% else %}
cover.close_cover
{% endif %}
target:
entity_id: cover.rolluik_kantoor
I have this in an automation, but I’m not sure as to how I should to about turning that into a blueprint. UPDATE:
Fixed it by adding the following to my blueprint:
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
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?
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
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.