Reply To: Lutron ZigBee 4-button switch compatibility? 2017-12-21T03:42:44+00:00

HOME Forums Software iSmartenit Lutron ZigBee 4-button switch compatibility? Reply To: Lutron ZigBee 4-button switch compatibility?

Anonymous
Post count: 19

Let me know if you need help with anything else.

Yes, I guess I do. I’ve been banging my head against this for a bit without knowing exactly what the problem is. I think it comes down to my lack of understanding the JSON. 🙂

Currently, this is what my action looks like:

{
"active": false,
"conditions": [
{
"active": true,
"id": 57401,
"name": "ButtonOnPushed",
"path": "device/16022/comp1/OnOff/get/state",
"start": 1458269124,
"val": "On"
}
],
"effects": [
{
"active": true,
"id": 5427,
"name": "Turn on Desk Bulb 2",
"params": {},
"path": "devices/16645/comp1/OnOff/On"
},
{
"active": true,
"id": 19401,
"name": "Turn on Desk Bulb 1",
"params": {},
"path": "devices/42015/comp1/OnOff/On"
}
],
"id": 17694,
"image": "",
"name": "Turn On Upstairs Desk Lights"
}

And here are the capabilities of the Lutron Remote:

{
"components": [
{
"capabilities": [
{
"Basic": [
{
"get": [
"ZCLVersion",
"ApplicationVersion",
"StackVersion",
"HWVersion",
"ManufacturerName",
"ModelID",
"DateCode",
"PowerSource",
"LocationDescription",
"PhysicalEnviroment",
"DeviceEnabled",
"AlarmMask",
"DisableLocalConfig"
]
},
"status",
"ResetToFactoryDefaults"
]
},
{
"EVSE": [
{
"get": [
"ChargerStatus",
"ChargerFault",
"ChargeLevel",
"SessionId",
"SessionTime",
"SessionSummationDelivered"
]
},
"status",
{
"StartCharge": [
{
"ID": "QByteArray"
}
]
},
{
"StopCharge": [
{
"ID": "QByteArray"
}
]
},
{
"SetCharge": [
{
"Level": "ushort"
}
]
},
"GetStatus",
"GetInfo"
]
},
{
"Identify": [
{
"get": [
"IdentifyTime"
]
},
"status",
{
"Identify": [
{
"IdentifyTime": "ushort"
}
]
},
"IdentifyQuery"
]
},
{
"OnOff": [
{
"get": [
"state"
]
},
"status",
"Off",
"On",
"Toggle"
]
},
{
"LevelControl": [
{
"get": [
"CurrentLevel",
"RemainingTime",
"OnOffTransitionTime",
"OnLevel"
]
},
"status",
{
"MoveToLevel": [
{
"TransitionTime": "ushort"
},
{
"Level": "uchar"
}
]
},
{
"Move": [
{
"Rate": "uchar"
},
{
"Mode": "uchar"
}
]
},
{
"Step": [
{
"Mode": "uchar"
},
{
"Size": "uchar"
},
{
"TransitionTime": "ushort"
}
]
},
"Stop",
{
"MoveToLevelWOnOff": [
{
"TransitionTime": "ushort"
},
{
"Level": "uchar"
}
]
},
{
"MoveWOnOf": [
{
"Rate": "uchar"
},
{
"Mode": "uchar"
}
]
},
{
"StepWOnOf": [
{
"Mode": "uchar"
},
{
"Size": "uchar"
},
{
"TransitionTime": "ushort"
}
]
},
"StopWOnOf"
]
},
{
"Basic": [
{
"get": [
"ZCLVersion",
"ApplicationVersion",
"StackVersion",
"HWVersion",
"ManufacturerName",
"ModelID",
"DateCode",
"PowerSource",
"LocationDescription",
"PhysicalEnviroment",
"DeviceEnabled",
"AlarmMask",
"DisableLocalConfig"
]
},
"status",
"ResetToFactoryDefaults"
]
},
{
"EVSE": [
{
"get": [
"ChargerStatus",
"ChargerFault",
"ChargeLevel",
"SessionId",
"SessionTime",
"SessionSummationDelivered"
]
},
"status",
{
"StartCharge": [
{
"ID": "QByteArray"
}
]
},
{
"StopCharge": [
{
"ID": "QByteArray"
}
]
},
{
"SetCharge": [
{
"Level": "ushort"
}
]
},
"GetStatus",
"GetInfo"
]
}
],
"id": "comp1"
}
],
"id": 16022,
"image": "default.png",
"model": "LZL4BWHL01 Remote",
"name": "LZL4BWHL01 Remote"
}

As you can (hopefully) see, I am simply trying to detect when the “On” button is pushed on the remote and turn on two lights. However, when I set the var “active” to true for the action, I get the following showing up in the log file:

Mar 18 11:02:25 cush ZBPServer[15767]: Incoming connection.
Mar 18 11:02:25 cush ZBPServer[15767]: Scheduler:: socket added
Mar 18 11:02:25 cush ZBPServer[15767]: http_parser:: PUT /actions/17694
Mar 18 11:02:25 cush ZBPServer[15767]: http_parser:: body: {“active”:true}
Mar 18 11:02:25 cush ZBPServer[15767]: Scheduler:: socket removed
Mar 18 11:02:26 cush ZBPServer[15767]: DeviceConditionHelper::evalCond: Attribute not found in dev cache
Mar 18 11:02:26 cush ZBPServer[15767]: DeviceConditionHelper::evalCond: Attribute not found in dev cache
Mar 18 11:02:26 cush ZBPServer[15767]: DeviceConditionHelper::evalCond: Attribute not found in dev cache
Mar 18 11:02:27 cush ZBPServer[15767]: DeviceConditionHelper::evalCond: Attribute not found in dev cache
Mar 18 11:02:27 cush ZBPServer[15767]: DeviceConditionHelper::evalCond: Attribute not found in dev cache
Mar 18 11:02:28 cush ZBPServer[15767]: DeviceConditionHelper::evalCond: Attribute not found in dev cache
Mar 18 11:02:28 cush ZBPServer[15767]: DeviceConditionHelper::evalCond: Attribute not found in dev cache
Mar 18 11:02:28 cush ZBPServer[15767]: DeviceConditionHelper::evalCond: Attribute not found in dev cache
Mar 18 11:02:29 cush ZBPServer[15767]: DeviceConditionHelper::evalCond: Attribute not found in dev cache
Mar 18 11:02:29 cush ZBPServer[15767]: Incoming connection.
Mar 18 11:02:29 cush ZBPServer[15767]: Scheduler:: socket added
Mar 18 11:02:29 cush ZBPServer[15767]: http_parser:: PUT /actions/17694
Mar 18 11:02:29 cush ZBPServer[15767]: http_parser:: body: {“active”:false}
Mar 18 11:02:29 cush ZBPServer[15767]: Scheduler:: socket removed

Do you know of a good (preferably online) resource for my understanding and correctly parsing the JSON to come up with the correct “path” to use in my action condition?

Thanks,
😀