Peter,
Just used this plugin to read and put the Temp into a variable from the updated Neo Motion Detection, Light intensity and Temperature Sensor but I cannot get to the Lux value, is it possible to add Lux to your plugin?
howartp wrote:Probably...
It won't be soon but I'll certainly add to the list.
Peter
Z-Wave Watcher Debug Raw command received (Node 207): 01 0C 00 04 00 CF 06 31 05 01 22 FF F0 26
Z-Wave Watcher Debug Node ID 207 (Hex 207) found in watchIDs
Z-Wave Sensor Logger Debug Bitmask: 0b100010, DP: 1, Scale: 0, ByteLength: 2
Z-Wave Sensor Logger Debug Temperature Reported (Node 207 Endpoint None): 6552.0 celsius <<<<<<< I blame Global Warming!!!
Error XML Parse Error: not well-formed (invalid token)
Error On character 457 of line number 1
degreeC = u"\u00b0C" <<<<<<<<< Added
degreeF = u"\u00b0F" <<<<<<<<<
#
#
if (bmlen == 1):
value = int(bytes[11],16)
elif (bmlen == 2):
value = int(bytes[11] + bytes[12],16)
elif (bmlen == 4):
value = int(bytes[11] + bytes[12] + bytes[13] + bytes[14],16)
value = float(value) / (10**bmdp) # Divide by 10^2 (100) or 10^3 (1000) etc
if value > 6500: <<<<<<<<< Added
value = float((6554-value)*-1) <<<<<<<<<
if (bmsc == 0): # celsius
uivalue = str(value) + degreeC <<<<<<<<< Changed to stop error
self.debugLog(u"Temperature Reported (Node " + str(int(bytes[5],16)) + " Endpoint " + str(endpoint) + "): " + str(value) + " celsius")
Z-Wave Watcher Debug Raw command received (Node 207): 01 0C 00 04 00 CF 06 31 05 01 22 FF F6 20
Z-Wave Watcher Debug Node ID 207 (Hex 207) found in watchIDs
Z-Wave Sensor Logger Debug Bitmask: 0b100010, DP: 1, Scale: 0, ByteLength: 2
Z-Wave Sensor Logger Debug Temperature Reported (Node 207 Endpoint None): -1.4 celsius
Users browsing this forum: No registered users and 1 guest