Page 3 of 3

Re: TED5000 - The Energy Detective

PostPosted: Tue Dec 01, 2015 8:19 pm
by Ramias
Well the good news is the Ted6000 XML URL returns a MUCH smaller data set.

The XML return is shown above from the previous poster. I've tried to modify your plugin but it fails. Here's the code I have:

Code: Select all
        def update(self,device):
                self.debugLog("Updating device: " + device.name)
                theUrl = u"http://" + device.pluginProps["address"] + "/api/DashData.xml?T=0"

                self.debugLog("Checking URL " + theUrl)

                try:
                        f = urllib2.urlopen(theUrl)       
                except:
                        self.errorLog("Error getting ted6000 data: %s" % (device.pluginProps["address"]))
                        return

                theXml = f.read()
                TED6000 = ET.parse(urllib2.urlopen(theUrl))
                DashData = TED6000.find('DashData')

                PowerNow_Total = DashData.findtext('Now')
                PowerTDY_Total = DashData.findtext('TDY')
                PowerMTD_Total = DashData.findtext('MTD')
                PowerAVG = DashData.findtext('Avg')
                VoltageNow_Total = DashData.findtext('Voltage')


The failure looks like this:
Code: Select all
  Started plugin "TED 5000 Plugin 1.0.5"
  TED 5000 Plugin Debug           Method: startup
  TED 5000 Plugin Debug           versionCheck: Started
  TED 5000 Plugin Debug           versionCheck: Version Server Url:http://vulture.lagaros.com/IndigoPlugins/TED5000/versionInfoFile.html
  TED 5000 Plugin                 Your plugin version, v1.0.5, is current.
  TED 5000 Plugin Debug           Starting device: TED Home Pro
  TED 5000 Plugin Debug           Updating device: TED Home Pro
  TED 5000 Plugin Debug           Checking URL http://192.168.0.77/api/DashData.xml?T=0
  TED 5000 Plugin Error           exception in deviceStartComm(TED Home Pro): 'NoneType' object has no attribute 'findtext'
  TED 5000 Plugin Debug           Starting concurrent thread
  TED 5000 Plugin                 Polling Interval: 30


I'm stuck at this point. Have tried a bunch of hit and miss things. Hopefully somebody can see this and give me an idea where it fails.

Re: TED5000 - The Energy Detective

PostPosted: Sat Dec 05, 2015 10:02 pm
by Ramias
In case anybody's interested I've crudely hacked Nick's plugin to support the TED 6000 (TED Pro).

It's not a dual-stack -- it will only work with the 6000.

See the screenshots from the mobile app to see the custom states it captures.

Re: TED5000 - The Energy Detective

PostPosted: Sat May 14, 2016 6:51 am
by timholmesjr
I have the Ted Home Pro as well. I am new to Indigo. Is there a Plugin for it avail?

Re: TED5000 - The Energy Detective

PostPosted: Sun Dec 18, 2016 8:45 am
by nlagaros
Hey all. I finally added support for TED Pro/6000. You must be on Indigo 7 for this to work. Let me know how it goes as I do not have a TED Pro.

You can find it here: http://vulture.lagaros.com:8000/wordpress/home/ted-the-energy-detective/

Re: TED5000 - The Energy Detective

PostPosted: Thu Dec 29, 2016 11:18 am
by Ramias
Plugin looking good with my TED 6000 and Indigo 7. Thanks for doing this. Looking forward to Spyder support :)

Re: TED5000 - The Energy Detective

PostPosted: Sat Feb 09, 2019 7:14 pm
by Ramias
If anybody is interested, I have modified this plugin for Ted Pro (6000) with a single Spyder unit. I have it set to report the minute average of power and cost usage. (The API is broken and doesn't report second intervals for the Spyders).

You create each Spuder node as a separate device. This makes the energy usage show up cleaner in Grafana.