Hey there, thanks for the scripts! I want to control a hue light with one of the 4 buttons connected to my shelly i4.
The buttons are buttons not a switch.
Everytime i push the button the debug says
Uncaught Error: Cannot read property 'body' of undefined at let st = JSON.parse(res.body); ^ in function called from system
I just copied the script and just changed the ip, user and light id.
I also found other scripts but they all result in the same error.
When i manually use the api to get the state it works so the user also works fine (its a hue bridge pro by the way)4
Edit: The issue might be that the bridge is redirecting to ssl... if i use https in the call.. it fails due to the certificate... how to ignore that certificate? I already downloaded the newest root certificate from the developer portal and first tried it with my pc... setting the bridge id as hostname also does not work.. its still not trusted.
Hey there, thanks for the scripts! I want to control a hue light with one of the 4 buttons connected to my shelly i4.
The buttons are buttons not a switch.
Everytime i push the button the debug says
Uncaught Error: Cannot read property 'body' of undefined at let st = JSON.parse(res.body); ^ in function called from systemI just copied the script and just changed the ip, user and light id.
I also found other scripts but they all result in the same error.
When i manually use the api to get the state it works so the user also works fine (its a hue bridge pro by the way)4
Edit: The issue might be that the bridge is redirecting to ssl... if i use https in the call.. it fails due to the certificate... how to ignore that certificate? I already downloaded the newest root certificate from the developer portal and first tried it with my pc... setting the bridge id as hostname also does not work.. its still not trusted.