# Unwanted activations

**URL:** <https://community.gladysassistant.com/t/declenchements-intempestifs/8462>\
**Category:** Configuration\
**Created:** [November 4, 2023, 10:51am UTC](https://community.gladysassistant.com/t/declenchements-intempestifs/8462 "2023-11-04T10:51:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hizo](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/h/51bf81/32.png) [@Hizo](https://community.gladysassistant.com/u/Hizo)\
**Post date:** [November 4, 2023, 10:51am UTC](https://community.gladysassistant.com/t/declenchements-intempestifs/8462/1 "2023-11-04T10:51:14Z")

</div>

Hello,

I have door/window sensors ([Xiaomi MCCGQ01LM control via MQTT | Zigbee2MQTT](https://www.zigbee2mqtt.io/devices/MCCGQ01LM.html#xiaomi-mccgq01lm)) that change state for no reason in a regular and random way…

Any idea how to avoid this or how to have it ignored so it doesn’t trigger an alarm?

Thanks

---

<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:** [November 4, 2023, 11:35am UTC](https://community.gladysassistant.com/t/declenchements-intempestifs/8462/2 "2023-11-04T11:35:17Z")

</div>

That’s not normal, it sounds like a problem with the sensor. I have a lot of devices from that brand and I’ve never had this problem.  
Maybe during installation you placed the magnet a little too far from the sensor? Which means that at the slightest movement it can trigger? 🤔

---

<div class="post-metadata">

**Author:** ![Hizo](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/h/51bf81/32.png) [@Hizo](https://community.gladysassistant.com/u/Hizo)\
**Post date:** [November 4, 2023, 11:39am UTC](https://community.gladysassistant.com/t/declenchements-intempestifs/8462/3 "2023-11-04T11:39:54Z")

</div>

It works with the four I have.

I think they’re not placed too badly…  
and I doubt that my new windows move enough to trigger them.

oh darn ☹

---

<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:** [November 4, 2023, 11:46am UTC](https://community.gladysassistant.com/t/declenchements-intempestifs/8462/4 "2023-11-04T11:46:00Z")

</div>

Out of curiosity, can you take a photo of where the sensors are placed?

---

<div class="post-metadata">

**Author:** ![spenceur](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/spenceur/32/1961_2.png) [@spenceur](https://community.gladysassistant.com/u/spenceur)\
**Post date:** [November 4, 2023, 4:43pm UTC](https://community.gladysassistant.com/t/declenchements-intempestifs/8462/5 "2023-11-04T16:43:03Z")

</div>

I was going to ask the same because I’ve had them for 6 years and no issues.

Take a screenshot of your scenes and check the log to see if we can find the change in it

---

<div class="post-metadata">

**Author:** ![Hizo](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/h/51bf81/32.png) [@Hizo](https://community.gladysassistant.com/u/Hizo)\
**Post date:** [November 6, 2023, 8:29am UTC](https://community.gladysassistant.com/t/declenchements-intempestifs/8462/6 "2023-11-06T08:29:07Z")

</div>

I just looked at the Zigbee logs and I do indeed see true values popping up from time to time, not false then true.

Does that mean that if I check the box:

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

That should fix the problem, right?

I had set up a message in the Gladys discussion as soon as there was a state change, specifying it in there, and you can clearly see 1s everywhere.

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

So it wouldn’t be related to their installation, which in this case detects the changes correctly.

---

<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:** [November 6, 2023, 8:55am UTC](https://community.gladysassistant.com/t/declenchements-intempestifs/8462/7 "2023-11-06T08:55:18Z")

</div>

Ahhh yes indeed, that could be it. Your sensor just reports its state, but as long as that state hasn’t changed there’s no point in triggering your scene. So you need to check the box, indeed 🙂
