Scène avec un bouton (double ou simple clic)

Pour moi c’est justement à ça que sert « récupérer la dernière valeur ». Alors quelle serait la différence, pouvoir récupérer la valeur actuelle ou une autre sur un temps précis ?

C’est vrai, mais j’y pense quasiment depuis le début. Je vais la créer (une de plus) :slight_smile:

Je parlais de simplifier le flow. Actuellement tu te plaignais (à juste titre :stuck_out_tongue: ) d’avoir à faire 2 étapes pour faire un « continuer seulement si » (le « récupérer la dernière valeur » + « continuer seulement si »).

Je propose d’avoir directement dans le « continuer seulement si » la liste de tous les périphériques, sans avoir à faire de « récupérer la dernière valeur » avant

2 Likes

Ah oui, ça serait topissime !!

Ça ce serait cool ! Une simplification de plus

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.

1 Like

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!

1 Like

@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:

1 Like

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!)