nicoduj / homebridge-harmony

Harmony websocket plugin for homebridge
The Unlicense
215 stars 23 forks source link

[Follow up] Zigbee & ZWave devices Help #357

Closed Mattapoisett closed 3 years ago

Mattapoisett commented 3 years ago

Thank you Nicolas. I have made progress by making devices' "On/Off" switches appear in the Home app, though not what they are named in the Harmony app. For example, what I have labeled "Floor Lamp", is listed as "zwave4" and "Smart Things Outlet 1" is "zigbee0x21B7" That's fine. However, I can't seem to get the dimmers to show up for the plugs which have them. I do see the "brightness" function update in HomeBridge when I change it through the Harmony App. I'm not sure what I'm overlooking.

Here's what I think is the relevant log for my example zwave4

[3/15/2021, 10:21:20 AM] [Harmony Hub] (Harmony Hub)INFO - getting home controls ...

[3/15/2021, 10:21:21 AM] [Harmony Hub] (Harmony Hub)INFO - got home controls : {"cmd":"harmony.automation?getstate","code":200,"id":"0.22116405160595698","msg":"OK","data":{"zigbee0x2EAE":{"status":0,"on":false,"batteryLevel":-1},"zwave2":{"status":2,"on":false,"statusMsg":"nocon"},"zigbee0x21B7":{"status":2,"batteryLevel":-1,"statusMsg":"nocon","on":false},"zwave4":{"status":0,"brightness":255,"on":true},"zwave3":{"status":2,"on":false,"statusMsg":"nocon"}}}

[3/15/2021, 2:54:49 PM] [Harmony Hub] INFO - onMessage : Refreshing Home Automation Switch {"zwave4":{"status":0,"brightness":255,"on":false}}

[3/15/2021, 2:54:49 PM] [Harmony Hub] (Harmony Hub)INFO - refreshHomeSwitch - Refreshing home switch zwave4 to false

[3/15/2021, 2:54:52 PM] [Harmony Hub] INFO - onMessage : Refreshing Home Automation Switch {"zwave4":{"status":0,"brightness":255,"on":true}}

[3/15/2021, 2:54:52 PM] [Harmony Hub] (Harmony Hub)INFO - refreshHomeSwitch - Refreshing home switch zwave4 to true

[3/15/2021, 2:55:05 PM] [Harmony Hub] INFO - onMessage : Refreshing Home Automation Switch {"zwave4":{"status":0,"brightness":106,"on":true}}

[3/15/2021, 2:55:05 PM] [Harmony Hub] (Harmony Hub)INFO - refreshHomeSwitch - Refreshing home switch zwave4 to true

[3/15/2021, 2:55:16 PM] [Harmony Hub] INFO - onMessage : Refreshing Home Automation Switch {"zwave4":{"status":0,"brightness":164,"on":true}}

[3/15/2021, 2:55:16 PM] [Harmony Hub] (Harmony Hub)INFO - refreshHomeSwitch - Refreshing home switch zwave4 to true

[3/15/2021, 2:55:20 PM] [Harmony Hub] INFO - onMessage : Refreshing Home Automation Switch {"zwave4":{"status":0,"brightness":164,"on":false}}

HomeBridge shows the devices, their capabilities, and their state

First I tried:

{ "name": "Harmony Hub", "hubIP": "192.168...", "hubName": "Harmony Hub", "publishGeneralMuteSwitch": true, "publishGeneralVolumeSlider": true, "linkVolumeControlToTV": true, "homeControlsToPublishAsAccessoriesSwitch": [ "zwave3", "zwave2", "zwave4;on", "zwave4;brightness" ],

    "platform": "HarmonyHubWebSocket"
},

That made the switch in the home app disappear

{ "name": "Harmony Hub", "hubIP": "192.168...., "hubName": "Harmony Hub", "publishGeneralMuteSwitch": true, "publishGeneralVolumeSlider": true, "linkVolumeControlToTV": true, "homeControlsToPublishAsAccessoriesSwitch": [ "zwave3", "zwave2", "zwave4" ], "devicesToPublishAsAccessoriesSwitch": [ "zwave4;on", "zwave4;brightness"

],

"platform": "HarmonyHubWebSocket"

},

That made the switch come back, but still no dimmer. Also, I made sure the plug is categorized as a light so the Home app will allow for a dimmer, which I think is they way it's supposed to be set up.

What should I be looking to do next?

nicoduj commented 3 years ago

Hi, unfortunately I don't support sliders for commands, don't even know if it is possible to detect that the light is a dimmer ... (don't have such device so hard to test !)