# \[TUTORIAL\] Technique for debugging scenes

**URL:** <https://community.gladysassistant.com/t/tuto-technique-de-debogage-des-scenes/9734>\
**Category:** Tutoriels\
**Created:** [October 4, 2025, 6:52pm UTC](https://community.gladysassistant.com/t/tuto-technique-de-debogage-des-scenes/9734 "2025-10-04T18:52:08Z")\
**Posts on this page:** 1\
**Page:** 1

<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:** [October 4, 2025, 6:52pm UTC](https://community.gladysassistant.com/t/tuto-technique-de-debogage-des-scenes/9734/1 "2025-10-04T18:52:08Z")

</div>

I have a lot of scenes.  
Some are very long and include many conditions.  
Many scenes are nested and trigger events in other scenes.

Sometimes Gladys does not behave as expected, which forces you to search for the error.  
To do this, you can use the “Send a message via Telegram” function.  
This function is handy, but when you have found and fixed your error, you must remove the “Send a message via Telegram” functions that you added to your scene, so as not to clutter your messaging.

I faced this problem: a scene triggering every 5 minutes and nested in 6 other scenes. It took me two days to set up the messages.  
Every time Gladys sent a message, my phone rang — in short, it rang continuously. I had to find a workaround.

To do this, I created a new user that I named “Pause Debugging”.

 ![Capture d'écran du 4 octobre 2025 à 20 h 05 (231 x 191)](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/a/2/a299b656eced72e774a5a10f27efb82cfd1b0687.png)

Then, I added the “Send a message via Telegram” function in each of my scenes.  
“Send a message via Telegram” to my account in order to receive the messages and be able to debug the scene.

The messages have the following structure:

**(Scene: _scene name_)** Allow identifying which scene sent the message.

**Description of the actions performed by Gladys**  
_I sent the value 1 to the thermostat to indicate the state of the virtual button “Forced stop”, then I retrieved the setpoint temperature value for the bathroom._

 ![Capture d’écran de 2025-10-04 20-19-35](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/1/7/17657eca59b6de813f374690728a49d819316cb3.png)

The last action of the scene will also have  
**END of (Scene: _scene name_)**

 ![Capture d’écran de 2025-10-04 20-20-59](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/e/0/e064a63a98420172cd0005e5655e7ec5aa1412c3.png)

Once your error(s) are corrected, simply change the recipient of the Telegram message to “Pause Debugging” so you no longer receive messages. It is then no longer necessary to delete them, because they will help better understand your scene when you consult it later, like annotations. In case of a problem, it will be enough to send the messages back to your account.

Below is an example of a message sent by the scenes.  
_NOTE: I had not yet integrated the name of the scene that triggers the message into each message._

 ![Capture d’écran du 2025-10-04 20-36-44](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/9/7/97c2c4c6c345b9cc5063c5944e7638df75de5115.png)
