[UPDATED] Osram Lightify RGBW A19/BR30 US version (HA) DTH

osram
dth_lighting

(George) #1

Intended for the US HA version. May work with the European ZLL version, but not tested.

Implements:

  • Custom On/Off dim duration (in preferences)
  • Custom dim duration for level change (in preferences)
  • Custom duration for color transition (in preferences)
  • Pulse (aka ZLL breathe) and blink (custom commands)
  • Color loop/cycle
  • UI enhancements

Updated 6/6/17:
set default color/level code by @ranga

To set default initial (power-on) color/level:

  • set your preferred color/level
  • wait for a few seconds, then tap the Set Default tile
  • wait 3-5 minutes for the process to complete (do NOT switch off or change any settings during this time)
  • the main (on/off) tile will turn orange with “WAIT” status during this period; if it does not reset after 3-5 minutes, tap the refresh tile
  • after that, you can try switching power off and on to see if the new color/level is set correctly
  • may need to upgrade firmware (via ST OTA) for this to work

Osram Lightify Color Loop?
Osram lightify br30 rgbw
Osram LIGHTIFY GardenSpot Minis rgb - aap version
Smart Lighting SmartApp and Hue Colors
Create pulsating 'sleep mode' outdoor lighting (like the Macbook light)?
Osram lightify switch resets to default value
OSRAM Lightify Gardenspot mini
Osram Lightify Device Firmware Updates?
Slow Color Changes with Sylvania RGB Bulbs
[RELEASE] Alexa Helper
OSRAM Flex Full Color Control?
OSRAM LIGHTIFY Light turning on by itself
Best DTH for Hue bulbs?
Osram/Sylvania Lightify (it works)
5000K White Bulbs with ability to control color temp?
Lightify Firmware Updates?
Lightify gateway (UK)
Osram/Sylvania Lightify (it works)
Adding support for Osram Dynamic Presets?
OSRAM RGBW Bulbs Group & Virtual Control
Osram RGBW flex strip loop DTH?
(Joe) #2

Liking this so far. Nice job.


#3

@gkl_sf thank you for this! Is there any chance this could also work for the Lightify Flex Strip?


(George) #4

Hi. I don’t have the flex strip, so don’t know much about it. If using the above dth with it, what happens? (Issues and missing features?) thanks.


(Joe) #5

If I get some time tonight I will let you know. I have one. Also did I miss in the code. When you click color changing how long is it suppose to be till it changes?


(Joe) #6

Works just fine from what I see just messing with it for a few min.


(Megan) #7

Awesome sauce!!! Loving it.!!


(Gene) #8

I’m new to Smart Things (this is my 1st post, actually), so sorry if this is something that should be obvious. Is there a way to activate one of your functions, such as color loop, with another device? I’d like to set up a button on an Aeon Minimote to trigger a function or two. Also, what does the Configure button do? Nothing seems to happen when I press it.

Thanks for making this available! I love the added functionality.


#9

Config button not working for me, too.

Also, most functions work but the state doesn’t seem to be working. Says light is off, but the light is on.


(Joe) #10

Yeah I got that same thing. I don’t think the color changes when picked either but everything else seems good.


#11

Yea the status is not updating at all, that should be fixed so we can use apps like CoRE properly. The light doesn’t know if it is on or not even what the dim level should be. Also, I keep seeing the following error show up which should be cleaned up as well

8:14:05 AM: error groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method java.lang.Long#minus.
Cannot resolve which method to invoke for [null] due to overlapping prototypes between:
[class java.lang.Character]
[class java.lang.Number] @ line 264


(George) #12

Thank you for the log info – I’ve updated the DTH.


(George) #13

In re status, is it intermittent? Is it specific to this DTH?

The Config button configures reporting from the bulb. It is only useful when something goes wrong. Ordinarily, it shouldn’t do anything.


(George) #14

You can use CoRE to do it. The trigger will be the remote control button. The action is the bulb, using custom command “loopOn” or “loopOff”.


#15

@gkl_sf it is specific to this device handler. When I press “on” in the app it stays on “turning on” and it never updates to “on” at all.


(George) #16

See if the changed dth fixed it. If not, let me know.


#17

looks like the error is still there and the status is not updating either:

12:29:51 PM: error groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method java.lang.Long#minus.
Cannot resolve which method to invoke for [null] due to overlapping prototypes between:
[class java.lang.Character]
[class java.lang.Number] @ line 264

(George) #18

Ok. Thanks. I’ll fix it later today.


(George) #19

I’ve updated the DTH. I was filtering events to prevent duplicates, but it may have caused the status not to update. Took the filter out.

I’ve noticed that at times, Hue indicator (and some other UI elements) is not updating – it’s a ST problem. Just for kicks, I changed createEvent to sendEvent in parse and it started working again. Anyway, if that’s happening, let me know, and I’ll post a DTH with sendEvent instead of createEvent, even though that’s not in-line with the API.


(Andy Medina) #20

Still a noob at all this, how do I go by adding this to apps? Thanks in advance