With the 2 more children about to come in a few weeks we definitely need to be able to support a more devices in a few years but 20k is pushing it, unless they've thrown an insane party.
Sent from my iPhone using Tapatalk
I've lots of old plugin devices created with duplicates of online ones
kw123 wrote:I've lots of old plugin devices created with duplicates of online ones
that should actually not happen.
A new device should only be created when the MAC number of a device is new/different, not when any other property changes ie not when the IP# changes.
if you have 2 devices with the same MAC number PLEASE let me know. I would like to understand how that can happen
Karl
try: # normal creation
dev = indigo.device.create(
protocol=indigo.kProtocol.Plugin,
address=MAC,
name=devName + u"_" + MAC,
description=ipx + u"-" + nameCl+"=Wifi",
pluginId=self.pluginId,
deviceTypeId=devType,
folder=self.folderNameCreatedID,
props={u"useWhatForStatus":u"WiFi", u"useWhatForStatusWiFi":u"Expiration",isType:True})
except Exception, e:
if len(unicode(e)) > 5:
indigo.server.log(u"in Line '%s' has error='%s'" % (sys.exc_traceback.tb_lineno, e))
try: # if device not successfully created try to create it again but with random number added
devName += u"_"+( unicode(time.time() - int(time.time())) ).split(".")[1] # create random name
indigo.server.log(u"trying again to create device with differnt name "+devName)
dev = indigo.device.create(
protocol=indigo.kProtocol.Plugin,
address=MAC,
name=devName + u"_" + MAC,
description=ipx + u"-" + nameCl+"=Wifi",
pluginId=self.pluginId,
deviceTypeId=devType,
folder=self.folderNameCreatedID,
props={u"useWhatForStatus":u"WiFi", u"useWhatForStatusWiFi":u"Expiration",isType:True})
except Exception, e:
if len(unicode(e)) > 5:
indigo.server.log(u"in Line '%s' has error='%s'" % (sys.exc_traceback.tb_lineno, e))
continue
siclark wrote:kw123 wrote:I've lots of old plugin devices created with duplicates of online ones
that should actually not happen.
A new device should only be created when the MAC number of a device is new/different, not when any other property changes ie not when the IP# changes.
if you have 2 devices with the same MAC number PLEASE let me know. I would like to understand how that can happen
Karl
Sorry I've deleted everything. But in short I had the plugin running only using access points but then bought a USG. In between getting everything set up correctly I moved the APs around between several different cloud controllers and they changed IP address several times so I had to keep updating the plugin. Plus I think I've changed physical AP is AP1, 2, 3 etc on the plugin. Also changed all the static IP address or device. But as you say, no MAC changes obviously.
Maybe I imagined it but sure I saw 2 rows for my phone, one showing inactive for 4 days. The other one as UP.
Anyway, nice opportunity to start from fresh.
Sent from my iPhone using Tapatalk
Users browsing this forum: No registered users and 12 guests