3 posts / 0 new
Last post
AndrewMRoberts
Configuring Hue without Phone App / Unable to update software.

HI,

 

just connected a Hue, discovered MAC addresses, assigned it an IP address via router, and restarted it.

I can talk to it via debug tool:

http://192.168.1.41/debug/clip.html

and get the config etc:

...

                "modelid": "BSB002",
                "swversion": "01028090",
                "apiversion": "1.10.0",
                "swupdate": {
                        "updatestate": 0,
                        "checkforupdate": false,
                        "devicetypes": {
                                "bridge": false,
                                "lights": [],
                                "sensors": []
                        },
                        "url": "",
                        "text": "",
                        "notify": false
                },
                "linkbutton": false,
                "portalservices": false,
                "portalconnection": "connected",

                "portalstate": {

                        "signedon": true,
                        "incoming": false,
                        "outgoing": true,
                        "communication": "disconnected"
                },
                "factorynew": true,

...

But when I try to update the software it won't let me:

POST:

{"swupdate": {"checkforupdate":true}}

to /api/.../config

and get back:

[
    {
        "error": {
            "type": 12,
            "address": "/config/swupdate/checkforupdate",
            "description": "Portal connection required"
        }
    }
]

Now the docs say you need a portal connection which I appear to have, but is the issue that the device hasn't been configured via the smartphone app etc. As I don't have or intend to use a smart phone is this an

issue. I just want to use libcurl to talk to the device using my software. But if it requires initializing using a smart phone then this is an issue. Or does the device need ports opening up

 

Any Ideas,

 

thanks

 

Andrew

 

 

Developers Support
Configuring Hue without Phone App / Unable to update software.

Andrew,

In order to be able to receive software updates via our meethue portal, you will need to set your portalservices to true. When setting the portalservices to true you will have to accept the T&C (www.meethue.com/productterms) and privacy policy (www.meethue.com/privacy). Normally this is explained in the UI of the app.

In your case, if you agree with the T&C and privacy policy you can set the portalservices to true by:
Doing a PUT on http://<ip-address.of.the.bridge>/api/<username>/config with the following body:

{
    "portalservices": true
}

After this you can do checkforupdate and will receive future updates to bridge, lamps en sensors. 

To install a software update when it's available (updatestate 2):
Do a PUT on http://<ip-address.of.the.bridge>/api/<username>/config with body:

{
    "swupdate": {
        "updatestate": 3
    }
}

Hue Developer Support - Niek

AndrewMRoberts
Thanks that worked a treat

Thanks that worked a treat

Log in or register to post comments