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

dth_sensors

#181

Ive installed the updated version and it works now with buttons 10-14. Im using button 11 myself which means 2 clicks.
My only dissapointment is that i cannot just do 2 fast clicks to activate. If you want the 2nd hue scene to start you press the button twice and it starts. But if i do the same through your app and smartthings it doesnt work. I need to click once, then pauze for about 5 seconds and do the second click. Which is strange though is if i click fast 2 times then i need to pauze 5 seconds and click again and it works, but i dont get how that still is concidered button 11 since hue is starting the 3rd scene.

Also, probably nothing to do with your app, but i saw you just mentioned hue groups. If i activate a group through smartthings and connect it to a button through your app all lamps go to 50% brightness. I can counter this by adding some settings but sometimes it just comes back. Any suggestions?


(Martin Verbeek) #182

It is a polling app, the Hue API does not send out events that something has happened on the bridge. As such i need to find a midway between performance and function. Will do some more thinking to help out here.

As for the other thing. could you check/uncheck the Hue Rooms option in the sensor selection list just to be sure.

If you had this behaviour before today it is unrelated.


#183

The problem is not since today only, always has been like this. Just thought maybe theres something in the hue rooms that i could use instead of hue groups which turn to 50% brightness.


(Martin Verbeek) #184

As both are working fwith the same API, a problem in a group would also affect a room. To test, you would have to get rid of an existing group device in Hue B and have this app define the rooms otherwise they will influence each other.


(Martin Verbeek) #185

Did a little enhancement, when a buttonevent is detected i will poll the sensor 5 times in 5 seconds to catch subsequent presses quicker. It STILL has to get the first change detected. V 1.16.


(Jordon) #186

I just update the codes and now I cant open the smart app or get my dimmers to update on button presses. am I the only one with this problem?


(Martin Verbeek) #187

Hi Jordon, any error messages in the log?


(Martin Verbeek) #188

Was this solved?


(Jan Tore Bøe) #189

I’m having problems with linking the hue bridge. Nothing happens when I push the button on the bridge. Does anyone have any tips?


(Martin Verbeek) #190

That is correct, it does not require bridge linking. It will pick up the bridge(s) that are already defined in ST. For Hue B it will get the credentials from the ST device you select. For bridges that are discovered by ST with build in LAN connect you need to get the username from the IDE, you should be able to click the link to the device in the APP. Other custom apps for HUE devices are not tested.


(Jan Tore Bøe) #191

Hah, I had the wrong smartapp. Used Hue connect. Not hue sensor connect.


(Martin Verbeek) #192

:slight_smile: make sure you read the first post to set expectations right. Any suggestion to improve, please let me know.


#194

I have a stupid question…

I got my dimmer switches recognized by ST, but I can’t figure out how I can program the buttons on the dimmers. Thanks for any help.


(Martin Verbeek) #195

Just use the standard ST Light Automation App. You can use both Switch On/Off event (for On button and Off button), and/or use the Button event. Button 1,2,3,4 for the four button presses top down (On, Dimm up, Dimm down, Off), or button 10,11,12,13, 14 for so-called scene cycling with the ON button (far scene cycling, wait for the first scene to occur, then use quicker repeats, it is a polling app, so i might miss things)…


#196

Hi Martin,

The app is still working perfectly for me. But i still am bothered by the delay it has. Is there any update or possibility to reduce this lag? My latest project with the dimmer switch is that i use it to call several light scenes at the same time from ST instead of just 1 scene from the hue app.
This way i can make all lights turn on 1 by 1 and give them different fading time. It is a much nicer way of turning on the lights as the standard way hue offers. The only downside is the 2 or 3 seconds it takes to activate the scene when pressing a physical button. When press on a button in the ST app everything goes instantly ofcourse. Is there anything that can be done or do i just have to accept this limitation of hue+ST?


(Martin Verbeek) #197

Hi John, the app has to poll the Hue bridge, that will indeed involve lag. Sorry…


(Jeremy) #198

Thank you for creating this app and it will be very useful once i get it working. The app is seeing my Hue Bridge just fine but will not connect to my sensors. I am getting an unauthorized user error. Does anyone know how I can fix that?

The error is below:
b8b9645e-749f-4bb5-b25f-79c91e25696a 1:09:24 PM: error [handlePoll] Error in 2412F4 [[address:/sensors, description:unauthorized user, type:1]]
b8b9645e-749f-4bb5-b25f-79c91e25696a 1:09:23 PM: error [handleRooms] Error in 2412F4 [[address:/groups, description:unauthorized user, type:1]]
b8b9645e-749f-4bb5-b25f-79c91e25696a 1:09:23 PM: trace [pollTheSensors] entered
b8b9645e-749f-4bb5-b25f-79c91e25696a 1:09:23 PM: trace [pageBridges] bridges present canPoll!}
b8b9645e-749f-4bb5-b25f-79c91e25696a 1:09:23 PM: error [handlePoll] Error in 2412F4 [[address:/sensors, description:unauthorized user, type:1]]
b8b9645e-749f-4bb5-b25f-79c91e25696a 1:09:20 PM: error [handleRooms] Error in 2412F4 [[address:/groups, description:unauthorized user, type:1]]
b8b9645e-749f-4bb5-b25f-79c91e25696a 1:09:20 PM: trace [pollTheSensors] entered
b8b9645e-749f-4bb5-b25f-79c91e25696a 1:09:03 PM: error [handlePoll] Error in 2412F4 [[address:/sensors, description:unauthorized user, type:1]]
b8b9645e-749f-4bb5-b25f-79c91e25696a 1:09:02 PM: error [handleRooms] Error in 2412F4 [[address:/groups, description:unauthorized user, type:1]]
b8b9645e-749f-4bb5-b25f-79c91e25696a 1:09:02 PM: trace [pollTheSensors] entered
b8b9645e-749f-4bb5-b25f-79c91e25696a 1:09:02 PM: trace [pageBridges] bridges present canPoll!}
b8b9645e-749f-4bb5-b25f-79c91e25696a 1:08:59 PM: trace [handleChangeMode] Mode is Away run normal 1 minute Polling for sensors
b8b9645e-749f-4bb5-b25f-79c91e25696a 1:08:59 PM: trace Initializing


(Martin Verbeek) #199

did you paste the username in the setup?

The smartapp is only tested with bridges that are discovered by Super Lan Connect. It supports multiple bridges. When the bridges are discovered it will ask for the Username that is used to make the API calls. The app provides you with a button that brings you to the device definition in the IDE where you have to copy the username from the user data section. When you paste the username in the app it should discover the sensors that are on that bridge(s).


(Sander Wolschrijn) #200

I have the same problem when I tryed to connect my hue tap. I can’t figure out how to add the port or how to reloade the code as u mentioned in post 113

Hue sensor log:

c5acbf9e-68c8-45d6-b89b-943bb3abf7f9 17:30:20: trace [pollTheSensors] entered
c5acbf9e-68c8-45d6-b89b-943bb3abf7f9 17:30:20: trace [pageBridges] bridges present canPoll!}
c5acbf9e-68c8-45d6-b89b-943bb3abf7f9 17:30:20: trace [pageBridges] Hue B SMART detected for 2a086a
c5acbf9e-68c8-45d6-b89b-943bb3abf7f9 17:30:20: trace [pollTheSensors] entered
c5acbf9e-68c8-45d6-b89b-943bb3abf7f9 17:30:00: trace [pollTheSensors] entered
c5acbf9e-68c8-45d6-b89b-943bb3abf7f9 17:30:00: trace [pageBridges] bridges present canPoll!}
c5acbf9e-68c8-45d6-b89b-943bb3abf7f9 17:30:00: trace [pageBridges] Hue B SMART detected for 2a086a
c5acbf9e-68c8-45d6-b89b-943bb3abf7f9 17:29:20: trace [pollTheSensors] entered
c5acbf9e-68c8-45d6-b89b-943bb3abf7f9 17:28:20: trace [pollTheSensors] entered
c5acbf9e-68c8-45d6-b89b-943bb3abf7f9 17:27:50: trace [handleChangeMode] Mode is Home run normal 1 minute Polling for sensors
c5acbf9e-68c8-45d6-b89b-943bb3abf7f9 17:27:50: trace Initializing
c5acbf9e-68c8-45d6-b89b-943bb3abf7f9 17:27:50: trace Updated with settings: [z_Bridges:[Hue B Smart Bridge], z_Trace:true, z_Sensors:[Hue Tap], z_BridgesUsernameAPI_2a086a:xxxxxxxxxxxxx ]
c5acbf9e-68c8-45d6-b89b-943bb3abf7f9 17:27:33: trace [pollTheSensors] entered

Hue B log:

66ccd0c8-dd47-4508-84ee-0dabb6d245d1 17:31:22: debug *********** xxxxxxxxxxxxxxxxxxxxxxxxx ********
66ccd0c8-dd47-4508-84ee-0dabb6d245d1 17:31:22: debug *********** 192.168.2.2:80 ********
66ccd0c8-dd47-4508-84ee-0dabb6d245d1 17:31:22: debug Initialize Bridge [ip:192.168.2.2, username:xxxxxxxxxxxxxxxxxxxxxxxx, deviceId:0017882A086A]
66ccd0c8-dd47-4508-84ee-0dabb6d245d1 17:31:22: trace Bridge discovering all items on Hue hub.

Hue B Smart Bridge device page

serialNumber: 0017882a086a
networkAddress: 192.168.2.2
username: xxxxxxxxxxxxxxxxxxxxxxx


(Martin Verbeek) #201

Hallo Sander, no need to enter the port, at that time is was a question for help to make the code work with Hue B. the code automatically detects if Hue B is present, and looking at the code it does so and it connects to the Bridge allright with the found username. I have no Hue B myself. I remember i sometimes had a problem that the selected sensor types were not immediatly recognised fro some reason. Could you do me a favour and go into the app again and check the Select Sensor Types?