Scene with a button (double or single click)

For me, that’s exactly what « retrieve the last value » is for. So what would be the difference, being able to retrieve the current value or another one at a specific time?

It’s true, but I’ve been thinking about it almost since the beginning. I’ll create it (one more) :slight_smile:

I was talking about simplifying the flow. Currently, you were complaining (rightfully so :p) about having to perform 2 steps to do a « continue only if » (the « retrieve the last value » + « continue only if »).

I suggest having directly in the « continue only if » the list of all devices, without having to do a « retrieve the last value » beforehand

Oh yes, that would be awesome!!

That would be cool! Another simplification

Hello,
I recently purchased an Aqara double button.
I can’t get anything to work in scenes with 1, 2 or 5… because I think you need to specify left or right? But how? Or is that not yet supported?

Can you tell us which model? I have several models from Aqara, maybe I can guide you?

@guim31 : thank you

Mine is this one :
Wireless Remote Switch H1 (Double Rocker)
Model : WRS R02

According to the Zigbee2mqtt documentation, here’s what the different buttons report:

Action (enum)

Triggered action (e.g. a button click). Value can be found in the published state on the action property. It’s not possible to read (/get) or write (/set) this value. The possible values are: single_left, single_right, single_both, double_left, double_right, double_both, triple_left, triple_right, triple_both, hold_left, hold_right, hold_both.

So there’s no point in looking for 1, 2, 5 or other numbers!

@b3n.0 Your sensor is probably not yet supported. Submit a feature request and in the meantime you can use Node-RED to manage your button.

In Node-RED you can map the info that @guim31 gave you to numeric values so you can process them in Gladys scenes.

Thank you for your replies.

I checked zigbee2mqtt to retrieve the values above, but I can’t save a scene using them otherwise I get this:
image

So I suppose I should follow:

But now I need to get to grips with Node-RED, which I don’t know at all…

I’ll take a look!

@pierre-gilles wouldn’t that be along the same lines as your message here : Bouton Sonoff SNZB-01 - #72 par pierre-gilles ??

Yes indeed! You need to make a feature request :slight_smile:

I finally gave up on that Aqara double button…

In favor of a pack of 4 Sonoff (less pretty but they work perfectly).

I created the feature request about this (but I’m not sure if I was very clear!)