TED5000 - The Energy Detective

Ramias
Posts: 272
Joined: Tue Nov 24, 2015 5:21 pm

Re: TED5000 - The Energy Detective

Post 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.
Ramias
Posts: 272
Joined: Tue Nov 24, 2015 5:21 pm

Re: TED5000 - The Energy Detective

Post 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.
Attachments
IMG_0890.PNG
IMG_0890.PNG (90.76 KiB) Viewed 4176 times
IMG_0889.PNG
IMG_0889.PNG (90.15 KiB) Viewed 4176 times
timholmesjr
Posts: 1
Joined: Fri May 13, 2016 3:46 pm

Re: TED5000 - The Energy Detective

Post by timholmesjr »

I have the Ted Home Pro as well. I am new to Indigo. Is there a Plugin for it avail?
nlagaros
Posts: 1646
Joined: Mon Dec 20, 2010 2:16 pm

Re: TED5000 - The Energy Detective

Post 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/wordpre ... detective/
Ramias
Posts: 272
Joined: Tue Nov 24, 2015 5:21 pm

Re: TED5000 - The Energy Detective

Post by Ramias »

Plugin looking good with my TED 6000 and Indigo 7. Thanks for doing this. Looking forward to Spyder support :)
Ramias
Posts: 272
Joined: Tue Nov 24, 2015 5:21 pm

Re: TED5000 - The Energy Detective

Post 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.
Post Reply

Return to “TED 5000”