Skip to content

Shelly i4 Gen3 Hue Script throwing error #23

Description

@drschnalli

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions