I do understand and respect your standpoint on apps that require full access to Homey to do what they do. To add to that, the code of Heimdall is open source and I invite everybody with second thoughts to review the code at GitHub - daneedk/com.uc.heimdall: Heimdall for Homey
2 Likes
Hello everyone, I wrote a script for get zonename by device.zone.
Script:
//get zone name
async function getZoneName(zoneId) {
var result = “unknown”;
let allZones = await Homey.zones.getZones();for (let zone in allZones) { if ( allZones[zone].id == zoneId ) { result = allZones[zone].name; } }; return result; }
And you can call it:
return getZoneName(device.zone);
or part of string
… + await getZoneName(device.zone) + …
Now where have I seen that before…
3 Likes
Thank you for the nice script. Could you also write it without ‘(undefined)’ behind each sensor? This way, I can have a notification triggered through a speaker
1 Like