Is there a way to store your variables on your own server. I know you can store them with better logic. That is a solution. For my purposes i want to store them on my Synology server, and also retrieve them from my server.
Why? It are a awful lot of variables i have, and they are growing and growing.
Because these variables are all from 1 script, it would be nice if this is possible.
I assume store them in the script is not possible? The variables i am talking about are requested from a api call from my Solar Edge converter and some other api calls. So i never know what the values are that day.
You could provide the variables in the script as flow tags.
Start the flow in Homey and fill each flow tag (your variables) into a MQTT topics.
If you run the MQTT broker on your Synology, you have âstoredâ the data in MQTT (send as retained message to keep the data stored).
You can retrieve the variables using the MQTT client reading the topics.
You need a way to âexportâ teh data from HomeyScript and the flow tags are the easiest way. Instead on MQTT you can use http/Webhooks. Then you will need something on your NAS to react on the Webhooks.
Absolutely more fun. But this app doesnât count the minutes the sun is up per day for a whole month. That is what i need to make a prognosis for my solarpanels for every day in a month.
But i also like to use different apiâs because sometimes they have more information as in the relevant app