Will definitely let you know⦠And thanks for all the info. Looking forward for the hue update from ST as nothing matters for me at least more than this⦠it boosts my WAF and makes me the hero of the neighborhood and does wonders for my social lifeā¦
@juano2310@tyler This is a new one that I see along with the exception that I reported last time (the highlighted lineā¦) for the Hue Bridge.
97515c33-3bd1-4443-9c3b-3b7dfbe7c739 ā2ā:ā53ā:ā18ā āPM: error java.lang.NullPointerException: Cannot invoke method multiply() on null object @ line 516
97515c33-3bd1-4443-9c3b-3b7dfbe7c739 ā2ā:ā53ā:ā14ā āPM: error java.util.concurrent.TimeoutException: Execution time exceeded 20 app execution seconds: 91983958456644 @ line 510
97515c33-3bd1-4443-9c3b-3b7dfbe7c739 ā2ā:ā53ā:ā13ā āPM: error java.lang.NullPointerException: Cannot invoke method multiply() on null object @ line 516
Probably this loop is timing outā¦
for (bulb in body) {
def d = bulbs.find{it.label == bulb.value.name}
if (d) {
if (bulb.value.state.reachable) {
sendEvent(d.deviceNetworkId, [name: "switch", value: bulb.value?.state?.on ? "on" : "off"])
sendEvent(d.deviceNetworkId, [name: "level", value: Math.round(bulb.value.state.bri * 100 / 255)])
def hue = Math.min(Math.round(bulb.value.state.hue * 100 / 65535), 65535) as int
def sat = Math.round(bulb.value.state.sat * 100 / 255) as int
def hex = colorUtil.hslToHex(hue, sat)
sendEvent(d.deviceNetworkId, [name: "color", value: hex])
} else {
sendEvent(d.deviceNetworkId, [name: "color", value: hex])
sendEvent(d.deviceNetworkId, [name: "switch", value: "off"])
sendEvent(d.deviceNetworkId, [name: "level", value: 100])
def hue = 23
def sat = 56
def hex = colorUtil.hslToHex(23, 56)
sendEvent(d.deviceNetworkId, [name: "color", value: hex])
}
}
}
}
The first exception regarding null pointer may be because I have two Philips luxās connected to the hue hub. Of course the Lux bulbs will will only have the state info for switch and level only in contrast to hues which will have state info for hue, saturation, color, switch and level. So, of course all these calls will fail in the code snippet shown below as we are not checking for existence of the state info and doing a math operation on it in the hue service manager (connect app).
@juano2310 OK I have an issue with what you were asking about. I had 5 bulbs in hue and ST for at least a few weeks then recently added a hue bulb and a LightStrip. I started the hue connect to detect the new bulbs but nothing, they were never detected by ST. I tried at different times/days and never got ST to detect them so I opened up a support ticket. I was told Aaron uploaded a new firmware to my hub and asked that I unplug the network cable and power cable for two minutes which I did but still no detection. After that I was instructed to either wait weeks for QA to investigate or to remove the bulbs/bridge etc. from ST then re-add. I removed everything from all my SmartApps/Hello Home actions, removed the bridge then added everything back. All bulbs were detects (7 total) in ST.
Today I bought a new hue LUX, added it to hue and tried ST but once again, nothing. I am not going to remove everything then add everything back into ST each time I purchase a new hue bulb, this is ridiculous.
Anyone have any thoughts? This is just one of many issues Iām experiencing with ST but it certainly is very frustrating.
@smart and @hscox030,
I will be looking into this issues next week. I think I have and idea on how to fix both but I need to get a Lux to test both adding a new bulb and the saturation = null.
I will keep everyone on the loop
@smart, we are. I can get more information if you are interested.
2 Likes
tgauchat
(ActionTiles.com co-founder Terry @ActionTiles; GitHub: @cosmicpuppy)
33
Scenes are something that Iāve requested a year or two ago; but I have no idea if they are on the roadmap.
There is a good āScene Machineā SmartApp (by @wackware), and Iām likely to expand upon it, I think ⦠I was hesitating in the hopes that a more integrated approach would come from SmartThings as you suggest.
Hereās a long discussion you can refer to ā Iād love your input!
Wouldnāt you get the same result with GE Link bulbs connected to the Hue bridge? Iām sure you have a couple of those somewhere lying around the office.
Juano, I have also been working on some hue code to bring in hue groups and lights so you can control them either way and to bring in the fade time so that we dont have to use timmers⦠however i have not gotten stuck in the loop of not being able to pair smartthings to the hue bridge⦠I was wondering if this is something that you have solved? (it gets stuck on the verifybridge part) If so I would be very interested to see where you are [if you have code on github etcā¦] and to help where I can.
@geko, in theory is the same, but better safe than sorry, and I rather have them all to test the whole integration. I have a Best Buy 4 blocks from home so this isnāt an issue. Also, I will be meeting Philips HUE engineers also, on the 10th, to work on improvements
Based on the thread title. I think TCP is getting the love based on price point. If you put the Hue bulbs at the same price point, then TCP wouldnāt last or be a bleep on anyoneās radar.
Iād love to replace my 40 or so TCP bulbs with Hue, but if you did the math it doesnāt make sense.
Hue = $59.99
TCP = $14.99
tgauchat
(ActionTiles.com co-founder Terry @ActionTiles; GitHub: @cosmicpuppy)
39
Thatās for color, no? Canāt compare an RGB(W) bulb to a fixed white.
But ⦠I am also having total success with GE Link bulbs on my Hue Hub ($15+). The GE Linkās do look a little odd because they have clear glass with just a bit of internal deffusing.
Just have 3 Hueās for a lounge room, and I watch eBay for the occasional others.
Philips Lux (white) are overpriced ⦠but they may stick with that āhigh-endā market.
But we need ST compatible scene controllers!!!
I presume this controller is NOT usable as a general SmartThings trigger?
Glad to hear that you are working on the Hue integration. I have been having problems with groups of Hue lights. They often wonāt all turn on, or off, as commanded.