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

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!

just committed v 1.10 to github, you need to load this new code, it might solve the problem. As it will generate other variablenames in state you need to remove/reinstall the app one more time.

ignore the Hue Rooms in the setup. I am trying to add room type groups only as a bonus. It is not functioning yet, but some code is present and is used.

I see no changes after doing that. I reinstalled the app and see the rooms option newly added. But still can’t find my sensors and switches. The apps n super lan live loggings are identical to the ones i showed before.

okay, i need to test it with Hue B myself. That will take me a little…i’ll be back :wink:

2 Likes

I hope you can manage it. Otherwise i will delete Hue b and try your app without it. Im new to ST, but i think i read i can make scenes myself with Webcore. So i guess this would be the best alternative.