Did you download and run the HCS installer first?
https://homeycommunity.space/download
You can also use a little script, with this kind of flow:
Show available updates:
// Show updates for all apps installed
let myUpdatesArr = await Homey.apps.getApps().then(f => Object.values(f).reduce((r,b)=>Object.assign(r, b.updateAvailable ? {[b.name]: b.updateAvailable} : '' ), {}));
// timestamp
let SysInfo = await Homey.system.getInfo();
// Extract local time
var localTime = SysInfo.dateHuman.slice(SysInfo.dateHuman.indexOf(' ')+1);
let myAppUpdates = JSON.stringify(myUpdatesArr, null, 1);
//console.log ('Available app updates:' , myAppUpdates);
if ( myAppUpdates === '{}' ) {
return 'No apps available updates';
}
if ( myAppUpdates != '{}' ) {
return 'All apps available updates: \n' + localTime + ' \n' + myAppUpdates;
}
Somehow sometimes apps get auto-update enabled after an update, and I want to be informed about that:
Show apps with auto-update enabled:
// Get list of apps with Auto Update enabled
let myAppUpdateEnabledArr = await Homey.apps.getApps().then(f => Object.values(f).reduce((r,b)=>Object.assign(r, b.autoupdate ? {[b.name]:b.autoupdate} : '' ), {}));
let myAppUpdateEnabled = JSON.stringify(myAppUpdateEnabledArr, null, 2);
// timestamp
let SysInfo = await Homey.system.getInfo();
// Extract local time
var localTime = SysInfo.dateHuman.slice(SysInfo.dateHuman.indexOf(' ')+1);
return 'Apps with Auto Update enabled:\n' + localTime + '\n' + myAppUpdateEnabled;
