Page 1 of 2

Watch out ! before upgrading Source !

Posted: Sun Apr 06, 2014 10:02 am
by Verkenner
After upgrading Source to latest level 2.24 beta (20140404.0) the Plugwise-plugin in HomeSeer do not work any more.

Plugwise changed the statistics.xml

The plugins in HS2 and HS3 cannot read the statistics.xml

Errorcode in Homeseer: " Naam kan niet beginnen met het teken %, hex x025, Regel 22, Positie 18"

Watch out. before upgrading Source !

Posted: Sun Apr 06, 2014 1:04 pm
by Verkenner
Not Solved :?

06/04/2014 17:39:07 Plugwise ERROR: Cannot query http://localhost:8080/statistics.xml: Naam kan niet beginnen met het teken %, hexadecimale waarde 0x25. Regel 37, positie 18.
06/04/2014 17:39:31 Plugwise ERROR: Cannot query http://localhost:8080/statistics.xml: Naam kan niet beginnen met het teken %, hexadecimale waarde 0x25. Regel 67, positie 18.
06/04/2014 17:39:47 Plugwise ERROR: Cannot query http://localhost:8080/statistics.xml: Naam kan niet beginnen met het teken %, hexadecimale waarde 0x25. Regel 82, positie 18.
06/04/2014 17:40:40 Plugwise ERROR: Cannot query http://localhost:8080/statistics.xml: Naam kan niet beginnen met het teken %, hexadecimale waarde 0x25. Regel 67, positie 18.

Re: Watch out ! before upgrading Source !

Posted: Mon Apr 07, 2014 9:52 am
by Reinder
Hi Rien,

We are not aware of any change in the statistics.xml, although a few small bugs are solved in the Source 2.24beta.
So maybe the fixes create this error.
We will look into this, you know how to find us ;-).
Reinder

Re: Watch out ! before upgrading Source !

Posted: Mon Apr 07, 2014 10:24 am
by bartbakels
Same problem here... I reverted back to the nON beta release. Im not using the smile anymore so no need for the beta.

regards

bart

Re: Watch out ! before upgrading Source !

Posted: Mon Apr 07, 2014 10:49 pm
by Verkenner
Thanks Reinder :D and Bart,

Win_7, HomeSeerPro2, Source 2.24beta (20140404.0), Homeseer-plugwiseplugin 1.2.0

Downloaded the Original statistics.xml en copied in the PlugwiseSource/www directory.
But no success. In Homeseer the plugwise-devices stay in error.

After some hours it is not possible to run http://IP:port/statistcs.xml

How can I downgrade Plugwise to earlier beta-release (with Smile) ?
Bart, did yoy reinstall entire Plugwise ? Did you download a new Source from http://www.plugwise.nl ?

Re: Watch out ! before upgrading Source !

Posted: Wed Apr 09, 2014 8:00 am
by vanisher
where can you download the beta version?

Since my smile is not working anymore.

Re: Watch out ! before upgrading Source !

Posted: Fri Apr 11, 2014 4:36 pm
by RdP
Hi Guys,

Saw this post just now. I run 2.24 betas for months and use the statistics.xml below. This one works with HS plugin version 2.2 and 3.0 and probably with earlier version too.

I received an email form plugwise that they are aware of the problem and this will be fixed in a future beta release too.

Be aware of the fact that the default plugwise .xml file is just a general one and does not work with Homeseer plugwise plugin. After every Source upgrade/install, you have to copy the plugin version afterwards or else the plugin will not work.

Code: Select all

<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>

<items type="array">
<source>
	<datetime><%=system.date%> <%=system.time%></datetime>
	<version><%=Plugwise.Version%></version>
	<versionxml>2.2</versionxml>
	<language><%=Plugwise.Language%></language>
</source>

<% foreach Plugwise.Rooms %>	
	<%$room = .Name %>
	<% foreach .Appliances %>	
		<%
		  if (.Module == null)
		    continue;
      /if
		  if (.Room == null)
		    echo "No Room";
      /if
      $state=.StatusImageName.Replace("_locked","");
			$state=$state.SubString($state.LastIndexOf("_")+1);
		%>
	<appliance>
		<id><%=.Id%></id>
		<name><![CDATA[<%=.Name%>]]></name>
		<type><%=.TypeText%></type>
		<image><%=Plugwise.ImagesPath%>32/<%=.StatusImageName%>.png</image>
		<locked><%=.DoNotSwitchOff%></locked>
		<realstate><%=$state%></realstate>
		<powerstate><%=.PowerState%></powerstate>
		<powerusage><%=Math.Round(.PowerUsage*100)%></powerusage>
		<totalusage><%=Math.Round(.TotalUsage*100)%></totalusage>
		<todaysusage><%=Math.Round(.TotalUsageToday*100)%></todaysusage>
		<moduleid><%=.Module.Id%></moduleid>
		<macaddr><%=.Module.MacAddress%></macaddr>
		<moduletype><%=.Module.TypeText%></moduletype>
		<room><%=$room%></room>
                <network><%=.Module.Network%></network>
		<isproducer><%=.IsProducer%></isproducer>
		<module><%=.Module%></module>
		<donotswitchoff><%=.DoNotSwitchOff%></donotswitchoff>
		<skipintotals><%=.SkipInTotals%></skipintotals>
		<notinnetwork><%=.NotInNetwork%></notinnetwork>
	</appliance>
	<% /foreach %>
	<% foreach .Modules %>
        <module>
		<id><%=.Id%></id>
                 <name><![CDATA[<%=.Name%>]]></name>
		<moduletype><%=.TypeText%></moduletype>
                <image><%=Plugwise.ImagesPath%>32/<%=.StatusImageName%>.png</image>
		<macaddr><%=.MacAddress%></macaddr>
		<room><%=$room%></room>
                <network><%=.Network%></network>
		<temperature><%=.Temperature%></temperature>
		<humidity><%=.Humidity%></humidity>
		<lastseendate><%=.LastSeenDate%></lastseendate>
	</module>
	<% /foreach %>
<% /foreach %>
</items>

Re: Watch out ! before upgrading Source !

Posted: Fri Apr 11, 2014 4:38 pm
by RdP
vanisher wrote:where can you download the beta version?

Since my smile is not working anymore.
http://www.myplugwise.com/source/pwsetup_2.24beta.exe

Huidige beta versie crashed regelmatig, dus ik raad je aan nog even te wachten.....

Upgrade

Posted: Mon Apr 14, 2014 11:05 pm
by Verkenner
Upgraded Plugwise Source from 2.24beta (20140404) to version 2.24beta (20140411)

Upgraded Plugin from 1.2 to HS plugin version 2.2

Now problems seem to be gone. :D

RdP and Plugwise: Thanks for help !!

Watch out ! before upgrading Source !

Posted: Thu Apr 17, 2014 9:30 pm
by Verkenner
Not solved

Several hours after restart PC with HS2pro and Plugwise problems occure.

Suddenly Plugwise-webserver does not respond any more.

Homeseer log:
17/04/2014 21:24:16 Plugwise ERROR: PollPlugwiseServer: Cannot query http://localhost:8080/statistics.xml: Er is een time-out opgetreden voor de bewerking
17/04/2014 21:25:16 Plugwise ERROR: PollPlugwiseServer: Cannot query http://localhost:8080/statistics.xml: Er is een time-out opgetreden voor de bewerking

Upgrading Plugwise Source from 2.24beta (20140411) to 2.24beta (20140415) did not solve problem.

Re: Watch out ! before upgrading Source !

Posted: Thu Apr 17, 2014 10:42 pm
by Darwusch
Same here.
I think it is because something is causing the source to eat the cpu.
Mostly when I open the standard plugwise webpage, the source takes about 80% of the cpu and this lasts until I restart the source.
It seems many strange errors are caused by the source not responding in time due to this.

For me, this problem started with the first 2.24 beta version and still present in current version 20140411.0

Re: Watch out ! before upgrading Source !

Posted: Fri Apr 18, 2014 10:08 am
by RdP
Hi,

DE Source knalt er inderdaad regelmatig uit en dan doet de plug-in het natuurlijk niet meer omdat dan ook de Source webserver waar de statistics.xml vandaan wordt gehaald is gecrashed. Dit euvel is sinds de laatste paar beta versies en ik start de sources automatisch opnieuw op als ik de door jullie genoemde error in de HS log zie.

Dit is natuurlijk niet de oplossing, dus ik zal het bij PlugWise melden !!!

Groet,
Rien

Re: Watch out ! before upgrading Source !

Posted: Fri Apr 18, 2014 12:17 pm
by RdP
Ik wil nogmaals benadrukken dat na een update van de Source software de statistics.xml die bij de plug-in wordt geleverd opnieuw over die van Plugwise moet worden heen gekopieerd !!!!

In de volgende update van de Plug-in versie 2.2 (voor HS2) en 3.0 (voor HS3) zal ik een andere naam gaan gebruiken voor de xml file, zodat er geen conflict meer ontstaat na het updaten van de Source !!!

Gr,
Rien

Re: Watch out ! before upgrading Source !

Posted: Fri Apr 18, 2014 6:23 pm
by petermdevries
Hier ook zelfde gedrag sinds de beta... Crasht na ongeveer een kleine dag.
Irritant. Denk dat ik maar ga downgraden, maar vraag me alleen af hoe dat het beste te doen (zonder verlies van data uiteraard). Iemand suggesties?


Sent from my iPad using Tapatalk

Re: Watch out ! before upgrading Source !

Posted: Thu Apr 24, 2014 11:21 am
by Darwusch
Darwusch wrote:Same here.
I think it is because something is causing the source to eat the cpu.
Mostly when I open the standard plugwise webpage, the source takes about 80% of the cpu and this lasts until I restart the source.
It seems many strange errors are caused by the source not responding in time due to this.

For me, this problem started with the first 2.24 beta version and still present in current version 20140411.0
The extreme cpu usage due to the bug in this beta Plugwise, causes an increase of my PC server energy demand of 260 kWh yearly. :D
cpu usage.png
cpu usage.png (16.33 KiB) Viewed 23861 times