Hello Folks,
I was hoping to get some help here. I have a homey script that returns a large json object and attempts to set a tag for it. The return value looks perfect. And indeed the tag appears under the API endpoint when I request flowTokens via http. However, the Advanced Flow doesnt even show it as an available tag. Anyone know what I might be doing incorrectly?
homeyscript:
## other functions
...
async function main() {
const zones = await Homey.zones.getZones();
const devices = await Homey.devices.getDevices();
const sensors = await getClimateValues(zones, devices);
const thermostats = await getThermostats(zones, devices);
const result = { thermostats, sensors };
console.log("generated json result tag")
tag('climate_value_all', result);
return result;
}
return await main();
interestingly they do appear when use “run code” and return as text. then it allows me to see the tags in another step, but not when I use the “run script”