How to get pluginProp for TypeName?

Posted on
Sat May 23, 2015 10:54 pm
zurich offline
Posts: 103
Joined: Aug 11, 2014

How to get pluginProp for TypeName?

Greetings,

I am trying to get the pluginProp from a mirror device like this: <TypeName type="string">EasyDAQ Relay Output Mirror</TypeName>. The I have tried these different code combinations but it does not werk. Is in fact possible to get this prop?

Code: Select all
self.debugLog('type name is %s' %mirrorDev.TypeName)
self.debugLog('type name is %s' %mirrorDev.typeName)
self.debugLog('type name is %s' %mirrorDev.typename)


Once again thanks to you for kind assistance.

Z

Posted on
Sun May 24, 2015 5:21 am
DaveL17 offline
User avatar
Posts: 6741
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: How to get pluginProp for TypeName?

Hello - I'm not familiar with the plugin, but is that a device state that you're after? Please post a copy of the device dict here using this code (where the device number is an Indigo mirror device):

Code: Select all
dev = indigo.devices[12345678]
indigo.server.log(unicode(dev))

Dave

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

[My Plugins] - [My Forums]

Posted on
Mon May 25, 2015 6:23 pm
zurich offline
Posts: 103
Joined: Aug 11, 2014

Re: How to get pluginProp for TypeName?

Greetings,

Thank you for your response. I managed to figure out how to get the model of a device as is shown in the UI Model column.

Code: Select all
dev = indigo.devices[enter device ID here]
model = dev.model
self.debugLog('model is %s' %model)



thanks to you,

Z

Posted on
Mon May 25, 2015 6:26 pm
DaveL17 offline
User avatar
Posts: 6741
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: How to get pluginProp for TypeName?

Glad to hear that you were able to find what you were after.

Dave

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

[My Plugins] - [My Forums]

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest