Page 2 of 2

Re: Harmony Hub "dim buttons"

PostPosted: Tue Feb 21, 2017 7:42 pm
by FlyingDiver
Juggler wrote:
Should the dimming work with z-wave devices? I have a Leviton VRPD3-1LW (lamp module). It is behaving the same way, i.e. press the "-" button and it turns off.


Have you updated to the latest release per the link above?

Re: Harmony Hub "dim buttons"

PostPosted: Tue Feb 21, 2017 7:42 pm
by Juggler
Yes, this is with v7.0.2

Re: Harmony Hub "dim buttons"

PostPosted: Tue Feb 21, 2017 7:48 pm
by FlyingDiver
This line says that the command I get from the Hub is to turn the light all the way off:

Code: Select all
LIFX Bridge Debug               LightSetColor command is for device: livingroom table lamp, payload = [('Color', (18432, 33343, 0, 47872)), ('Duration', 256011)]


That '0' is the brightness level.

So the plugin is working right. It's the Hub that's doing something weird.

Re: Harmony Hub "dim buttons"

PostPosted: Tue Feb 21, 2017 8:22 pm
by Juggler
Curious. As you said, you're just receiving the commands for the hub. Below are the two snippets: one for an Insteon device the second for the Z-wave device:

Code: Select all
LIFX Bridge Debug               LightSetColor command is for device: under walkway, payload = [('Color', (18432, 33343, 26112, 48051)), ('Duration', 256011)]

LIFX Bridge Debug               LightSetColor command is for device: livingroom table lamp, payload = [('Color', (18432, 33343, 0, 47872)), ('Duration', 256011)]


I do have one mapped to one of the "light bulb" buttons (Z-wave) and the other to a "socket" button (Insteon). I'm going to have to play further to see what is going one. I'll let you know if I figure anything out.

Re: Harmony Hub "dim buttons"

PostPosted: Tue Feb 21, 2017 8:25 pm
by FlyingDiver
I suspect that those socket buttons are assumed to be on/off only.

Re: Harmony Hub "dim buttons"

PostPosted: Wed Feb 22, 2017 12:20 pm
by Juggler
I thought I'd take a closer look to see if there is a difference between the 4 buttons. In doing so, I've come across a problem; not sure if it is a Hub problem or bug with the plugin?

Essential, the behaviour is inconsistent. For simplicity, I've only got a single LIFX device being advertised (an Insteon wall dimmer). The first time I turn it on and start to dim, it seems to jump around (100, 76, 80, 32, 39). The second time when I start to dim it, it turns the light off.

Is there anything I can do?


Code: Select all
Top light button pushed once

   LIFX Bridge Debug               logLevel = 10
   LIFX Bridge Debug               lifxRespond, seq_num = 231, type = 117, target = 00:16:0d:7b:35:5b
   LIFX Bridge Debug               LightSetPower command is for device: under walkway, payload = [('Power', 65535), ('Duration', 1000)]
   LIFX Bridge                     Set on state of device 202061131 to 65535
   Sent INSTEON                    "under walkway" on to 100
   
   
- button pushed once   
  LIFX Bridge Debug               lifxRespond, seq_num = 232, type = 102, target = 00:16:0d:7b:35:5b
   LIFX Bridge Debug               LightSetColor command is for device: under walkway, payload = [('Color', (18432, 33343, 49920, 47969)), ('Duration', 256011)]
   LIFX Bridge                     Set brightness of device 202061131 to 49920
   LIFX Bridge Debug               lifxRespond, seq_num = 233, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               LightGet message, replying for: under walkway
   LIFX Bridge Debug               lifxRespond, seq_num = 234, type = 32, target = 00:00:00:00:00:00
   Sent INSTEON                    "under walkway" on to 76
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 233, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 234, type = 32, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 233, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 234, type = 32, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 233, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 234, type = 32, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 233, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 234, type = 32, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 233, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 234, type = 32, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 233, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 234, type = 32, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 233, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 234, type = 32, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 233, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 234, type = 32, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 233, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 234, type = 32, target = 00:00:00:00:00:00


- button pushed once
   LIFX Bridge Debug               lifxRespond, seq_num = 235, type = 102, target = 00:16:0d:7b:35:5b
   LIFX Bridge Debug               LightSetColor command is for device: under walkway, payload = [('Color', (18432, 33343, 52480, 48102)), ('Duration', 256011)]
   LIFX Bridge                     Set brightness of device 202061131 to 52480
   LIFX Bridge Debug               lifxRespond, seq_num = 236, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               LightGet message, replying for: under walkway
   LIFX Bridge Debug               lifxRespond, seq_num = 237, type = 32, target = 00:00:00:00:00:00
   Sent INSTEON                    "under walkway" on to 80
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 236, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 237, type = 32, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 236, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 237, type = 32, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 236, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 237, type = 32, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 236, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 237, type = 32, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 236, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 237, type = 32, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 236, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 237, type = 32, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 236, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 237, type = 32, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 236, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 237, type = 32, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 236, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 237, type = 32, target = 00:00:00:00:00:00

- button pushed twice
   LIFX Bridge Debug               lifxRespond, seq_num = 238, type = 102, target = 00:16:0d:7b:35:5b
   LIFX Bridge Debug               LightSetColor command is for device: under walkway, payload = [('Color', (18432, 33343, 20992, 48041)), ('Duration', 256011)]
   LIFX Bridge                     Set brightness of device 202061131 to 20992
   LIFX Bridge Debug               lifxRespond, seq_num = 239, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               LightGet message, replying for: under walkway
   LIFX Bridge Debug               lifxRespond, seq_num = 240, type = 32, target = 00:00:00:00:00:00
   Sent INSTEON                    "under walkway" on to 32
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 238, type = 102, target = 00:16:0d:7b:35:5b
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 239, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 240, type = 32, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 239, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 240, type = 32, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 239, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 240, type = 32, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 239, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 240, type = 32, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 239, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 240, type = 32, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 239, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 240, type = 32, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, seq_num = 241, type = 102, target = 00:16:0d:7b:35:5b
   LIFX Bridge Debug               LightSetColor command is for device: under walkway, payload = [('Color', (18432, 33343, 26112, 48051)), ('Duration', 256011)]
   LIFX Bridge                     Set brightness of device 202061131 to 26112
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 239, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 240, type = 32, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 241, type = 102, target = 00:16:0d:7b:35:5b
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 239, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 240, type = 32, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 241, type = 102, target = 00:16:0d:7b:35:5b
   Sent INSTEON                    "under walkway" on to 39
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 239, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 240, type = 32, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 241, type = 102, target = 00:16:0d:7b:35:5b
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 241, type = 102, target = 00:16:0d:7b:35:5b
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 241, type = 102, target = 00:16:0d:7b:35:5b
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 241, type = 102, target = 00:16:0d:7b:35:5b



Code: Select all
top light button pushed
   LIFX Bridge Debug               lifxRespond, seq_num = 247, type = 117, target = 00:16:0d:7b:35:5b
   LIFX Bridge Debug               LightSetPower command is for device: under walkway, payload = [('Power', 65535), ('Duration', 1000)]
   LIFX Bridge                     Set on state of device 202061131 to 65535
   Sent INSTEON                    "under walkway" on to 100

- button pushed
   LIFX Bridge Debug               lifxRespond, seq_num = 248, type = 102, target = 00:16:0d:7b:35:5b
   LIFX Bridge Debug               LightSetColor command is for device: under walkway, payload = [('Color', (18432, 33343, 0, 47872)), ('Duration', 256011)]
   LIFX Bridge                     Set brightness of device 202061131 to 0
   LIFX Bridge Debug               lifxRespond, seq_num = 249, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               LightGet message, replying for: under walkway
   LIFX Bridge Debug               lifxRespond, seq_num = 250, type = 32, target = 00:00:00:00:00:00
   Sent INSTEON                    "under walkway" on to 0
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 249, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 250, type = 32, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 249, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 250, type = 32, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 249, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 250, type = 32, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 249, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 250, type = 32, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 249, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 250, type = 32, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 249, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 250, type = 32, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 249, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 250, type = 32, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 249, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 250, type = 32, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 249, type = 101, target = 00:00:00:00:00:00
   LIFX Bridge Debug               lifxRespond, skipping repeat seq_num = 250, type = 32, target = 00:00:00:00:00:00

Re: Harmony Hub "dim buttons"

PostPosted: Wed Feb 22, 2017 2:12 pm
by FlyingDiver
That sure looks like some bug in the Hub. There's only a couple relevant lines in the log:

Code: Select all
   LIFX Bridge Debug               LightSetPower command is for device: under walkway, payload = [('Power', 65535), ('Duration', 1000)]


'LightSetPower' is the command to turn an LIFX device on/off. 65535 is on, 0 is off.

Code: Select all
   LIFX Bridge Debug               LightSetColor command is for device: under walkway, payload = [('Color', (18432, 33343, 49920, 47969)), ('Duration', 256011)]


'LightSetColor' is the command to set the hue/saturation/brightness of a light. The third number is the brightness, which is what I use to map to dimmer values for Indigo. In this case, it's 49920, which is 49920/65535 * 100 = 76% on the dimmer:
Code: Select all
   Sent INSTEON                    "under walkway" on to 76


Later on, I get a command to set it to 0 brightness:

Code: Select all
   LIFX Bridge Debug               LightSetColor command is for device: under walkway, payload = [('Color', (18432, 33343, 0, 47872)), ('Duration', 256011)]
 .
 .
   Sent INSTEON                    "under walkway" on to 0


So as far as I can tell, the plugin is doing exactly what the Hub is asking for.

What I don't see anywhere is the Hub doing a "LightGetColor", which I would expect if it was trying to find out what the current brightness of the light is. It's possible I'm doing something in one of the response messages that's confusing the hub. I have an LIFX bulb I bought just to develop this plugin. I guess I could install it somewhere (again) and see if I can spot something in the traffic to it.

Re: Harmony Hub "dim buttons"

PostPosted: Sun Apr 16, 2017 3:20 pm
by DVDDave
I'm using the hub and plugin to control a simple X10 dimmer. There definitely seems to be a bug in the hub. When I connect the iOS app to the light, the hub seems to send the brightness to random values whether I use the slider in the app or the buttons on the remote. Even more interesting is that when I go off the device and back to it, the slider indicates the correct actual brightness setting.

Furthermore, the plugin seems fine since, as you say, it is doing the correct action based on what the hub is telling it.

I'll try to research it some more on the Harmony side and report the bug to Logitech.

--Dave

Re: Harmony Hub "dim buttons"

PostPosted: Tue Apr 18, 2017 7:02 pm
by DVDDave
DVDDave wrote:
I'll try to research it some more on the Harmony side and report the bug to Logitech.

Logitech did not seem to be aware of this kind of difficulty setting the brightness of Lifx devices. However, once they found out I was using an emulated device, they politely bowed out of the conversation.

Re: Harmony Hub "dim buttons"

PostPosted: Tue Apr 25, 2017 7:15 am
by Juggler
Frustrating! Thanks for trying.

Re: Harmony Hub "dim buttons"

PostPosted: Thu Jun 22, 2017 11:48 am
by chobo
Joe/all:

Just installed 7.0.2 last night and it looks like I'm experiencing the same unpredictable behavior with the dim buttons. I'm emulating/broadcasting a Leviton Z-wave dimmer and I've yet to identify a repeatable pattern. Has anyone had luck with this combination? Any thoughts on how to address? Thanks in advance!

chobo997

Re: Harmony Hub "dim buttons"

PostPosted: Thu Jul 20, 2017 9:24 am
by Woetjes
I've got the same strange behavior with dimming z-wave lights. Some lights won't dim and some dim with big intervals (92 - 64 - 8).