Page 1 of 1

Access to sensortype in automation module

Posted: 09 Jan 2015 16:09
by Rklootwijk
Is there a way to access the sensortype from within an automation module? I mean the digit and not the string, so for a electric meter this would be 0x01.

Re: Access to sensortype in automation module

Posted: 10 Jan 2015 02:22
by PoltoS
No. HA is "top level" layer, where should be no Z-Wave terms and constants.

You can access it only in Z-Wave API

Re: Access to sensortype in automation module

Posted: 12 Jan 2015 00:36
by Rklootwijk
I got this solved as follows: global.zway.devices[nodeId].instances[instanceId].commandClasses[commandclass].data[scaleId].sensorType.value