when im a few days off work i will transfer/repair many devices, so then i use this script
because iām gonna try to change the philips hue bridge to switch from the hue app to Matter protocal en hope the delays are gone then. but i will do this when iām free from work, otherwise my wife keeps yelling at me that āNothingā works in our home
maybe to make it easier if its possible?, can you also search by the app that the device falls under? so for example I can see all the idās of the devices in an overview that fall under the Hue bridge app
// Replace "appName" with the driverURI, which is homey:app: followed by the reversed url behind /app/ in the app store URL, between the / / character ;P
// for example: https://homey.app/nl-nl/app/nl.philips.hue/Philips-Hue/ should result in homey:app:nl.philips.hue
let appName = "homey:app:nl.philips.hue"
// end of user input
const myDevices = await Homey.devices.getDevices();
for (var iMyDevice in myDevices){
if (myDevices[iMyDevice].driverUri == appName) {
log(`Device:\t ${myDevices[iMyDevice].name} \nZone:\t ${myDevices[iMyDevice].zoneName}\nID:\t ${myDevices[iMyDevice].id}`)
}
};
//if (deviceName == "") {
if (appName == "") {
return false
} else {
return true;
}
In the Web Playground you can use this (but I donāt get it to work at the moment)
ā replace com.mi.flora with nl.philips.hue :
Thank you! that worked!
I couldnāt resist and just transferred my hue bridge from the hue app to matter. however, there are quite a few flow cards missing which are important to me, so think Iām going to report it to athom and switch back to the hue bridge app
@martijnpoppen I notice when repairing the flows that he does not include the normal flows. all the advanced flows he repaired but not the normal flows.
see below, the advanced flows are the same as before because the script did this and the normale flow is not repaired.
@martijnpoppen , Thank you very much for making this script! Today I was reincluding my heat pump, because of the new device classes released from Athom. This script made it super easy to repair all my flows.
Which succeeded in the advance flows, but failed in the classic flows.
I get the same error message like you get when trying to save a flow with invalid cards.
To me it looks like the script cannot succeed in replacing the Device IDās and then saves that flow, causing the same error.
I am trying to change the flows by both ID and device names; same resultā¦
It concerns the same device which I removed from Homey and re-added again.
Doing it from Developer Tools of course and softrun is set to false.
Both Chrome and Edge result in the same.
Havenāt got this device in Advanced Flows, so i donāt know the result there.
Used the latest scripts from Github and am on Homey v12.1.2 and HomeyScript app v3.6.0.
Am I doing something wrong, or can something be wrong with (the compatibility?) of the script, @martijnpoppen? Iād be glad to supply any info you might wantā¦