Persistance on homey instead of 8266

I’m running Homeyduino on a Wemos d1 Mini. It controls 4 relays to drive two sun blinds up or down depending on DIY sensor based on the short circuit current of a small solar panel.

Now i’m in need of some persistance. Mainly a sensor trigger limit and two settings. Instead of flashing this to the Wemos everytime the user likes to change settings. I’m thinking i will put a trigger in program setup that starts a flow and the flow downloads the value to Homey if and when it is restarted. But, i can’t for the life of me seem to get the trigger to do anything. It shows up among triggers in Homey. But it never triggers the flow.

This is the code i’m using. Is there any thing else needed?