Hue Bridge not found

61 views
Skip to first unread message

kalex lexka

unread,
Sep 11, 2015, 6:04:04 AM9/11/15
to openhab2
I am trying to do an example of Philip Hue but the connection to the Bridge is not execute.
I receive "null" with this methode: getBridge().getHandler();
I think that the Problem come from thing-types.xml oder my definition of hue.thing but i am 
not sure. someone can help me?
that is my 

------------------------------------------------------------------------------------------------------------------------
<!-- Sample Thing Type -->
<thing-type id="sample">
<supported-bridge-type-refs>
<bridge-type-ref id="bridge" />
</supported-bridge-type-refs>
<label>Hue Binding Thing</label>
<description>Binding: Example of thing to link openHAB and Hue </description>

<channel-groups>
<channel-group id="lightness" typeId="lightness" />
</channel-groups>
</thing-type>

<!-- Sample Channel Type -->
<!-- Color Channel -->
    <channel-type id="color">
        <item-type>Color</item-type>
        <label>Color</label>
        <description>The color channel allows to control the color of a light.
            It is also possible to dim values and switch the light on and off.
        </description>
        <tags>
            <tag>Hue</tag>
            <tag>ColorLamp</tag>
        </tags>

        <config-description>
            <parameter name="lastDimValue" type="boolean" />
        </config-description>
    </channel-type>
<!-- Brightness Channel -->
<channel-type id="brightness">
<item-type>Dimmer</item-type>
<label>Brightness</label>
<description>The brightness channel allows to control the brightness of a light.
            It is also possible to switch the light on and off.
        </description>
<tags>
<tag>Hue</tag>
<tag>DimmableLamp</tag>
</tags>

<config-description>
<parameter name="lastDimValue" type="boolean" />
</config-description>
</channel-type>

<!-- Alarm System Channel -->
<channel-group-type id="lightness" advanced="false">
<label>Alarm System</label>
<description>The alarm system.</description>
<channels>
   <channel id="colorId" typeId="color" />
<channel id="brightnessId" typeId="brightness" />
</channels>
</channel-group-type>
</thing:thing-descriptions>
--------------------------------------------------------------------------------------------------------------------

hue.things

-------------------------------------------------------------------------------------------------------------------
Bridge hue:bridge:1 [ ipAddress="#.#.#.#" ]
-------------------------------------------------------------------------------------------------------------------


Kai Kreuzer

unread,
Sep 14, 2015, 9:46:32 AM9/14/15
to open...@googlegroups.com
I’m afraid I am lacking some context here. What are you trying to do? Do changes on the Hue binding code? Or just using the existing one?

In both cases you might be better off to ask your question at the Eclipse forum, since the Hue code is part of Eclipse SmartHome: https://www.eclipse.org/forums/index.php/f/271/

Best regards,
Kai

--
You received this message because you are subscribed to the Google Groups "openhab2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab2+u...@googlegroups.com.
To post to this group, send email to open...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openhab2/31014396-e802-46c7-a794-b922604148c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages