[BETA] Hue Accessories and rooms using Hue Bridge (TAP, Motion Sensor, Dimmer Switch) [DEPRECATED]

Thanks a lot, this is the only way to use philips tap with smartthings.

But, unfortunately, Hue Sensor (Connect) smart app doesn’t recognize hue bridge.

I tried other kinds of smart apps which connects to hue bridge, and they works well.

I really hope this useful smart app to properly work.

(firmware of smartthings hub is up-to-date.)

Hi. The app is depending on the fact that the bridge is already connected
via either the standard Super Lan Connect which I have myself. Or via an
app that is exposing the capability bridge and has the api connection as an
attribute. The last method I have not tested, it should work for app like
Hue B Smart.

Martin

Oh, now I understand. Now working well. Thanks!

To clarify, this code doesn’t work without the Hue Bridge, is that correct? Am I right in believing that getting the Hue Dimmer Switch to work directly in SmartThings (Without a Hue Hub) isn’t a possibility? Are there any other options for zigbee, or Z-way remotes that do work?

It indeed needs the bridge. The code uses the Philips hue api to poll the
bridge.

met vriendelijke groeten,

Martin

There are a number of devices similar to the Hue dimmer switch which can work directly with the SmartThings hub. It just depends on whether you were using a US hub or a UK hub and whether you need dimming or just on/off. But you should have several choices in any case.

See the following thread (this is a clickable link). It includes both battery operated and mains powered devices, and both wallmount and hand held devices, so read the descriptions carefully to find what you want.

Hoi Martin,

Ive installed the app and handlers.The smartapp found my Hue B Smart bridge and username. But i keep getting the message “No sensors found yet, wait a minute or so…”. Did i miss a step somewhere? I use motion sensors and switches

Hi John,

What happens if you press done in the app and go back in? Are you seeing
errors in the log?

Hi Martin,

Im new here so maybe im doing things wrong. Anyway im going to my smartapps, click on the log link at the left bottom, but theres no errors there. I do see some changes in the log when for example i searc for sensor instead of switch:

13d12cdc-6ab1-4bba-857a-5e2649498964 09:09:38: trace getPhrases(), state.welcomeIssue = null
18c0483c-3118-4dd4-9692-43c938611620 09:09:38: debug [handleChangeMode] Mode is Home run normal 1 minute Polling
18c0483c-3118-4dd4-9692-43c938611620 09:09:38: debug Initializing
18c0483c-3118-4dd4-9692-43c938611620 09:09:38: trace Updated with settings: [z_Bridges:[Hue B Smart Bridge], z_Sensors:[Hue Motion], z_BridgesUsernameAPI_0017884b1aa2:(my api code here)]

Also where do you want me to press “done”?In the main screen i only have “save”. Or do you mean at one of the select screens?

it indeed is save (used to be done)…

These are the newest lines in the log after i remove the app, reinstall it, set bridge and sensors and click save.

13d12cdc-6ab1-4bba-857a-5e2649498964 09:39:06: trace getPhrases(), state.welcomeIssue = null
f4e9084f-be4c-45ff-bcef-ddc0fe0071b6 09:39:05: debug [handleChangeMode] Mode is Home run normal 1 minute Polling
f4e9084f-be4c-45ff-bcef-ddc0fe0071b6 09:39:05: debug Initializing
f4e9084f-be4c-45ff-bcef-ddc0fe0071b6 09:39:05: trace Updated with settings: [z_Sensors:[Hue Motion, Hue Switch Dimmer], z_BridgesUsernameAPI_0017884b1aa2:OiCAjBzpxCO0xRUVjSXkk64-6sfyI2LmyXF7jzqt, z_Bridges:[Hue B Smart Bridge]]
13d12cdc-6ab1-4bba-857a-5e2649498964 09:38:06: trace getPhrases(), state.welcomeIssue = null
f4e9084f-be4c-45ff-bcef-ddc0fe0071b6 09:38:05: debug [handleChangeMode] Mode is Home run normal 1 minute Polling
f4e9084f-be4c-45ff-bcef-ddc0fe0071b6 09:38:05: debug Initializing
f4e9084f-be4c-45ff-bcef-ddc0fe0071b6 09:38:05: trace Updated with settings: [z_Sensors:[Hue Motion, Hue Switch Dimmer], z_BridgesUsernameAPI_0017884b1aa2:(my user), z_Bridges:[Hue B Smart Bridge]]
f4e9084f-be4c-45ff-bcef-ddc0fe0071b6 09:38:05: debug [handleChangeMode] Mode is Home run normal 1 minute Polling
f4e9084f-be4c-45ff-bcef-ddc0fe0071b6 09:38:05: debug Initializing
f4e9084f-be4c-45ff-bcef-ddc0fe0071b6 09:38:05: trace Installed with settings: [z_Sensors:[Hue Motion, Hue Switch Dimmer], z_BridgesUsernameAPI_0017884b1aa2:OiCAjBzpxCO0xRUVjSXkk64-6sfyI2LmyXF7jzqt, z_Bridges:[Hue B Smart Bridge]]
d6b63e5c-fde1-4554-8de6-d0d31928a053 09:37:22: debug getChildDevices(false), children=8
d6b63e5c-fde1-4554-8de6-d0d31928a053 09:37:22: trace Harmony - error response: HBus timeout
a9608435-996d-4745-96b4-f8e7d77e32a1 09:37:16: debug getChildDevices(false), children=0

will do some digging. I do not use Hue B myself, but it looks like it picks up the username correcly.

yes it does. It seems to find the Hue B hub with no problems. If it cannot communicate with it it wouldnt get all the info back like the username and ip adress. The app is working correctly, it just cannot find any sensors.

d6b63e5c-fde1-4554-8de6-d0d31928a053 09:37:22: debug getChildDevices(false), children=8

Im not sure if above line is about your app at all. But i do have 8 switches/motion detectors

then it should have the devices…could you check your “things” in the app and see if they are present, other method is to go into the IDE and look in my devices?

Both methods i do not see the devices. I do see the bulbs which were already there. Just no motion detectors and no switches.

you can see in the IDE if it is about a specific app. Go into live logging and wait until messages start showing that are related to hue sensor (connect), then click on he sensor (connect) now you have only debug for these. If you can do me a favor and delete the smart app once more, and after the delete, start live logging and re add the app and let logging run for a while, and paste me the output after a couple of minutes…thanks a mill!

Hi Martin,

So i did what you said in your previous post. I deleted the smartapp and reinstalled it. Here is the live logging of the past 10 minutes:

5e2d8322-3841-4365-bd89-c5c4041e3907 10:36:03: debug [handleChangeMode] Mode is Home run normal 1 minute Polling
5e2d8322-3841-4365-bd89-c5c4041e3907 10:36:03: debug Initializing
5e2d8322-3841-4365-bd89-c5c4041e3907 10:36:03: trace Updated with settings: [z_Bridges:[Hue B Smart Bridge], z_Sensors:[Hue Motion, Hue Switch Dimmer], z_BridgesUsernameAPI_0017884b1aa2:OiCAjBzpxCO0xRUVjSXkk64-6sfyI2LmyXF7jzqt]
5e2d8322-3841-4365-bd89-c5c4041e3907 10:36:03: debug [handleChangeMode] Mode is Home run normal 1 minute Polling
5e2d8322-3841-4365-bd89-c5c4041e3907 10:36:03: debug Initializing
5e2d8322-3841-4365-bd89-c5c4041e3907 10:36:03: trace Installed with settings: [z_Bridges:[Hue B Smart Bridge], z_Sensors:[Hue Motion, Hue Switch Dimmer], z_BridgesUsernameAPI_0017884b1aa2:OiCAjBzpxCO0xRUVjSXkk64-6sfyI2LmyXF7jzqt]

And this is from the super lan connect:

78798118-f0d6-427f-96b1-b3cad88db8dc 10:36:20: debug getChildDevices(false), children=0
78798118-f0d6-427f-96b1-b3cad88db8dc 10:36:20: debug detecting status for 99ad4882-a3a0-4f5f-9c94-ca6a3f037938 : false
78798118-f0d6-427f-96b1-b3cad88db8dc 10:36:20: trace in ssdpDiscover

strange, it all looks okay. Just to be sure: when you start the app, the username for the bridge is filled in already? I do not use Hue B myself, so it was a guess if this worked…

could you also take a peek in the IDE, click my locations / smartapps / hue sensor (connect) and check for application state the devices object… is it similar like below:

i think i see what is going on…in “normal” super lan connect mode only the last 6 digits of the mac are stored as serialnumber, eg my last 6 digits are 0AF130…Hue B gives the whole mac as serialnumber. That might cause the problem of not detecting sensors…

The username is on the screen when starting the app. It is only a placeholder text though, meaning i have to copy the username in there myself aswell.

About the application state. No, i see no info there.

Application State
Name Value
devices {}
refreshCount 6

Is there anything i can do about the serial number thing? Id really love this app to work. Im ahppy with how Hue B works, just its missing the switches and motion. If your app will work with hue b it would be the ideal setup for me!