Page 1 of 1

device create error

PostPosted: Wed Mar 07, 2018 6:44 pm
by kw123
Help requested... i get this:
Code: Select all
Line '9819' has error='Python argument types in
    DeviceCmds.create(DeviceCmds)
did not match C++ signature:
    create(CDeviceBase::_DeviceCmds {lvalue}, TDevProto protocol, CCString name='', CCString description='', boost::python::api::object folder=None, boost::python::api::object address=None, CCString deviceTypeId='', CCString pluginId='', boost::python::api::object props=None, bool configured=True, boost::python::api::object groupWithDevice=None)'
with this:
Code: Select all
                            dev1 = indigo.device.create(
                                    protocol        = indigo.kProtocol.Plugin,
                                    address         = "Pi-"+unicode(pi),
                                    name            = dev.name+"_"+serialNumber,
                                    pluginId        = self.pluginId,
                                    displayS        = "status",
                                    deviceTypeId    = "Wire18B20",
                                    folder          = self.piFolderId,
                                    props           = {u"piServerNumber":unicode(pi),"displayState":"status","displayS":"Temperature","offsetTemp":"0",  u"displayEnable": u"0"}
                                    )
where
dev.name+"_"+serialNumber == s-14-onewire_28-0316b5fa44ff
self.piFolderId == 1638619571

this has always worked.. have no clue what else to check ..have been looking at this for hours ..

Karl

Re: device create error

PostPosted: Wed Mar 07, 2018 7:01 pm
by Colorado4Wheeler
What is "displayS"? I've never used or seen that in device.create.

Re: device create error

PostPosted: Wed Mar 07, 2018 7:06 pm
by Colorado4Wheeler
I've scoured the docs, I don't see that parameter anywhere, I think that may be your issue.

Re: device create error

PostPosted: Wed Mar 07, 2018 7:13 pm
by kw123
Should be in props ....


Sent from my iPhone using Tapatalk

Re: device create error

PostPosted: Wed Mar 07, 2018 7:37 pm
by Colorado4Wheeler
kw123 wrote:
Should be in props ....


You know, that's OK, you do you my friend and Indigo will catch up eventually :lol: .

Re: device create error

PostPosted: Wed Mar 07, 2018 7:54 pm
by kw123
..and I have no clue how that line got in there .. :oops:

these things now happen more often .. must be some sophisticated virus

Karl

Re: device create error

PostPosted: Wed Mar 07, 2018 7:58 pm
by Colorado4Wheeler
kw123 wrote:
these things now happen more often .. must be some sophisticated virus

It is. It infects us all from time to time.