# Add a scene trigger based on the sun’s altitude and azimuth

**URL:** <https://community.gladysassistant.com/t/ajouter-un-declencheur-de-scenes-selon-l-altitude-et-l-azimut-du-soleil/7881>\
**Category:** Demande de fonctionnalités\
**Tags:** feature-core, in-progress\
**Created:** [January 24, 2023, 1:50pm UTC](https://community.gladysassistant.com/t/ajouter-un-declencheur-de-scenes-selon-l-altitude-et-l-azimut-du-soleil/7881 "2023-01-24T13:50:37Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![mutmut](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/mutmut/32/14064_2.png) [@mutmut](https://community.gladysassistant.com/u/mutmut)\
**Post date:** [June 9, 2025, 12:44pm UTC](https://community.gladysassistant.com/t/ajouter-un-declencheur-de-scenes-selon-l-altitude-et-l-azimut-du-soleil/7881/10 "2025-06-09T12:44:41Z")

</div>

Hello,  
I’m bumping this thread because I need to retrieve (preferably without an external API) the sun’s altitude and azimuth in order to better manage (partial opening/closing) my roller shutters in scenes.

Would it be possible to add them to the Gladys core knowing that we use the suncalc function (from what I’ve read on the forum)?

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/3/2/3231d5e2ed88eb4198cef5af56edd9e7214d1b2c.png)  
Thanks in advance 🙂

EDIT: I’m copying some information from Lunarok’s docs for his [heliotrope module](https://lunarok.github.io/jeedom_docs/plugins/heliotrope/) for Jeedom (which I used before Gladys):

```auto
Définitions :

    Azimut : angle absolu par rapport au nord (le nord étant à 0° et les valeurs augmentant en tournant dans le sens des aiguilles d’une montre, lorsqu’on regarde le sol depuis le ciel)
    Altitude : angle sous lequel on voit le soleil, par rapport à l’horizon qui est la référence.

Il y a deux notations possibles pour l’azimut : azimut (de 0 à 180 puis de -180 à -0) ou azimut360 (de 0 à 360). Vous utiliserez celui qui vous convient le plus.

Exemples : Le soleil se couche à l’ouest, soit 270°. Le soleil à la verticale parfaite aura une altitude de 90°, un soleil qui a disparu sous l’horizon aura une altitude négative.

```

---

_[View the full topic](https://community.gladysassistant.com/t/ajouter-un-declencheur-de-scenes-selon-l-altitude-et-l-azimut-du-soleil/7881)._
