# Help understanding the scene

**URL:** <https://community.gladysassistant.com/t/aide-pour-comprehension-scene/7946>\
**Category:** Scènes\
**Created:** [February 7, 2023, 9:10pm UTC](https://community.gladysassistant.com/t/aide-pour-comprehension-scene/7946 "2023-02-07T21:10:14Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![gaelbillon](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/gaelbillon/32/12185_2.png) [@gaelbillon](https://community.gladysassistant.com/u/gaelbillon)\
**Post date:** [February 7, 2023, 9:10pm UTC](https://community.gladysassistant.com/t/aide-pour-comprehension-scene/7946/1 "2023-02-07T21:10:14Z")

</div>

Hello everyone,  
I have several identical scenes for managing my heating; see below 2 that turn the heating on (T° Eco or T° confort) and 2 that turn it off. The T° Eco or confort information comes from a fake device, which is itself managed by 2 scenes that change its state depending on days and times.  
I’m asking for your help to understand why each time the scene runs I receive the end-of-scene message twice.

Thanks everyone

 ![Screenshot 2023-02-07 at 21-58-14 Gladys Assistant](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/b/b21a2ef27b85ca56797aa092840dfb2bde165bc9.png)  
 ![Screenshot 2023-02-07 at 22-09-22 Gladys Assistant](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/7/7785809e2fa39732e35e5b77d8e0270ae39938c3.png)

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [February 7, 2023, 9:38pm UTC](https://community.gladysassistant.com/t/aide-pour-comprehension-scene/7946/2 "2023-02-07T21:38:07Z")

</div>

In your other scenes, are the messages different?

You can try checking the box to avoid running the scene each time the value is sent

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

---

<div class="post-metadata">

**Author:** ![gaelbillon](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/gaelbillon/32/12185_2.png) [@gaelbillon](https://community.gladysassistant.com/u/gaelbillon)\
**Post date:** [February 7, 2023, 9:47pm UTC](https://community.gladysassistant.com/t/aide-pour-comprehension-scene/7946/3 "2023-02-07T21:47:42Z")

</div>

@_Will_71 reading your answer I just understood, it was obvious but I didn’t see it — what an idiot 😂 I am!!

In my Comfort temperature turn-on scene I check the heating mode first, but not in the Eco temperature turn-on scene, so both run, QED.

Also, I didn’t tick the box on purpose because in some situations it didn’t trigger or stop the heating.

Anyway, thanks for your help.

---

<div class="post-metadata">

**Author:** ![gaelbillon](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/gaelbillon/32/12185_2.png) [@gaelbillon](https://community.gladysassistant.com/u/gaelbillon)\
**Post date:** [February 7, 2023, 10:04pm UTC](https://community.gladysassistant.com/t/aide-pour-comprehension-scene/7946/4 "2023-02-07T22:04:16Z")

</div>

In fact I’m even more stupid than that.  
I changed my scenes and it’s still the same problem.  
My messages are different depending on the scenes to clearly identify which one is running.  
I’ll continue to investigate.

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [February 7, 2023, 10:09pm UTC](https://community.gladysassistant.com/t/aide-pour-comprehension-scene/7946/5 "2023-02-07T22:09:46Z")

</div>

Can you put your other scenes here?

---

<div class="post-metadata">

**Author:** ![gaelbillon](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/gaelbillon/32/12185_2.png) [@gaelbillon](https://community.gladysassistant.com/u/gaelbillon)\
**Post date:** [February 7, 2023, 10:15pm UTC](https://community.gladysassistant.com/t/aide-pour-comprehension-scene/7946/6 "2023-02-07T22:15:44Z")

</div>

Here are:

 ![Screenshot 2023-02-07 at 23-11-53 Gladys Assistant](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/9/9cb33e2a159061781fd81f4436ddf7d4eb594c8d.png)  
 ![Screenshot 2023-02-07 at 23-11-34 Gladys Assistant](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/d/d58202c316b7e73c427b9d10c4680d521f203fb4.png)  
 ![Screenshot 2023-02-07 at 23-11-13 Gladys Assistant](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/1/1a79c580bed0f385a6a31d71bf2150e3d5eeaca4.png)

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [February 8, 2023, 10:49am UTC](https://community.gladysassistant.com/t/aide-pour-comprehension-scene/7946/7 "2023-02-08T10:49:39Z")

</div>

Ok, I’ll take a look tonight and try to reproduce your scenes.

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [February 8, 2023, 12:00pm UTC](https://community.gladysassistant.com/t/aide-pour-comprehension-scene/7946/8 "2023-02-08T12:00:06Z")

</div>

Out of habit, I’d have put all the «&nbsp;retrieve the last state&nbsp;» in the same block, and below the «&nbsp;continue only if&nbsp;» in the same block as well.

---

<div class="post-metadata">

**Author:** ![gaelbillon](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/gaelbillon/32/12185_2.png) [@gaelbillon](https://community.gladysassistant.com/u/gaelbillon)\
**Post date:** [February 8, 2023, 6:20pm UTC](https://community.gladysassistant.com/t/aide-pour-comprehension-scene/7946/9 "2023-02-08T18:20:39Z")

</div>

Hello,

> [@Aide pour compréhension scène](https://community.gladysassistant.com/t/aide-pour-comprehension-scene/7946/8?u=gaelbillon):
>
> Machinalement j’aurais mis tous les "récupérer le dernier état " dans le même bloc, et en dessous «&nbsp;continuer seulement si&nbsp;» dans le même bloc aussi.

Yes indeed, I had done something like that at the beginning but, not having the expected behavior, I preferred to separate them to be sure of the sequence.  
But I could try again because my problems probably didn’t come from there.  
However, I don’t

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [February 8, 2023, 9:37pm UTC](https://community.gladysassistant.com/t/aide-pour-comprehension-scene/7946/10 "2023-02-08T21:37:29Z")

</div>

@Tlse-vins, @gaelbillon is right: putting all the «&nbsp;continue only if&nbsp;» in the same block won’t work because it’s an «&nbsp;and&nbsp;» he wants to do, and in the block you can only do "or"s.

@gaelbillon I reproduced your 4 scenes here with fake devices but I do get the expected behavior with the messages being sent only once.

---

<div class="post-metadata">

**Author:** ![gaelbillon](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/gaelbillon/32/12185_2.png) [@gaelbillon](https://community.gladysassistant.com/u/gaelbillon)\
**Post date:** [February 9, 2023, 9:07pm UTC](https://community.gladysassistant.com/t/aide-pour-comprehension-scene/7946/11 "2023-02-09T21:07:48Z")

</div>

@_Will_71 thank you for taking the time to test.  
Is it possible to see in Gladys or Z2M logs what is happening?  
Is it the thermostat that would send the value twice in a row?

---

<div class="post-metadata">

**Author:** ![gaelbillon](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/gaelbillon/32/12185_2.png) [@gaelbillon](https://community.gladysassistant.com/u/gaelbillon)\
**Post date:** [February 13, 2023, 10:42am UTC](https://community.gladysassistant.com/t/aide-pour-comprehension-scene/7946/12 "2023-02-13T10:42:51Z")

</div>

Hello, I haven’t had time to deal with my issue, but since yesterday I’ve been receiving 4 messages 🤔

 ![Screenshot_20230213-113826_Telegram_FOSS](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/d/da6a85a0475a921ca0c12554b9eb53d0c284935d.jpeg)

However, I didn’t do anything special, just went to check the zigbee2mqtt page on port 8080.
