Add a heliotrope function (sun position)

The goal would be to have conditions based on the sun’s height available in the scenes.

By adding a bit of imagination, one could imagine controlling the opening of roller shutters based on the sunrise times (avoid opening the shutters in winter if no light is available). Similarly, in the summer, based on an outdoor temperature measurement and by grouping the shutters by orientation, it is possible to consider opening/closing the shutters to enjoy the light without having the greenhouse effect with direct light.

For the code, it should not be too complicated to implement as the position of the house is known by gladys. For my use, I used the PHP function « date_sun_info ».

https://github.com/GladysAssistant/Gladys/issues/850

Perfect if it’s already planned.

I’m closing this thread since it has already been implemented.