# Ikea on/off button

**URL:** <https://community.gladysassistant.com/t/bouton-on-off-ikea/7996>\
**Category:** Configuration\
**Created:** [February 25, 2023, 6:01pm UTC](https://community.gladysassistant.com/t/bouton-on-off-ikea/7996 "2023-02-25T18:01:49Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![pascal\_sapin](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pascal_sapin/32/8958_2.png) [@pascal\_sapin](https://community.gladysassistant.com/u/pascal_sapin)\
**Post date:** [February 25, 2023, 6:01pm UTC](https://community.gladysassistant.com/t/bouton-on-off-ikea/7996/1 "2023-02-25T18:01:49Z")

</div>

Hello  
I bought an on/off button at IKEA using Zigbee (that’s all that’s available now). It’s well recognized in Zigbee2MQTT. Pairing was difficult because the manual says to hold the pairing button for 10 seconds, whereas the method I discovered by chance is to click 3 times quickly. In short, it pairs and everything, but in Gladys it’s impossible to make a simple on/off push button work — the values returned by this button: in Gladys scenes you can’t set On/Off, only numeric values, so it doesn’t work.  
My question: what solution is there to make a simple button work? Is this under development?  
Thanks

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [February 26, 2023, 8:14am UTC](https://community.gladysassistant.com/t/bouton-on-off-ikea/7996/2 "2023-02-26T08:14:42Z")

</div>

> [@Affichage des boutons textuels dans les scènes et tableau de bord (au lieu d'entier)](https://community.gladysassistant.com/t/affichage-des-boutons-textuels-dans-les-scenes-et-tableau-de-bord-au-lieu-dentier/7644?u=vonox):
>
> Je préviens : il va probablement falloir éditer le titre / mon message pour qu’il soit plus clair ^^ L’idée est de ne plus gérer les informations issues des boutons sous forme d’entiers (qui ne veulent rien dire) comme : simple clic : 1 double clic : 2 appui long : 5 Je cite @pierre-gilles pour qu’au moins lui puisse comprendre de quoi il s’agit : J’ai toujours été pour mettre un sélecteur (input select) pour ce genre de bouton plutôt que ces entier pas très user-friendly ! A vos avis / …

Quick search, yes it’s in development

---

<div class="post-metadata">

**Author:** ![bjm](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/bjm/32/1753_2.png) [@bjm](https://community.gladysassistant.com/u/bjm)\
**Post date:** [March 2, 2023, 11:42am UTC](https://community.gladysassistant.com/t/bouton-on-off-ikea/7996/3 "2023-03-02T11:42:41Z")

</div>

just an idea like that in the meantime.  
maybe use Node-RED to convert text to numbers and vice versa.  
that’s what’s done for the 433 MHz.

---

<div class="post-metadata">

**Author:** ![pascal\_sapin](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pascal_sapin/32/8958_2.png) [@pascal\_sapin](https://community.gladysassistant.com/u/pascal_sapin)\
**Post date:** [March 25, 2023, 5:24pm UTC](https://community.gladysassistant.com/t/bouton-on-off-ikea/7996/4 "2023-03-25T17:24:59Z")

</div>

hello  
with the new version my IKEA button appears correctly and also in the dashboard, with 2 push buttons, on and off, however there’s still no way to make it work — values returned by Z3M are off and on  
can we make it work by another means? without using Node-RED?  
or do we have to wait for a development?  
it is obvious that with the multitude of devices on the market that all send different values it gets complicated, we could for example in the integration create a choice like 1 = on and ask the user to match their choice.  
example in Gladys 1 corresponds to on and 0 to off — in the integration I put whatever I want: on, off, turned on, running, power, etc., and Gladys takes care of mapping that choice?  
well I’m not a programmer but it’s an idea

in any case Gladys is progressing really well and I’ve already convinced some work colleagues  
congratulations to everyone

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [March 27, 2023, 5:54am UTC](https://community.gladysassistant.com/t/bouton-on-off-ikea/7996/5 "2023-03-27T05:54:50Z")

</div>

@pascal_sapin On the dashboard, what do you see?

Can you send us the link to that button in this list: [https://www.zigbee2mqtt.io/supported-devices/](https://www.zigbee2mqtt.io/supported-devices/)?

---

<div class="post-metadata">

**Author:** ![pascal\_sapin](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pascal_sapin/32/8958_2.png) [@pascal\_sapin](https://community.gladysassistant.com/u/pascal_sapin)\
**Post date:** [March 27, 2023, 6:50am UTC](https://community.gladysassistant.com/t/bouton-on-off-ikea/7996/6 "2023-03-27T06:50:41Z")

</div>

here is the link to my button  
and the dashboard screenshot

> **[IKEA E1743 control via MQTT | Zigbee2MQTT](https://www.zigbee2mqtt.io/devices/E1743.html)**
>
> Integrate your IKEA E1743 via Zigbee2MQTT with whatever smart home infrastructure you are using without the vendor's bridge or gateway.

 ![Capture](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/0/072e0c586f930929c89addf24347942607dfed43.png)

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [March 27, 2023, 7:10am UTC](https://community.gladysassistant.com/t/bouton-on-off-ikea/7996/7 "2023-03-27T07:10:04Z")

</div>

Looking at the page you sent me, I see this:

 ![Screenshot 2023-03-27 at 15.06.13](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/9/953640389175ffa266da4e6ad3b743e5149d644e.png)

@AlexTrovato Are we affected by this message? Is Gladys handling only the «&nbsp;click&nbsp;» event or do we need the «&nbsp;action&nbsp;» event?

---

<div class="post-metadata">

**Author:** ![pascal\_sapin](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pascal_sapin/32/8958_2.png) [@pascal\_sapin](https://community.gladysassistant.com/u/pascal_sapin)\
**Post date:** [March 27, 2023, 8:34am UTC](https://community.gladysassistant.com/t/bouton-on-off-ikea/7996/8 "2023-03-27T08:34:41Z")

</div>

looking in Z2M I see "on " and «&nbsp;off&nbsp;»

 ![button off](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/1/1899abe5bb87e1d494317fc1bc4ef96c04513b78.png)  
 ![button on](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/8/84f764fa51b1c9f5e618dffdfaf77f36f8456ac4.png)  
 ![button standby](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/4/4dfdbc9af004e07b4e6b4a224f09184ce5d30c56.png)

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [March 27, 2023, 8:52am UTC](https://community.gladysassistant.com/t/bouton-on-off-ikea/7996/9 "2023-03-27T08:52:07Z")

</div>

So, what does the interface look like in Gladys? (on the dashboard, and in the scenes?)

I’d like a screenshot

---

<div class="post-metadata">

**Author:** ![pascal\_sapin](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pascal_sapin/32/8958_2.png) [@pascal\_sapin](https://community.gladysassistant.com/u/pascal_sapin)\
**Post date:** [March 27, 2023, 9:58am UTC](https://community.gladysassistant.com/t/bouton-on-off-ikea/7996/10 "2023-03-27T09:58:55Z")

</div>

Actually, I don’t understand the logic of the clicks — is it indeed a device state

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [March 27, 2023, 11:13am UTC](https://community.gladysassistant.com/t/bouton-on-off-ikea/7996/11 "2023-03-27T11:13:01Z")

</div>

Yes, that’s right

But that’s strange — we agree your device doesn’t handle all those clicks; it’s just «&nbsp;On/Off&nbsp;», right? If so, it’s misclassified by the Zigbee2mqtt integration in Gladys; it should just be in «&nbsp;On/Off&nbsp;» mode in Gladys.

---

<div class="post-metadata">

**Author:** ![pascal\_sapin](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pascal_sapin/32/8958_2.png) [@pascal\_sapin](https://community.gladysassistant.com/u/pascal_sapin)\
**Post date:** [March 27, 2023, 11:30am UTC](https://community.gladysassistant.com/t/bouton-on-off-ikea/7996/12 "2023-03-27T11:30:15Z")

</div>

The device has 2 buttons: 1 click to turn on, then 1 click to turn off

 ![tradfi](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/b/b239329c7540d7378e231589cc3d5e49ebed6545.png)

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [March 27, 2023, 4:47pm UTC](https://community.gladysassistant.com/t/bouton-on-off-ikea/7996/13 "2023-03-27T16:47:49Z")

</div>

At first glance, we’re already bound to the `action` event and not `click`.  
We can therefore disable the event without any problem.

However, I just noticed a potential risk: we’re using the z2m latest image.

```json
"Image": "koenkk/zigbee2mqtt:latest"

```

---

<div class="post-metadata">

**Author:** ![pascal\_sapin](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pascal_sapin/32/8958_2.png) [@pascal\_sapin](https://community.gladysassistant.com/u/pascal_sapin)\
**Post date:** [March 27, 2023, 4:56pm UTC](https://community.gladysassistant.com/t/bouton-on-off-ikea/7996/14 "2023-03-27T16:56:41Z")

</div>

Okay, my question is: does this button work with Gladys? Or is it for future development?

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [March 27, 2023, 5:01pm UTC](https://community.gladysassistant.com/t/bouton-on-off-ikea/7996/15 "2023-03-27T17:01:13Z")

</div>

So no, indeed, this button is currently not supported by Gladys, because the values it sends are not considered button/click values :

> Action (enum)
> 
> Triggered action (e.g. a button click). Value can be found in the published state on

---

<div class="post-metadata">

**Author:** ![pascal\_sapin](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pascal_sapin/32/8958_2.png) [@pascal\_sapin](https://community.gladysassistant.com/u/pascal_sapin)\
**Post date:** [March 27, 2023, 7:29pm UTC](https://community.gladysassistant.com/t/bouton-on-off-ikea/7996/16 "2023-03-27T19:29:16Z")

</div>

ok thanks then , I’ll put it aside for now

---

<div class="post-metadata">

**Author:** ![pascal\_sapin](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pascal_sapin/32/8958_2.png) [@pascal\_sapin](https://community.gladysassistant.com/u/pascal_sapin)\
**Post date:** [March 28, 2023, 6:54am UTC](https://community.gladysassistant.com/t/bouton-on-off-ikea/7996/17 "2023-03-28T06:54:07Z")

</div>

one last little question

I have an Aqara leak sensor, here is the screenshot, when there’s no leak it says «&nbsp;NO&nbsp;» but the background is red instead of green — shouldn’t it be the other way around?

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [March 28, 2023, 5:06pm UTC](https://community.gladysassistant.com/t/bouton-on-off-ikea/7996/18 "2023-03-28T17:06:41Z")

</div>

Lol yeah that must be me, generally NO it’s not good… we’ll look into it. If you have time to create an issue on GitHub, so we keep it in mind.

---

<div class="post-metadata">

**Author:** ![guim31](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/guim31/32/4840_2.png) [@guim31](https://community.gladysassistant.com/u/guim31)\
**Post date:** [March 28, 2023, 6:31pm UTC](https://community.gladysassistant.com/t/bouton-on-off-ikea/7996/19 "2023-03-28T18:31:25Z")

</div>

Haha it’s always the same YES / NO issue depending on what’s expected of the sensor.

Leak = yes = 😱  
Opening = yes = 😱  
Lamp = yes = 😁
