maximvelichko / pyvera

A python library to control devices via the Vera hub
GNU General Public License v2.0
26 stars 30 forks source link

Support for control of RGBWW devices such as Aeontec ZW098. #135

Open ackstorm23 opened 4 years ago

ackstorm23 commented 4 years ago

The Problem:

Pyvera does not appear to support the Aeontec ZW098, which has RGB as well as 2 white channels. (RGBWW?)

The native Colored Light Bulb device

No app needed, this detects on it's own.

{
  "Device_Num_4": {
    "states": [
      {
        "id": 1338,
        "service": "urn:upnp-org:serviceId:SwitchPower1",
        "variable": "Status",
        "value": "0"
      },
      {
        "id": 1339,
        "service": "urn:upnp-org:serviceId:Dimming1",
        "variable": "LoadLevelLast",
        "value": "100"
      },
      {
        "id": 1340,
        "service": "urn:upnp-org:serviceId:Dimming1",
        "variable": "LoadLevelTarget",
        "value": "0"
      },
      {
        "id": 1341,
        "service": "urn:upnp-org:serviceId:Dimming1",
        "variable": "LoadLevelStatus",
        "value": "0"
      },
      {
        "id": 1342,
        "service": "urn:upnp-org:serviceId:Dimming1",
        "variable": "TurnOnBeforeDim",
        "value": "0"
      },
      {
        "id": 1343,
        "service": "urn:micasaverde-com:serviceId:HaDevice1",
        "variable": "CommFailure",
        "value": "0"
      },
      {
        "id": 1344,
        "service": "urn:micasaverde-com:serviceId:HaDevice1",
        "variable": "CommFailureTime",
        "value": "0"
      },
      {
        "id": 1345,
        "service": "urn:micasaverde-com:serviceId:HaDevice1",
        "variable": "CommFailureAlarm",
        "value": "1575684931,0"
      },
      {
        "id": 1346,
        "service": "urn:micasaverde-com:serviceId:HaDevice1",
        "variable": "Configured",
        "value": "1"
      },
      {
        "id": 1347,
        "service": "urn:micasaverde-com:serviceId:HaDevice1",
        "variable": "sl_Hail",
        "value": "1"
      },
      {
        "id": 1348,
        "service": "urn:micasaverde-com:serviceId:HaDevice1",
        "variable": "ModeSetting",
        "value": "1:;2:F;3:F;4:F"
      },
      {
        "id": 1349,
        "service": "urn:micasaverde-com:serviceId:HaDevice1",
        "variable": "LastUpdate",
        "value": "1582339112"
      },
      {
        "id": 1350,
        "service": "urn:micasaverde-com:serviceId:HaDevice1",
        "variable": "FirstConfigured",
        "value": "1483049303"
      },
      {
        "id": 1351,
        "service": "urn:micasaverde-com:serviceId:HaDevice1",
        "variable": "PollRatings",
        "value": "5.00"
      },
      {
        "id": 1352,
        "service": "urn:micasaverde-com:serviceId:Color1",
        "variable": "SupportedColors",
        "value": "W,D,R,G,B"
      },
      {
        "id": 1353,
        "service": "urn:micasaverde-com:serviceId:Color1",
        "variable": "CurrentColor",
        "value": "0=0,1=0,2=255,3=255,4=255"
      },
      {
        "id": 1354,
        "service": "urn:micasaverde-com:serviceId:Color1",
        "variable": "TargetColor",
        "value": "0=0,1=0,2=255,3=255,4=255"
      },
      {
        "id": 1355,
        "service": "urn:micasaverde-com:serviceId:Color1",
        "variable": "ColorChannelPriorities",
        "value": "0>1>2,3,4"
      },
      {
        "id": 1356,
        "service": "urn:micasaverde-com:serviceId:ZWaveDevice1",
        "variable": "Capabilities",
        "value": "211,156,1,4,17,1,L,R,B,RS,|38:2,39,43,44,51,89,90,94,112,114,115,122,133,134,"
      },
      {
        "id": 1357,
        "service": "urn:micasaverde-com:serviceId:ZWaveDevice1",
        "variable": "PollNoReply",
        "value": "110579"
      },
      {
        "id": 1358,
        "service": "urn:micasaverde-com:serviceId:ZWaveDevice1",
        "variable": "NodeInfo",
        "value": "26,27,2b,2c,33,59,5a,5e,70,72,73,7a,85,86,"
      },
      {
        "id": 1359,
        "service": "urn:micasaverde-com:serviceId:ZWaveDevice1",
        "variable": "PlusInfo",
        "value": "1,5,0,6,0,6,0"
      },
      {
        "id": 1360,
        "service": "urn:micasaverde-com:serviceId:ZWaveDevice1",
        "variable": "FirmwareInfo",
        "value": "134,0,54238"
      },
      {
        "id": 1361,
        "service": "urn:micasaverde-com:serviceId:ZWaveDevice1",
        "variable": "AgiInfo",
        "value": "X"
      },
      {
        "id": 1362,
        "service": "urn:micasaverde-com:serviceId:ZWaveDevice1",
        "variable": "Neighbors",
        "value": "5,6,8,9,16,18,"
      },
      {
        "id": 1363,
        "service": "urn:micasaverde-com:serviceId:ZWaveDevice1",
        "variable": "LastReset",
        "value": "1483049302"
      },
      {
        "id": 1364,
        "service": "urn:micasaverde-com:serviceId:ZWaveDevice1",
        "variable": "AssociationNum",
        "value": "2"
      },
      {
        "id": 1365,
        "service": "urn:micasaverde-com:serviceId:ZWaveDevice1",
        "variable": "PollOk",
        "value": "645672"
      },
      {
        "id": 1366,
        "service": "urn:micasaverde-com:serviceId:ZWaveDevice1",
        "variable": "LastRouteUpdate",
        "value": "1593837621"
      },
      {
        "id": 1367,
        "service": "urn:micasaverde-com:serviceId:ZWaveDevice1",
        "variable": "LastNnu",
        "value": "1593759600,344"
      },
      {
        "id": 1368,
        "service": "urn:micasaverde-com:serviceId:ZWaveDevice1",
        "variable": "LastArr",
        "value": "1593759600,344"
      },
      {
        "id": 1369,
        "service": "urn:micasaverde-com:serviceId:ZWaveDevice1",
        "variable": "PollSettings",
        "value": "60"
      },
      {
        "id": 1370,
        "service": "urn:micasaverde-com:serviceId:ZWaveDevice1",
        "variable": "VersionInfo",
        "value": "3,4,5,1,5"
      },
      {
        "id": 1371,
        "service": "urn:micasaverde-com:serviceId:ZWaveDevice1",
        "variable": "ManufacturerInfo",
        "value": "134,259,98"
      },
      {
        "id": 1372,
        "service": "urn:micasaverde-com:serviceId:ZWaveDevice1",
        "variable": "AssociationGroups",
        "value": "1"
      },
      {
        "id": 1373,
        "service": "urn:micasaverde-com:serviceId:ZWaveDevice1",
        "variable": "VariablesSet",
        "value": "80-Send notifications (0=nothing 1=hail CC 2=basic CC report),1d,0"
      },
      {
        "id": 1374,
        "service": "urn:micasaverde-com:serviceId:ZWaveDevice1",
        "variable": "VariablesGet",
        "value": "80,0,"
      },
      {
        "id": 1375,
        "service": "urn:micasaverde-com:serviceId:ZWaveDevice1",
        "variable": "ConfiguredVariable",
        "value": "80-Send notifications (0=nothing 1=hail CC 2=basic CC report),1d,0"
      },
      {
        "id": 1376,
        "service": "urn:micasaverde-com:serviceId:ZWaveNetwork1",
        "variable": "LastPollSuccess",
        "value": "1593871492"
      },
      {
        "id": 1377,
        "service": "urn:micasaverde-com:serviceId:ZWaveNetwork1",
        "variable": "ConsecutivePollFails",
        "value": "0"
      }
    ],
    "Jobs": [],
    "PendingJobs": 0,
    "tooltip": {
      "display": 0
    },
    "status": -1
  },
  "Using_2G": 0,
  "LoadTime": 1593787768,
  "DataVersion": 787798845,
  "UserData_DataVersion": 787768032,
  "TimeStamp": 1593871556,
  "lights_on": 1,
  "lights_off": 8,
  "doors_locked": 0,
  "doors_unlocked": 0,
  "sensors_tripped": 0,
  "sensors_not_tripped": 4,
  "failed_devices": 2,
  "visible_devices": 26,
  "partitions_active": 0,
  "partitions_notactive": 0,
  "alerts": [
    {
      "PK_Device": 42,
      "Room": 7,
      "DeviceName": "Garage Door",
      "DeviceType": "urn:schemas-micasaverde-com:device:MotionSensor:1",
      "PK_Alert": "31233717652",
      "LocalDate": "2020-07-03 16:20:00",
      "EventType": 3,
      "SourceType": 3,
      "Argument": 0,
      "Filesize": 0,
      "Severity": 1,
      "LocalTimestamp": 1593811200,
      "Code": "DL_ARMEDTRIPPED",
      "NewValue": "1",
      "Description": "Garage Door",
      "Users": "1435811",
      "Server_Storage": "",
      "Key": "",
      "Icon": "",
      "PK_Store": "0"
    },
    {
      "PK_Device": 42,
      "Room": 7,
      "DeviceName": "Garage Door",
      "DeviceType": "urn:schemas-micasaverde-com:device:MotionSensor:1",
      "PK_Alert": "31233738692",
      "LocalDate": "2020-07-03 16:21:29",
      "EventType": 4,
      "SourceType": 4,
      "Argument": 0,
      "Filesize": 0,
      "Severity": 1,
      "LocalTimestamp": 1593811289,
      "Code": "DL_ARMEDTRIPPED",
      "NewValue": "0",
      "Description": "Garage Door",
      "Users": "",
      "Server_Storage": "",
      "Key": "",
      "Icon": "",
      "PK_Store": "0"
    },
    {
      "PK_Device": 5,
      "Room": 2,
      "DeviceName": "Front Door",
      "DeviceType": "urn:schemas-micasaverde-com:device:DoorSensor:1",
      "PK_Alert": "31233757992",
      "LocalDate": "2020-07-03 16:22:52",
      "EventType": 12,
      "SourceType": 3,
      "Argument": 0,
      "Filesize": 0,
      "Severity": 0,
      "LocalTimestamp": 1593811372,
      "Code": "",
      "NewValue": "1",
      "Description": "Front Door",
      "Users": "",
      "Server_Storage": "",
      "Key": "",
      "Icon": "burglar.png",
      "PK_Store": "0"
    },
    {
      "PK_Device": 5,
      "Room": 2,
      "DeviceName": "Front Door",
      "DeviceType": "urn:schemas-micasaverde-com:device:DoorSensor:1",
      "PK_Alert": "31233758122",
      "LocalDate": "2020-07-03 16:22:52",
      "EventType": 3,
      "SourceType": 3,
      "Argument": 0,
      "Filesize": 0,
      "Severity": 1,
      "LocalTimestamp": 1593811372,
      "Code": "DL_ARMEDTRIPPED",
      "NewValue": "1",
      "Description": "Front Door",
      "Users": "1435811",
      "Server_Storage": "",
      "Key": "",
      "Icon": "",
      "PK_Store": "0"
    },
    {
      "PK_Device": 5,
      "Room": 2,
      "DeviceName": "Front Door",
      "DeviceType": "urn:schemas-micasaverde-com:device:DoorSensor:1",
      "PK_Alert": "31233761712",
      "LocalDate": "2020-07-03 16:22:52",
      "EventType": 3,
      "SourceType": 3,
      "Argument": 0,
      "Filesize": 0,
      "Severity": 1,
      "LocalTimestamp": 1593811372,
      "Code": "DL_ARMEDTRIPPED",
      "NewValue": "0",
      "Description": "Front Door",
      "Users": "1435811",
      "Server_Storage": "",
      "Key": "",
      "Icon": "",
      "PK_Store": "0"
    },
    {
      "PK_Device": 42,
      "Room": 7,
      "DeviceName": "Garage Door",
      "DeviceType": "urn:schemas-micasaverde-com:device:MotionSensor:1",
      "PK_Alert": "31236534412",
      "LocalDate": "2020-07-03 18:35:34",
      "EventType": 16,
      "SourceType": 5,
      "Argument": 1,
      "Filesize": 0,
      "Severity": 5,
      "LocalTimestamp": 1593819334,
      "Code": "offline",
      "NewValue": "1",
      "Description": "Device NOT responding",
      "Users": "",
      "Server_Storage": "",
      "Key": "",
      "Icon": "error.png",
      "PK_Store": "0"
    },
    {
      "PK_Device": 5,
      "Room": 2,
      "DeviceName": "Front Door",
      "DeviceType": "urn:schemas-micasaverde-com:device:DoorSensor:1",
      "PK_Alert": "31238007442",
      "LocalDate": "2020-07-03 21:28:09",
      "EventType": 12,
      "SourceType": 3,
      "Argument": 0,
      "Filesize": 0,
      "Severity": 0,
      "LocalTimestamp": 1593829689,
      "Code": "",
      "NewValue": "1",
      "Description": "Front Door",
      "Users": "",
      "Server_Storage": "",
      "Key": "",
      "Icon": "burglar.png",
      "PK_Store": "0"
    },
    {
      "PK_Device": 5,
      "Room": 2,
      "DeviceName": "Front Door",
      "DeviceType": "urn:schemas-micasaverde-com:device:DoorSensor:1",
      "PK_Alert": "31238007542",
      "LocalDate": "2020-07-03 21:28:09",
      "EventType": 3,
      "SourceType": 3,
      "Argument": 0,
      "Filesize": 0,
      "Severity": 1,
      "LocalTimestamp": 1593829689,
      "Code": "DL_ARMEDTRIPPED",
      "NewValue": "1",
      "Description": "Front Door",
      "Users": "1435811",
      "Server_Storage": "",
      "Key": "",
      "Icon": "",
      "PK_Store": "0"
    },
    {
      "PK_Device": 5,
      "Room": 2,
      "DeviceName": "Front Door",
      "DeviceType": "urn:schemas-micasaverde-com:device:DoorSensor:1",
      "PK_Alert": "31238008542",
      "LocalDate": "2020-07-03 21:28:09",
      "EventType": 3,
      "SourceType": 3,
      "Argument": 0,
      "Filesize": 0,
      "Severity": 1,
      "LocalTimestamp": 1593829689,
      "Code": "DL_ARMEDTRIPPED",
      "NewValue": "0",
      "Description": "Front Door",
      "Users": "1435811",
      "Server_Storage": "",
      "Key": "",
      "Icon": "",
      "PK_Store": "0"
    },
    {
      "PK_Device": 42,
      "Room": 7,
      "DeviceName": "Garage Door",
      "DeviceType": "urn:schemas-micasaverde-com:device:MotionSensor:1",
      "PK_Alert": "31240911392",
      "LocalDate": "2020-07-04 02:01:36",
      "EventType": 16,
      "SourceType": 5,
      "Argument": 0,
      "Filesize": 0,
      "Severity": 5,
      "LocalTimestamp": 1593846096,
      "Code": "offline",
      "NewValue": "0",
      "Description": "Device responding again",
      "Users": "",
      "Server_Storage": "",
      "Key": "",
      "Icon": "error.png",
      "PK_Store": "0"
    }
  ],
  "ZWaveStatus": 1,
  "Mode": 1,
  "LocalTime": "2020-07-04 09:05:56 D"
}

RGB controller device

It can also be controlled via an app in the Vera app list. Name: RGB Controller App id : 6686

{
  "Device_Num_19": {
    "states": [
      {
        "id": 254,
        "service": "urn:upnp-org:serviceId:RGBController1",
        "variable": "Configured",
        "value": "1"
      },
      {
        "id": 255,
        "service": "urn:upnp-org:serviceId:RGBController1",
        "variable": "Message",
        "value": ""
      },
      {
        "id": 256,
        "service": "urn:upnp-org:serviceId:RGBController1",
        "variable": "DeviceType",
        "value": "AEO_ZW098-C55"
      },
      {
        "id": 257,
        "service": "urn:upnp-org:serviceId:RGBController1",
        "variable": "Color",
        "value": "#0000000061"
      },
      {
        "id": 258,
        "service": "urn:upnp-org:serviceId:RGBController1",
        "variable": "Debug",
        "value": "0"
      },
      {
        "id": 259,
        "service": "urn:upnp-org:serviceId:RGBController1",
        "variable": "LastResult",
        "value": "[\"Rainbow slow\",\"Strobe red\",\"Strobe blue\",\"Rainbow fast\",\"LAPD\"]"
      },
      {
        "id": 260,
        "service": "urn:upnp-org:serviceId:RGBController1",
        "variable": "DeviceId",
        "value": "4"
      },
      {
        "id": 261,
        "service": "urn:upnp-org:serviceId:RGBController1",
        "variable": "InternalAnimations",
        "value": "{\"Rainbow slow\": {\"transitionStyle\":0 ,\"displayMode\":1, \"changeSpeed\":127, \"residenceTime\":127},\"Rainbow fast\": {\"transitionStyle\":0 ,\"displayMode\":1, \"changeSpeed\":5, \"residenceTime\":5},\"Strobe red\": {\"transitionStyle\":2 , \"displayMode\":2, \"changeSpeed\":0, \"residenceTime\":0, \"colorTransition\":[0, 1]},\"Strobe blue\": {\"transitionStyle\":2 , \"displayMode\":2, \"changeSpeed\":0, \"residenceTime\":0, \"colorTransition\":[0, 6]},\"LAPD\": {\"transitionStyle\":1 , \"displayMode\":2, \"changeSpeed\":0, \"residenceTime\":0, \"colorTransition\":[0, 1, 6]}}"
      },
      {
        "id": 262,
        "service": "urn:upnp-org:serviceId:SwitchPower1",
        "variable": "Status",
        "value": "0"
      },
      {
        "id": 263,
        "service": "urn:micasaverde-com:serviceId:HaDevice1",
        "variable": "ModeSetting",
        "value": "1:;2:;3:;4:"
      },
      {
        "id": 264,
        "service": "urn:micasaverde-com:serviceId:HaDevice1",
        "variable": "Configured",
        "value": "0"
      }
    ],
    "Jobs": [],
    "PendingJobs": 0,
    "tooltip": {
      "display": 0
    },
    "status": -1
  },
  "Using_2G": 0,
  "LoadTime": 1593787768,
  "DataVersion": 787798879,
  "UserData_DataVersion": 787768032,
  "TimeStamp": 1593871656,
  "lights_on": 1,
  "lights_off": 8,
  "doors_locked": 0,
  "doors_unlocked": 0,
  "sensors_tripped": 0,
  "sensors_not_tripped": 4,
  "failed_devices": 2,
  "visible_devices": 26,
  "partitions_active": 0,
  "partitions_notactive": 0,
  "alerts": [
    {
      "PK_Device": 42,
      "Room": 7,
      "DeviceName": "Garage Door",
      "DeviceType": "urn:schemas-micasaverde-com:device:MotionSensor:1",
      "PK_Alert": "31233717652",
      "LocalDate": "2020-07-03 16:20:00",
      "EventType": 3,
      "SourceType": 3,
      "Argument": 0,
      "Filesize": 0,
      "Severity": 1,
      "LocalTimestamp": 1593811200,
      "Code": "DL_ARMEDTRIPPED",
      "NewValue": "1",
      "Description": "Garage Door",
      "Users": "1435811",
      "Server_Storage": "",
      "Key": "",
      "Icon": "",
      "PK_Store": "0"
    },
    {
      "PK_Device": 42,
      "Room": 7,
      "DeviceName": "Garage Door",
      "DeviceType": "urn:schemas-micasaverde-com:device:MotionSensor:1",
      "PK_Alert": "31233738692",
      "LocalDate": "2020-07-03 16:21:29",
      "EventType": 4,
      "SourceType": 4,
      "Argument": 0,
      "Filesize": 0,
      "Severity": 1,
      "LocalTimestamp": 1593811289,
      "Code": "DL_ARMEDTRIPPED",
      "NewValue": "0",
      "Description": "Garage Door",
      "Users": "",
      "Server_Storage": "",
      "Key": "",
      "Icon": "",
      "PK_Store": "0"
    },
    {
      "PK_Device": 5,
      "Room": 2,
      "DeviceName": "Front Door",
      "DeviceType": "urn:schemas-micasaverde-com:device:DoorSensor:1",
      "PK_Alert": "31233757992",
      "LocalDate": "2020-07-03 16:22:52",
      "EventType": 12,
      "SourceType": 3,
      "Argument": 0,
      "Filesize": 0,
      "Severity": 0,
      "LocalTimestamp": 1593811372,
      "Code": "",
      "NewValue": "1",
      "Description": "Front Door",
      "Users": "",
      "Server_Storage": "",
      "Key": "",
      "Icon": "burglar.png",
      "PK_Store": "0"
    },
    {
      "PK_Device": 5,
      "Room": 2,
      "DeviceName": "Front Door",
      "DeviceType": "urn:schemas-micasaverde-com:device:DoorSensor:1",
      "PK_Alert": "31233758122",
      "LocalDate": "2020-07-03 16:22:52",
      "EventType": 3,
      "SourceType": 3,
      "Argument": 0,
      "Filesize": 0,
      "Severity": 1,
      "LocalTimestamp": 1593811372,
      "Code": "DL_ARMEDTRIPPED",
      "NewValue": "1",
      "Description": "Front Door",
      "Users": "1435811",
      "Server_Storage": "",
      "Key": "",
      "Icon": "",
      "PK_Store": "0"
    },
    {
      "PK_Device": 5,
      "Room": 2,
      "DeviceName": "Front Door",
      "DeviceType": "urn:schemas-micasaverde-com:device:DoorSensor:1",
      "PK_Alert": "31233761712",
      "LocalDate": "2020-07-03 16:22:52",
      "EventType": 3,
      "SourceType": 3,
      "Argument": 0,
      "Filesize": 0,
      "Severity": 1,
      "LocalTimestamp": 1593811372,
      "Code": "DL_ARMEDTRIPPED",
      "NewValue": "0",
      "Description": "Front Door",
      "Users": "1435811",
      "Server_Storage": "",
      "Key": "",
      "Icon": "",
      "PK_Store": "0"
    },
    {
      "PK_Device": 42,
      "Room": 7,
      "DeviceName": "Garage Door",
      "DeviceType": "urn:schemas-micasaverde-com:device:MotionSensor:1",
      "PK_Alert": "31236534412",
      "LocalDate": "2020-07-03 18:35:34",
      "EventType": 16,
      "SourceType": 5,
      "Argument": 1,
      "Filesize": 0,
      "Severity": 5,
      "LocalTimestamp": 1593819334,
      "Code": "offline",
      "NewValue": "1",
      "Description": "Device NOT responding",
      "Users": "",
      "Server_Storage": "",
      "Key": "",
      "Icon": "error.png",
      "PK_Store": "0"
    },
    {
      "PK_Device": 5,
      "Room": 2,
      "DeviceName": "Front Door",
      "DeviceType": "urn:schemas-micasaverde-com:device:DoorSensor:1",
      "PK_Alert": "31238007442",
      "LocalDate": "2020-07-03 21:28:09",
      "EventType": 12,
      "SourceType": 3,
      "Argument": 0,
      "Filesize": 0,
      "Severity": 0,
      "LocalTimestamp": 1593829689,
      "Code": "",
      "NewValue": "1",
      "Description": "Front Door",
      "Users": "",
      "Server_Storage": "",
      "Key": "",
      "Icon": "burglar.png",
      "PK_Store": "0"
    },
    {
      "PK_Device": 5,
      "Room": 2,
      "DeviceName": "Front Door",
      "DeviceType": "urn:schemas-micasaverde-com:device:DoorSensor:1",
      "PK_Alert": "31238007542",
      "LocalDate": "2020-07-03 21:28:09",
      "EventType": 3,
      "SourceType": 3,
      "Argument": 0,
      "Filesize": 0,
      "Severity": 1,
      "LocalTimestamp": 1593829689,
      "Code": "DL_ARMEDTRIPPED",
      "NewValue": "1",
      "Description": "Front Door",
      "Users": "1435811",
      "Server_Storage": "",
      "Key": "",
      "Icon": "",
      "PK_Store": "0"
    },
    {
      "PK_Device": 5,
      "Room": 2,
      "DeviceName": "Front Door",
      "DeviceType": "urn:schemas-micasaverde-com:device:DoorSensor:1",
      "PK_Alert": "31238008542",
      "LocalDate": "2020-07-03 21:28:09",
      "EventType": 3,
      "SourceType": 3,
      "Argument": 0,
      "Filesize": 0,
      "Severity": 1,
      "LocalTimestamp": 1593829689,
      "Code": "DL_ARMEDTRIPPED",
      "NewValue": "0",
      "Description": "Front Door",
      "Users": "1435811",
      "Server_Storage": "",
      "Key": "",
      "Icon": "",
      "PK_Store": "0"
    },
    {
      "PK_Device": 42,
      "Room": 7,
      "DeviceName": "Garage Door",
      "DeviceType": "urn:schemas-micasaverde-com:device:MotionSensor:1",
      "PK_Alert": "31240911392",
      "LocalDate": "2020-07-04 02:01:36",
      "EventType": 16,
      "SourceType": 5,
      "Argument": 0,
      "Filesize": 0,
      "Severity": 5,
      "LocalTimestamp": 1593846096,
      "Code": "offline",
      "NewValue": "0",
      "Description": "Device responding again",
      "Users": "",
      "Server_Storage": "",
      "Key": "",
      "Icon": "error.png",
      "PK_Store": "0"
    }
  ],
  "ZWaveStatus": 1,
  "Mode": 1,
  "LocalTime": "2020-07-04 09:07:36 D"
}
pavoni commented 4 years ago

It would need a developer with one of these devices to add support. Contributions welcome.

vangorra commented 4 years ago

I don't have the device but will see what I can do.

ackstorm23 commented 4 years ago

I don't have the device but will see what I can do.

I am not a developer but I will do my best to assist you.

vangorra commented 4 years ago

@ackstorm23 Could you provide the device info for this light? This URL will return all devices (and a lot more) but I only need the object specific to the ligh. http://10.40.8.245:3480/data_request?id=sdata&output_format=json

For example, the device info for my upstairs hallway looks like this:

    {
      "name": "Upstairs hallway",
      "altid": "25",
      "id": 73,
      "category": 2,
      "subcategory": 0,
      "room": 0,
      "parent": 1,
      "configured": "1",
      "commFailure": "0",
      "level": "0",
      "status": "0",
      "state": -1,
      "comment": ""
    },

This is stored in a devices array in the response object.

ackstorm23 commented 4 years ago

The native device as it detects without additional apps

{
         "name":"Colored Light Bulb",
         "altid":"3",
         "id":4,
         "category":2,
         "subcategory":4,
         "room":3,
         "parent":1,
         "commFailure":"0",
         "configured":"1",
         "level":"57",
         "status":"1",
         "state":-1,
         "comment":""

},

The device as it is seen by the RGB Device Controller device, which gets created by the Vera app of the same name.

{
         "name":"RGB controller devic",
         "altid":"",
         "id":19,
         "category":3,
         "subcategory":-1,
         "room":3,
         "parent":0,
         "message":"",
         "configured":"0",
         "lastresult":"[\"Rainbow slow\",\"Strobe red\",\"Strobe blue\",\"Rainbow fast\",\"LAPD\"]",
         "color":"#000000002F",
         "state":-1,
         "comment":"",
         "status":"1"
      },
ackstorm23 commented 4 years ago

The RGB Controller Device found in the Vera UI under Apps, can control more than just this Bulb. It claims to support:

It might introduce RGBW support for Vera across a number of different devices, and as I've seen posts for Home Assistant not being able to control the white channels on many of the above devices. If this introduces uniform parameters for controlling multiple RGBW devices/vendors, this might be a wiser strategy to support that instead.

However that device does not detect as a colored bulb at all in Home Assistant right now, only as a switch and if you force it to be a light entity in the integration it shows up as a regular non-color dimmer.

vangorra commented 4 years ago

I'm not particularly concerned with the RGB controller. There is enough information on the bulb itself to merit color and white controls.