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

dth_sensors

(Daniel Consuegra) #21

Thanks! Got it!

I’ve got a piston in CoRE done… thanks! Now I only need a way to assign a double click from the on button in the hue dimmer to activate the scene… @dudz40 ? Anyone?


(Martin Verbeek) #22

could you check the log in the IDE for Hue Sensor and see what buttonpress code it gives you for a the double press…


Philips Hue Dimmer Switch and SmartThings
(Martin Verbeek) #23

should look like the bottom one…


(Martin Verbeek) #24

i don´t think there is a double click on the dimmer switch, the below codes are in the API

the DTH will interpret these as follows, i divide the button by 1000, that is the buttonpress event you can react to. For all codes ending on 1 and 3 it will set the held attribute on the buttonevent as well.

For button 1 and 4 the DTH will send an On or Off event as being a switch device.


(Hendre) #25

Thank you, Martin, that did it.

Note that this differs from your instructions in the first post.:

By the way, (and sorry for going somewhat off topic), is is not possible to give smart apps unique descriptions as far as GitHub integration is concerned? It is difficult to differentiate between the different repo’s when looking for an update. Many smart apps have the same description in the IDE e.g.:


(Martin Verbeek) #26

Agree with that. Like give it user defined label. I do not know enough on
github.

met vriendelijke groeten,

Martin


(Hendre) #27

JA, dit sal baie makliker wees. Groete :innocent:


(Martin Verbeek) #28

Hi Daniel, i have found where the cycle is stored…it is only going to work if you have a motion sensor associated with the dimmer switch, as you need the speed of polling. The Hue will reset the cycle to initial in around 10 seconds after the last button press.
If you load new code for app and Hue Switch you now have 14 buttons.
10 = first or initial
11 = second
12 = third
13 = fourth
14 = fifth button press


(Daniel Consuegra) #29

What do you mean it will only work if I have a motion sensor?


(Martin Verbeek) #30

In the app you can assign a ST motion sensor to monitor movement around the Hue sensor. When movement is detected it will fire a short monitoring polling cycle for the Hue sensor. Normally it will poll every minute or elevated, when monitoring it will poll 15 times with a second inbetween.


(Hendre) #31

I see a lot of these errors in the IDE log in respect of the app - any ideas?

0ffed9bd-1ccc-402f-86d4-2eb55bbf29cc  3:50:41 PM: error groovy.lang.MissingMethodException: No signature of method: script1500269621158861388648.poll1Minute() is applicable for argument types: () values: []
0ffed9bd-1ccc-402f-86d4-2eb55bbf29cc  3:49:41 PM: error groovy.lang.MissingMethodException: No signature of method: script1500378402181861388648.poll1Minute() is applicable for argument types: () values: []
0ffed9bd-1ccc-402f-86d4-2eb55bbf29cc  3:48:41 PM: error groovy.lang.MissingMethodException: No signature of method: script1500334781181861388648.poll1Minute() is applicable for argument types: () values: []
0ffed9bd-1ccc-402f-86d4-2eb55bbf29cc  3:47:41 PM: error groovy.lang.MissingMethodException: No signature of method: script1500372101143861388648.poll1Minute() is applicable for argument types: () values: []
0ffed9bd-1ccc-402f-86d4-2eb55bbf29cc  3:46:41 PM: error groovy.lang.MissingMethodException: No signature of method: script1500296561159861388648.poll1Minute() is applicable for argument types: () values: []

(Martin Verbeek) #32

Will check…when did you last updated the app and dth

met vriendelijke groeten,

Martin


(Hendre) #33

Within the last 24 hours.

private def runningVersion() { "1.02"}


(Martin Verbeek) #34

check in the comments if you have

1.03 Initial cleaning of code and removing the custom DTH command (replace
by normal sendEvent)


(Hendre) #35

Yes, I do:


(Martin Verbeek) #36

There should be no more method poll1minute in the app. Could you refresh
the code for both app and dth one more time. And go into the app and press
done. It might be that it keeps on scheduling as a remnant from the
previous version.

met vriendelijke groeten,

Martin


(Hendre) #37

Thanks Martin - this seems to have stopped the error messages.


(Martin Verbeek) #38

In that case just go into the app and press done, that might do the trick.

met vriendelijke groeten,

Martin


(Hendre) #39

That’s what I meant to say - after going into the app on my mobile, I pressed on Done and after that, no more errors.


(Hendre) #40

Martin
Will the Dimmer Switch and Tap also only work if linked to a motion sensor and while there is motion?
I was under the impression that the Dimmer and Tap is not subject to this limitation, but it seems to be the case, as button presses on the Tap and Dimmer are not registered in general.