HUE vs Z-WAVE colour control Topic is solved

Moderator: leecollings

Post Reply
User avatar
EdddieN
Posts: 510
Joined: Wednesday 16 November 2016 11:31
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: Scotland
Contact:

HUE vs Z-WAVE colour control

Post by EdddieN »

Hello,

I have a mysterious case and I have no idea why. I have a few Philips HUE bulbs and those I can change the colour on HomeKit. However the Z-Wave ones do not show that option on HomeKit, only the dimer option.

I have looked at their JSON output and it is identical.

HUE

Code: Select all

{
   "ActTime" : 1545500105,
   "AstrTwilightEnd" : "18:08",
   "AstrTwilightStart" : "06:25",
   "CivTwilightEnd" : "16:35",
   "CivTwilightStart" : "07:59",
   "DayLength" : "07:03",
   "NautTwilightEnd" : "17:23",
   "NautTwilightStart" : "07:10",
   "ServerTime" : "2018-12-22 17:35:05",
   "SunAtSouth" : "12:05",
   "Sunrise" : "08:45",
   "Sunset" : "15:48",
   "app_version" : "4.10241",
   "result" : [
      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 255,
         "Color" : "{\"b\":89,\"cw\":0,\"g\":142,\"m\":3,\"r\":255,\"t\":0,\"ww\":0}",
         "CustomImage" : 0,
         "Data" : "Set Color",
         "Description" : "",
         "DimmerType" : "abs",
         "Favorite" : 0,
         "HardwareID" : 4,
         "HardwareName" : "Hue Bridge",
         "HardwareType" : "Philips Hue Bridge",
         "HardwareTypeVal" : 38,
         "HaveDimmer" : true,
         "HaveGroupCmd" : false,
         "HaveTimeout" : false,
         "ID" : "00000013",
         "Image" : "Light",
         "IsSubDevice" : false,
         "LastUpdate" : "2018-12-22 15:48:02",
         "Level" : 51,
         "LevelInt" : 51,
         "MaxDimLevel" : 100,
         "Name" : "Sofa",
         "Notifications" : "false",
         "PlanID" : "12",
         "PlanIDs" : [ 12, 4 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "Status" : "Set Level: 51 %",
         "StrParam1" : "",
         "StrParam2" : "",
         "SubType" : "RGBWW",
         "SwitchType" : "Dimmer",
         "SwitchTypeVal" : 7,
         "Timers" : "true",
         "Type" : "Color Switch",
         "TypeImg" : "dimmer",
         "Unit" : 1,
         "Used" : 1,
         "UsedByCamera" : false,
         "XOffset" : "0",
         "YOffset" : "0",
         "idx" : "942"
      }
   ],
   "status" : "OK",
   "title" : "Devices"
}
and Z-Wave

Code: Select all

{
   "ActTime" : 1545500136,
   "AstrTwilightEnd" : "18:08",
   "AstrTwilightStart" : "06:25",
   "CivTwilightEnd" : "16:35",
   "CivTwilightStart" : "07:59",
   "DayLength" : "07:03",
   "NautTwilightEnd" : "17:23",
   "NautTwilightStart" : "07:10",
   "ServerTime" : "2018-12-22 17:35:36",
   "SunAtSouth" : "12:05",
   "Sunrise" : "08:45",
   "Sunset" : "15:48",
   "app_version" : "4.10241",
   "result" : [
      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 255,
         "Color" : "{\"b\":162,\"cw\":0,\"g\":0,\"m\":3,\"r\":255,\"t\":0,\"ww\":0}",
         "CustomImage" : 0,
         "Data" : "Set Level",
         "Description" : "",
         "DimmerType" : "abs",
         "Favorite" : 0,
         "HardwareID" : 2,
         "HardwareName" : "RazzBerry card",
         "HardwareType" : "OpenZWave USB",
         "HardwareTypeVal" : 21,
         "HaveDimmer" : true,
         "HaveGroupCmd" : false,
         "HaveTimeout" : false,
         "ID" : "00007665",
         "Image" : "Light",
         "IsSubDevice" : false,
         "LastUpdate" : "2018-12-21 20:42:31",
         "Level" : 70,
         "LevelInt" : 70,
         "MaxDimLevel" : 100,
         "Name" : "Ball",
         "Notifications" : "false",
         "PlanID" : "12",
         "PlanIDs" : [ 12 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "Status" : "Set Level: 70 %",
         "StrParam1" : "",
         "StrParam2" : "",
         "SubType" : "RGBWWZ",
         "SwitchType" : "Dimmer",
         "SwitchTypeVal" : 7,
         "Timers" : "false",
         "Type" : "Color Switch",
         "TypeImg" : "dimmer",
         "Unit" : 1,
         "Used" : 1,
         "UsedByCamera" : false,
         "XOffset" : "0",
         "YOffset" : "0",
         "idx" : "997"
      }
   ],
   "status" : "OK",
   "title" : "Devices"
}
Any idea why HomeKit would not show the colour option on the Z-Wave one since both are presented the same to eDomoticz?
11101101 - www.machinon.com
User avatar
EdddieN
Posts: 510
Joined: Wednesday 16 November 2016 11:31
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: Scotland
Contact:

Re: HUE vs Z-WAVE colour control

Post by EdddieN »

Could the subtype be creating problems?

Hue: shows RGBWW and the Z-Wave shows RGBWWZ
11101101 - www.machinon.com
User avatar
EdddieN
Posts: 510
Joined: Wednesday 16 November 2016 11:31
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: Scotland
Contact:

Re: HUE vs Z-WAVE colour control

Post by EdddieN »

Nothing?

Even HomeKit recognises it as colour switch... this is puzzling me. Image
11101101 - www.machinon.com
User avatar
Marci
Posts: 531
Joined: Friday 22 January 2016 18:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Wakefield, West Yorkshire UK
Contact:

Re: HUE vs Z-WAVE colour control

Post by Marci »

Replace homebridge-edomoticz/lib/domoticz_accessory.js with https://raw.githubusercontent.com/Patch ... cessory.js

Restart homebridge & test Z-Wave devices (may need to dump persist data from ~/.homebridge/persist/, but try without doing so first, but give it a minute or two to refresh everything)
Extended Domoticz homebridge-plugin for latest Homebridge - adds temp/humidity/pressure sensors, power consumption sensors, DarkSkies virtual weather station support, YouLess Meter support, general % usage support & switch/lamp status checking!
User avatar
EdddieN
Posts: 510
Joined: Wednesday 16 November 2016 11:31
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: Scotland
Contact:

Re: HUE vs Z-WAVE colour control

Post by EdddieN »

GREAT!! That did the trick!

I did not need to to dump persist data to make it work. Thank so much!!
11101101 - www.machinon.com
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests