// Find a zone name, argument = zone ID, text-tag returns name
//let zoneID = args[0]
let zoneID = "855113f1-f488-4223-b675-2f01270f573e"
const myZones = await Homey.zones.getZones();
for (var iMyZone in myZones){
if (myZones[iMyZone].id == zoneID) {
log(`Zone name of zone [${myZones[iMyZone].id}]: ${myZones[iMyZone].name}`);
return(myZones[iMyZone].name);
}
}
Hi, I had the same issue and I think I figured it out. The ID for the log has to also include the ID for the device, the Insights link for that measurement hinted to that. So that “let entries” line becomes this:
let entries = await Homey.insights.getLogEntries({uri: "homey:device:e9e57bbd-9181-4396-b41f-47d875de4d03", id: "homey:device:e9e57bbd-9181-4396-b41f-47d875de4d03:measure_temperature", resolution: "last24Hours"});
Seems like a weird thing, but it atleast works now.
Thanks for all the coding help