tpmanley
(Tom Manley)
March 10, 2017, 3:53pm
4
It’s probably because the endpoint isn’t set. The endpoint is set when a zigbee device joins but won’t be set if you just manually create the device. You could try the suggestion here:
@Richard_Gordon yes I’m messing with the Xiaomi Temp/Humidity sensor.
You can circumvent the problem by writing the following just before calling any zigbee methods;
device.endpointId = 1
Unfortunately, I couldn’t manage to “auto pair” Temp/Humidity sensor, although Xiaomi Door/Window and Motion sensors can “auto pair” and be discovered… They seem to act the same upon pressing their reset buttons, but still I couldn’t figure out why the Temp/Humidity is not auto discovered.
Anyways, my manually adding the sensor, I can get values out of it for the time being…
Or you can pass in additionalParams like documented here:
http://docs.smartthings.com/en/latest/ref-docs/zigbee-ref.html?highlight=configurereporting#low-level-commands
For example:
zigbee.readAttribute(zigbee.POWER_CONFIGURATION_CLUSTER, 0x0020, [destEndpoint:1])