I got this driver from SmarthomeDB for their curtain controller device. I think they did a real quick and dirty conversion from their Smartthings code. It seems buggy, though. I asked them for support and they kinda just stopped responding. Ugh.
The code does actually work. I can control the curtains. However it's really difficult to do automation rules because of some oddities. I was hoping I could get some help fixing up the driver to resolve the issues below. The driver code is available here.
- The On/Off state always reports as NULL
- The Closed/Open state isn't quite right. It checks for CLOSED, but it reports CLOSE causing a incorrected False in the Rule Machine logic.
- It spams the log with these messages every few minutes. (I don't know if this is a problem or not.)
dev:5452020-10-03 01:47:18.755 pm warnjava.lang.NullPointerException: Cannot invoke method endsWith() on null object
dev:5452020-10-03 01:47:18.751 pm debug[raw:catchall: 0000 0013 00 00 0040 00 76FE 00 00 0000 00 00 00FE76D3A0AE14004B12008E, profileId:0000, clusterId:0013, clusterInt:19, sourceEndpoint:00, destinationEndpoint:00, options:0040, messageType:00, dni:76FE, isClusterSpecific:false, isManufacturerSpecific:false, manufacturerId:0000, command:00, direction:00, data:[00, FE, 76, D3, A0, AE, 14, 00, 4B, 12, 00, 8E]]
dev:5452020-10-03 01:46:56.758 pm debugJust Closed mode null
dev:5452020-10-03 01:46:56.755 pm debug
dev:5452020-10-03 01:46:56.752 pm debug100
dev:5452020-10-03 01:46:56.749 pm debug[raw:76FE0101020808002064, dni:76FE, endpoint:01, cluster:0102, size:08, attrId:0008, encoding:20, command:0A, value:64, clusterInt:258, attrInt:8]
dev:5452020-10-03 01:45:56.726 pm debugJust Closed mode null
dev:5452020-10-03 01:45:56.723 pm debug
dev:5452020-10-03 01:45:56.719 pm debug100
dev:5452020-10-03 01:45:56.716 pm debug[raw:76FE0101020808002064, dni:76FE, endpoint:01, cluster:0102, size:08, attrId:0008, encoding:20, command:0A, value:64, clusterInt:258, attrInt:8]