device create error

Posted on
Wed Mar 07, 2018 6:44 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

device create error

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

Posted on
Wed Mar 07, 2018 7:01 pm
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: device create error

What is "displayS"? I've never used or seen that in device.create.
Last edited by Colorado4Wheeler on Wed Mar 07, 2018 7:12 pm, edited 2 times in total.

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 Mar 07, 2018 7:06 pm
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: device create error

I've scoured the docs, I don't see that parameter anywhere, I think that may be your issue.

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 Mar 07, 2018 7:13 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: device create error

Should be in props ....


Sent from my iPhone using Tapatalk

Posted on
Wed Mar 07, 2018 7:37 pm
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: device create error

kw123 wrote:
Should be in props ....


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

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 Mar 07, 2018 7:54 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: device create error

..and I have no clue how that line got in there .. :oops:

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

Karl

Posted on
Wed Mar 07, 2018 7:58 pm
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: device create error

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

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

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

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests