Access to sensortype in automation module

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
Rklootwijk
Posts: 15
Joined: 05 Jan 2015 21:52

Access to sensortype in automation module

Post 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.
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: Access to sensortype in automation module

Post 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
Rklootwijk
Posts: 15
Joined: 05 Jan 2015 21:52

Re: Access to sensortype in automation module

Post by Rklootwijk »

I got this solved as follows: global.zway.devices[nodeId].instances[instanceId].commandClasses[commandclass].data[scaleId].sensorType.value
Post Reply