TED5000 - The Energy Detective

Posted on
Tue Dec 01, 2015 8:19 pm
Ramias offline
Posts: 136
Joined: Nov 24, 2015

Re: TED5000 - The Energy Detective

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.

Posted on
Sat Dec 05, 2015 10:02 pm
Ramias offline
Posts: 136
Joined: Nov 24, 2015

Re: TED5000 - The Energy Detective

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.
Attachments
IMG_0890.PNG
IMG_0890.PNG (90.76 KiB) Viewed 1524 times
IMG_0889.PNG
IMG_0889.PNG (90.15 KiB) Viewed 1524 times

Posted on
Sat May 14, 2016 6:51 am
timholmesjr offline
Posts: 1
Joined: May 13, 2016

Re: TED5000 - The Energy Detective

I have the Ted Home Pro as well. I am new to Indigo. Is there a Plugin for it avail?

Posted on
Sun Dec 18, 2016 8:45 am
nlagaros offline
Posts: 1613
Joined: Dec 20, 2010

Re: TED5000 - The Energy Detective

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/

Posted on
Thu Dec 29, 2016 11:18 am
Ramias offline
Posts: 136
Joined: Nov 24, 2015

Re: TED5000 - The Energy Detective

Plugin looking good with my TED 6000 and Indigo 7. Thanks for doing this. Looking forward to Spyder support :)

Posted on
Sat Feb 09, 2019 7:14 pm
Ramias offline
Posts: 136
Joined: Nov 24, 2015

Re: TED5000 - The Energy Detective

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.

Who is online

Users browsing this forum: No registered users and 1 guest