Ha-bridge: [5.1.0] Harmony commands not being split into on/dim

Created on 14 Dec 2017  路  18Comments  路  Source: bwssytems/ha-bridge

First, Thanks for fixing pairing issue in 5.1.0. Working pretty well now! But with the following oddity:

The "On Items" field is being completely ignored. Only "dim items" and "off items" are being used.

So, for example, I have the "on items" field empty and the necessary JSON in the "dim items" field and when pressing the Harmony button, the scene turns on perfectly. Off works as well.

However, my ideal functioning would be to have the Harmony button activate the "on items" field and then in the "dim items" field I could have a Hue passthru command so the brightness rocker on the Harmony Remote would function.

Additional info: When entering the passthru command into "dim items" Harmony does turn on the light and the rocker works as well. But of course, can't set a scene this way.

Hopefully this makes sense. If you want me to paste my exact config for all the fields, let me know!

enhancement question

All 18 comments

You can turn on debug for the HueMulator class and see what is being called. Make sure you hit the 'UpdateLogLevels' button.

As a guess here, this may be like another app that we saw that only calls dim url as ti is always sending that call. You can always use that as your on if that is the case.

Ya, have tried changing debug level, but wont change for some reason. Always shows info, even the green box appears saying the log level was changed, but it doesn't :\

@bwssytems
I have the same log level chagne issue, I can't get the log level to change for anything, but get the green confirmation that they did.

What browser are you all using? I use Chrome and have no issues.

Also, if using Chrome, you will need to Shift F5 to replace your cache as it is super aggressive on caching older pages.

Oh, just Trace isn't working for anything Im testing. All other levels activate. Chrome, win7

Edit: Maybe additional problem? https://i.imgur.com/YysshLF.jpg

Always Chrome, even tried the CTRL + F5 to clear the cache. Can confirm it's just TRACE that I can't seem to get to work too.

Ahh, glad that the debugging is not an issue. Not all classes implement TRACE. Some of the packages that I pull in from others do, but all of mine only implement DEBUG.

Good info, thanks!

I've thought of a potential way to get harmony's on, dim, and off functions to work properly, but it would likely need to be coded on your end.

When turning a device on or using the rocker switch, harmony always sends an empty color command, on command, and a specific brightness level.

Examples:
On Pressed: "{"xy":[0,0],"on":true,"bri":50}"
Rocker switch up pressed: "{"xy":[0,0],"on":true,"bri":75}"
Off Pressed: {"on":false}

So, "on" and "dim" are currently the same, hence why only "Dim Items" is used in habridge. What we need to do is use some variables to tell habridge how to interpret what harmony is trying to do, so we can get "On Items" separated from "Dim Items."

Each habridge device could have a variable "isON" that is set to "false" by default and then when harmony sends its first PUT, the "xy" and "bri" could be ignored and only "on" would be acknowledged and could activate the call in "On Items" field in habridge. Also, the variable would change to "isON"=true.

Now, when harmony sends its next PUT, the "bri" value would be accepted and would apply to the "Dim Items field."

When harmony sends {"on":false} the variable for that device would change back to "isON"=false.

This would enable what I was hoping to do: Activate a Scene via http PUT in "On Items" and use hue passthru for "Dim Items."

My knowledge is limited, so I'm just guessing at how this could work.

Thanks for doing the leg work. We could put that in there as an enhancement.

Sweeeet! Look forward to it. :)

I will call the switch in the device as Send On with first Dim.

sweeeet. That will be an optional toggle, right? Just in case it alters the behavior of stuff people already have setup.

it is, you can try it right now in th release candidate

where is the toggle located? running rc3, but dont see it in the Edit Button area or Bridge Control. Also, About still shows 2.1.0, but confirmed im running RC3 via "htop."

You have two versions running

weird that the proc didnt show. either way, another reboot fixed it right up. will report findings in 5.2 ticket. thanks for the dummy check.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rmohsenn picture rmohsenn  路  5Comments

sieropoli picture sieropoli  路  4Comments

JsChiSurf picture JsChiSurf  路  6Comments

oktane83 picture oktane83  路  15Comments

napcs picture napcs  路  8Comments