Mini-tutorial Sun-Position Nore-red Mqtt to control shutters based on the sun's position and the month

hi @guim31,

I’ve modified the flow and used the « inject enhanced » which works (the « trigger » doesn’t) and which has the advantage of being able to be configured between sunrise and sunset!
I’ll look into creating additional nodes in Node-RED to configure the MQTT output based on shutter settings (orientation) and why not the up/down order of Shutter elements in Gladys!
This should give

If azimuth is between shutter X min AZ value and shutter X max AZ value then
If altitude is between shutter X min AL value and shutter X max AL value then
If Winter Month = true then
Send MQTT Open Shutter X to 100%
If Summer Month = true then
Send MQTT Close Shutter X to 100%
Else
Send MQTT Open Shutter X to 50%

This should completely cover the gap and allow for significant energy savings

Afterwards I’ll create another mini-tutorial but to couple Gladys, Node-RED, MQTT and my X-4VR shutter modules coupled to my GCE IPX800 V5
https://www.gce-electronics.com/fr/carte-relais-ethernet-module-rail-din/1097-ipx800-v4-extension-4-volets-roulants-x-4vr-3760309690094.html

But I have a bit more work because the MQTT calls had to be modified since the mini-tutorial I had made no longer works (at least for me :! :slight_smile:)

1 Like