How to see if device is included with or without encryption?

Posted on
Wed Apr 18, 2018 10:14 am
Frakke offline
Posts: 97
Joined: May 05, 2016

How to see if device is included with or without encryption?

Hi All,

Can I somehow see if a device is added with or without encryption?

Regards

Posted on
Wed Apr 18, 2018 10:31 am
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: How to see if device is included with or without encrypt

I believe if the 'zwEncryptClassCmdMap' property is populated then it is:

Code: Select all
indigo.server.log(unicode(indigo.device[YOUR_DEVICE_ID].ownerProps))

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Wed Apr 18, 2018 10:51 am
Frakke offline
Posts: 97
Joined: May 05, 2016

Re: How to see if device is included with or without encrypt

Colorado4Wheeler wrote:
I believe if the 'zwEncryptClassCmdMap' property is populated then it is:

Code: Select all
indigo.server.log(unicode(indigo.device[YOUR_DEVICE_ID].ownerProps))


Hmm, i'm gettings this error:
Code: Select all
mbedded script: 'DeviceCmds' object does not support indexing

Posted on
Wed Apr 18, 2018 10:59 am
DaveL17 offline
User avatar
Posts: 6742
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: How to see if device is included with or without encrypt

Typo fixed here. Device should be devices.
Code: Select all
indigo.server.log(unicode(indigo.devices[YOUR_DEVICE_ID].ownerProps))

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Wed Apr 18, 2018 11:01 am
Frakke offline
Posts: 97
Joined: May 05, 2016

Re: How to see if device is included with or without encrypt

DaveL17 wrote:
Typo fixed here. Device should be devices.
Code: Select all
indigo.server.log(unicode(indigo.devices[YOUR_DEVICE_ID].ownerProps))


Yes, then I'm gettings this one?
Code: Select all
embedded script: 'key id 42 not found in database'


42 is the address of a Z-Wave device.

Posted on
Wed Apr 18, 2018 11:08 am
DaveL17 offline
User avatar
Posts: 6742
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: How to see if device is included with or without encrypt

You should use the Indigo device ID, which is found by right-clicking on said device -- instead of the Z-Wave node ID which it seems like you're using. :D

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Tue Apr 24, 2018 12:56 am
Frakke offline
Posts: 97
Joined: May 05, 2016

Re: How to see if device is included with or without encrypt

DaveL17 wrote:
You should use the Indigo device ID, which is found by right-clicking on said device -- instead of the Z-Wave node ID which it seems like you're using. :D


Yes.. :roll:

I think it's this one:
Code: Select all
 zwEncryptionStatusStr : Supported but not Enabled (string)

Posted on
Tue Apr 24, 2018 3:30 am
DaveL17 offline
User avatar
Posts: 6742
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: How to see if device is included with or without encrypt

According to C4W above, you should examine 'zwEncryptClassCmdMap'. What is the value of that property?

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Tue Apr 24, 2018 3:36 am
Frakke offline
Posts: 97
Joined: May 05, 2016

Re: How to see if device is included with or without encrypt

DaveL17 wrote:
According to C4W above, you should examine 'zwEncryptClassCmdMap'. What is the value of that property?

Nothing useful i'm afraid:
Code: Select all
zwEncryptClassCmdMap : (dict)


So, I think this one is the correct one:
Code: Select all
zwEncryptionStatusStr : Supported but not Enabled (string)

Posted on
Tue Apr 24, 2018 5:37 am
DaveL17 offline
User avatar
Posts: 6742
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: How to see if device is included with or without encrypt

I don't have any encrypted devices, but it looks like that one is not added with encryption.

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Tue Apr 24, 2018 8:33 am
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: How to see if device is included with or without encrypt

I was replying to the question as to if it had been added with or without encryption, if zwEncryptClassCmdMap is empty then it's not currently encrypted, but zwEncryptionStatusStr shows that it can be.

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Tue Apr 24, 2018 4:25 pm
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: How to see if device is included with or without encrypt

Colorado4Wheeler wrote:
I was replying to the question as to if it had been added with or without encryption, if zwEncryptClassCmdMap is empty then it's not currently encrypted, but zwEncryptionStatusStr shows that it can be.

That is correct. Here is a slightly preferred technique (less likely to break in the future) to get both states:

Code: Select all
supportEncryption = "c152" in dev.ownerProps["zwClassCmdMap"]
usingEncryption = len(dev.ownerProps["zwEncryptClassCmdMap"]) > 0

Image

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest