RSS integration with HS works

Plugwise Forum about Plugwise devices and the Source software.
User avatar
TANE
Forum Moderator
Forum Moderator
Posts: 4806
Joined: Fri Apr 06, 2007 9:46 pm
Location: Netherlands
Contact:

RSS integration with HS works

Post by TANE »

DJ
good to hear that.
I can test it for you if available.
27 of my devices have code above 10
also some devices in the 70.
User avatar
TANE
Forum Moderator
Forum Moderator
Posts: 4806
Joined: Fri Apr 06, 2007 9:46 pm
Location: Netherlands
Contact:

RSS integration with HS works

Post by TANE »

Update.
version 0.4 is working fine with deviceID >10
User avatar
TANE
Forum Moderator
Forum Moderator
Posts: 4806
Joined: Fri Apr 06, 2007 9:46 pm
Location: Netherlands
Contact:

RSS integration with HS works

Post by TANE »

REQ
Update devicevalue with current usage
Upadte devicestatus with the actual status
This information can than be used for triggering.
User avatar
Rene
Global Moderator
Global Moderator
Posts: 1689
Joined: Wed Oct 08, 2008 3:54 pm
Location: Netherlands

RSS integration with HS works

Post by Rene »

I changed the first lines of the rss_DJ_01.xml to get a more accurate reading:
format 'Appliance.PowerUsage' as '{0:0.00}'
format 'Appliance.TotalUsage' as '{0:0.00}'
format 'Module.PowerUsage' as '{0:0.00}

Rene.
User avatar
TANE
Forum Moderator
Forum Moderator
Posts: 4806
Joined: Fri Apr 06, 2007 9:46 pm
Location: Netherlands
Contact:

RSS integration with HS works

Post by TANE »

Dj can you add this to the next version?
DJF3
Advanced Member
Advanced Member
Posts: 895
Joined: Thu Jul 12, 2007 9:28 am
Contact:

RSS integration with HS works

Post by DJF3 »

Chak: nice req, that makes sense. Will put that in 0.5 (release probably 2morrow)
Rene: I deliberately got rid of the extra zero because I tried to keep it easy to read (and the last 0 doesn't matter that much). The VB script should handle the different format correctly.
User avatar
Rene
Global Moderator
Global Moderator
Posts: 1689
Joined: Wed Oct 08, 2008 3:54 pm
Location: Netherlands

RSS integration with HS works

Post by Rene »

That's right the script handled the format correctly. I prefer it this way ;-)

A feature request from me: It would be nice to have the possibility (configurable) to use the name of each appliance, in the title field of the RSS feed, to overwrite the homeseer device name.

Rene.
User avatar
Noel
Senior Member
Senior Member
Posts: 1887
Joined: Tue Feb 12, 2008 12:13 am
Location: Netherlands
Contact:

RSS integration with HS works

Post by Noel »

I'm seeing a warning in the log file when the script is called.
<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">3-12-2008 23:42:30 - Warning - GetDevice is not reliable for device enumeration. Please use the new GetDeviceEnumerator method. Source: Script.NET_03-dec-2008 15:55:41.76565422_MyRSS_DJ_4.vb<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">
It's only a warning, and the script is working great for me.
DJF3
Advanced Member
Advanced Member
Posts: 895
Joined: Thu Jul 12, 2007 9:28 am
Contact:

RSS integration with HS works

Post by DJF3 »

New version available http://www.domoticaworld.com/scripts/plugwise/

New:
<ul><li>Added logging parameter in .ini file (0=off, 1=on, 2=DETAILED)</li><li>Files have been renamed to remove Jon00's RSS reader dependency</li><li>Replaced GetDevice with new "GetDeviceEx"</li> <li>The Current Usage value is now written to the Device Value field so you can use it to trigger events (untested)</li> </ul>

Enjoy your weekend!
DJ
Last edited by DJF3 on Wed Feb 08, 2012 1:09 pm, edited 1 time in total.
User avatar
TANE
Forum Moderator
Forum Moderator
Posts: 4806
Joined: Fri Apr 06, 2007 9:46 pm
Location: Netherlands
Contact:

RSS integration with HS works

Post by TANE »

Dj,
The latest update is working fine including DeviceValue

I have build a funny event using the devicevaule
We often forget to turn off the Hifi system
Event will turn the Hifi System off when the TV powerusage is higher than 80 watt..next one is monitor Hifi usage and turn this one off when the usage is lower then XX for 15 minutes.
Turning off event is just sending the IR signal for off.
Usage in standby is lower than 0,1 watt..standby kill makes no sense.
User avatar
Noel
Senior Member
Senior Member
Posts: 1887
Joined: Tue Feb 12, 2008 12:13 am
Location: Netherlands
Contact:

RSS integration with HS works

Post by Noel »

I've just done the update to verson 5, and it looks like all is working fine.
cedriclocqueneux
Starting Member
Starting Member
Posts: 11
Joined: Tue Feb 27, 2007 5:22 pm
Location: Orleans
Contact:

RSS integration with HS works

Post by cedriclocqueneux »

Hi ! I have an error with this plugin :(

06/12/2008 09:58:40 Error Script compile error: Type 'XmlNode' non dfini.on line 108
06/12/2008 09:58:40 SCR Option Strict OffImports System.IOImports System.XMLImports System.TextImports System.Text.RegularExpressionsimports Schedulerimports SystemPublic Module scriptcode1#Region "Automatically generated code, do not modify"'Automatically generated code, do not modify'Event Sources Begin Public WithEvents hs As Scheduler.hsapplication Public WithEvents hsp As scheduler.hsp Public WithEvents hssystem As scheduler.phone0'Event Sources End'End of automatically generated code#End Regionsub main(ByVal strMode As String)'

I see instruction on your website, and all is ok: setting.ini, plugwise.ini, and devices are created. It seems to be a problem with System.xml, but i don't nderstand. Do you have an idea ?
DJF3
Advanced Member
Advanced Member
Posts: 895
Joined: Thu Jul 12, 2007 9:28 am
Contact:

RSS integration with HS works

Post by DJF3 »

Good question, I don't know the answer.
-Can you restart the HS server to see if this solves the problem?
-Are you running the latest version of HS? (2.3.0.0)

These are the difficult error messages, unlike the ones that tell you there's a missing comma [:)]
Do some extra searches on the HS forum or google. You might end up finding more information.

On VB namespaces: http://homeseer.com/support/homeseer/We ... spaces.htm
Article: http://board.homeseer.com/showthread.ph ... 1&t=118781
Article: http://board.homeseer.com/showthread.ph ... 1&t=129339

Have to buy a Christmas tree now!
Cheers
DJ
User avatar
Noel
Senior Member
Senior Member
Posts: 1887
Joined: Tue Feb 12, 2008 12:13 am
Location: Netherlands
Contact:

RSS integration with HS works

Post by Noel »

I'm already measuring the watts of my Christmas tree :-)
User avatar
Noel
Senior Member
Senior Member
Posts: 1887
Joined: Tue Feb 12, 2008 12:13 am
Location: Netherlands
Contact:

RSS integration with HS works

Post by Noel »

Nevermind.. I've removed this message.

The error was an ID TEN T (ID 10 T) error.
All is working as it should.
Post Reply

Return to “Plugwise Forum”