Hubitat Bulbs LZW41 and LZW42 Drivers

It works on my sunset routine and my Alexa goodnight rule. Just seems if we trigger multiple changes it slows down. Hub is in basement.

Sounds like you may have z-wave messages getting backed up from the long journey / possible weak signals…

My hub is almost central in my house … and I have tons of mains powered repeaters strategically placed around the house to provide multiple redundant paths and guarantee fast delivery…

Possibly but first commands work fast. When I get home I’ll try to just control one bulb or move my hub upstairs for testing.

1 Like

remember… anytime you move your hub… or mains powered z-wave devices… to run a z-wave repair

Pretty much have repeaters everywhere. Between 30 switches and a few outlets. :man_shrugging:t2:

Couple of fixes pushed:

  • fixed type definitions
  • fixed fingerprint

Updated

  • added duplicate event filtering (optional as it has a slight possibility of causing issues with voice assistants)
  • changed dimming speed default to 1 to match previous default functionality

duplicate event filtering is a preference option as it has a slight chance, if the values don’t change, that voice assistants will report the device is not responding.

Same pull request:

1 Like

These changes have been merged

Hey Bryan,

I have run into something of interest that maybe you could help with code in the driver. I know you too have a bunch of iLumin bulbs so I figured you could test easily. The RGB Mix has a weird area in the bulb where it’s obvious that the curve doesn’t match the Color Picker index. Part of this is the whole x 3.6 conversion and the bulbs can do most any color. That said, when I tell Alexa to turn the bulb “Orange”, It sets to a Hue of 11 (suspect this is an Alexa Defined Value?) which is stongly a yellow color. If you manually set Hue to 6, we’re about where we should be. Can you code the driver to fix offset and reduce and input value when set to 11 to change to 6? Maybe an On/Off Option for Color Correction? All of my bulbs have this problem when issuing voice commands so I suspect you will as well. Any ideas?

-Travis

1 Like

I can for sure add this… I added gamma correction to another color based driver I work on… I’ll add this today…

Awesome! Maybe Hue 4 - 6. Not sure where it should land. Curious Did you test to see if you had the same issue?

-Travis

1 Like

Here ya go:

  • fixed bug in CT report
  • added gamma correction as an optional setting

Pull Request:

Ping @EricM_Inovelli

Through my standard gamma correction algorithm, hue 11 ends up being 7

I don’t use alexa to set color… But I have used this gamma correction code in other RGB based drivers that I maintain… And I have found to to produce more accurate color…

Wow…that was fast. Works Great, thanks! While you are at it could we get “Last Activity” like there is in the Switch Drivers? That will help show when the config or Refresh commands were actually issued. For me, it showed me my clock on the Hubitat was off by 3 hours this AM due to a power outage because the stamp is shown.

1 Like

last activity is built-in in the device data at the bottom… so this is redundant…

Ahh, I see. I didn’t realize it was down there. Thanks again!

-Travis

1 Like

I think they had this in their drivers as a holdover from ST…

1 Like

this change has already been merged into official …

1 Like

Hey Bryan,

This is not new but maybe you have insight…I have noticed in the Logs for the bulbs that color changes add a lot of entries. Do you know why this is? For instance, I changed the light to Green and then to Blue…here are the entries.

Blockquote
|colorName|Green||Test - Light Bulb color is Green|DEVICE||2020-04-15 02:54:37.652 PM PDT|
|colorName|Green||Test - Light Bulb color is Green|DEVICE||2020-04-15 02:54:37.592 PM PDT|
|hue|33|||DEVICE||2020-04-15 02:54:37.582 PM PDT|
|color|#00ff00|||DEVICE||2020-04-15 02:54:37.576 PM PDT|
|colorName|Cyan||Test - Light Bulb color is Cyan|DEVICE||2020-04-15 02:54:36.824 PM PDT|
|hue|50|||DEVICE||2020-04-15 02:54:36.811 PM PDT|
|color|#00ffff|||DEVICE||2020-04-15 02:54:36.803 PM PDT|
|colorName|Blue||Test - Light Bulb color is Blue|DEVICE||2020-04-15 02:54:16.549 PM PDT|
|saturation|100|||DEVICE||2020-04-15 02:54:16.544 PM PDT|
|hue|67|||DEVICE||2020-04-15 02:54:16.535 PM PDT|
|color|#0000ff|||DEVICE||2020-04-15 02:54:16.529 PM PDT|
|saturation|0|||DEVICE||2020-04-15 02:54:16.406 PM PDT|
|color|#000000|||DEVICE||2020-04-15 02:54:16.395 PM PDT|

Are the extra color changes mentioned…like CYAN in there just added to soften the transition from one color to another because I only select two colors. Also, this is with “Filter out duplicate events” on but the first two (most recent) entries are the same but they do have different time stamps. Why would we see two entries that set the colorName to “Green” for instance 100ms apart. Is that just a mesh thing?

-Travis