NorthQ (or others?) Watt calculator

As requested by @JeroenZvZ and @tyfoon on the dataMine thread, I’ve put together a short plugin to calculate the “current” wattage for a NorthQ power meter. The plugin calculates the power (Watts) from the KHW readings - this is done every time the power readings update. This will result in a kind of “delay” to the data - ie this will calculate the average power over the past “x” minutes, where a sensor that measures the power will provide the power now, and for the coming “x” minutes.

It will be available on the app store (tomorrow probably!). Once installed, you need to variable “NorthQDevice” to the device number. The plugin will then monitor this for changes.

I should add that I don’t have a NorthQ, so I can’t actually test it. I’ve made assumptions that it writes the same KWH variable as the Aeon that I have. The Aeon updates quite often and I’ve attached at dataMine graph of the Aeon power Watts versus the output of the plugin. Note that the KWH variable isn’t updated as often as the Watts variable which is why the traces don’t update at the same rate.

As always, comments are welcome…

Chris

Hi!

I installed this plugin on my Vera Lite, put in the device id and let it alone for a couple of hours. Now when I checked, it said 0 watts on the dashboard, I then polled the NorthQ and it changed to “-inf”. Something I missed? (most likely, I just got started with Vera…)

Hi superpin,

Most likely I’ve made an incorrect assumption since I can’t test this with the actual NorthQ. One point I should have made is the plugin will only update after 2 updates have been made since it’s measuring the difference in the data (I could possibly change this by storing information, but that’s how it currently works).

Anyway, it would be useful if you can take a look at the log. As a newbie to Vera, you may not know how to do this - the instructions are found here (http://wiki.micasaverde.com/index.php/Logon_Vera_SSH). If you use a program called WinSCP, this gives a nice Explorer like interface, and you can then click on the “Open Terminal” button (the little black square with HOM written in it). Into this, type “cat /var/log/cmh/LuaUPnP.log | grep NorthQ”.

This should print out a list of updates along the following lines -:

50 10/30/12 17:24:32.986 luup_log:101: NorthQ Monitor: Initialising NorthQ Watt Calculator <0x2c3bd680> 50 10/30/12 17:24:32.986 luup_log:101: NorthQ Monitor: Startup complete <0x2c3bd680> 50 10/30/12 17:25:22.782 luup_log:101: NorthQ Monitor: Data 6227.6390 to 6227.6530 in 40 = 1260.0000000111 <0x2c1bd680> 50 10/30/12 17:26:22.791 luup_log:101: NorthQ Monitor: Data 6227.6530 to 6227.6640 in 60 = 659.99999997075 <0x2c1bd680> 50 10/30/12 17:27:22.781 luup_log:101: NorthQ Monitor: Data 6227.6640 to 6227.6740 in 60 = 600.0000000131 <0x2c1bd680> 50 10/30/12 17:28:22.802 luup_log:101: NorthQ Monitor: Data 6227.6740 to 6227.6850 in 60 = 660.00000002532 <0x2c1bd680> 50 10/30/12 17:29:22.792 luup_log:101: NorthQ Monitor: Data 6227.6850 to 6227.6960 in 60 = 659.99999997075 <0x2c1bd680> 50 10/30/12 17:30:22.802 luup_log:101: NorthQ Monitor: Data 6227.6960 to 6227.7080 in 60 = 719.99999998297 <0x2c1bd680> 50 10/30/12 17:31:22.821 luup_log:101: NorthQ Monitor: Data 6227.7080 to 6227.7180 in 60 = 600.0000000131 <0x2c1bd680>

If you can paste any of this information here, it would be very useful.

Thanks
Chris

Hi Chris,

Thanks for your effort. I got the same output as superpin: 0, NaN (Not a Number), and -inf. Now stays on -inf.

Hope this helps:

50	10/30/12 16:16:09.428	luup_log:60: NorthQ Monitor: Initialising NorthQ Watt Calculator <0x2c1f3680>
50	10/30/12 16:16:09.428	luup_log:60: NorthQ Monitor: Startup complete <0x2c1f3680>
50	10/30/12 16:19:16.643	luup_log:60: NorthQ Monitor: Data 14602.882 to 14602.8820 in 0 = nan <0x2bff3680>
04	10/30/12 16:19:16.794	<Job ID="6" Name="pollnode_wake #5 4 cmds" Device="7" Created="2012-10-30 16:19:16" Started="2012-10-30 16:19:16" Completed="2012-10-30 16:19:16" Duration="0.600434000" Runtime="0.597959000" Status="Successful" LastNote="" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="NorthQ Power Meter"/> <0x2bff3680>
04	10/30/12 16:19:16.903	<Job ID="7" Name="Wakeup done 5" Device="7" Created="2012-10-30 16:19:16" Started="2012-10-30 16:19:16" Completed="2012-10-30 16:19:16" Duration="0.708801000" Runtime="0.107663000" Status="Successful" LastNote="Transmit was ok" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="NorthQ Power Meter"/> <0x2bff3680>
50	10/30/12 16:36:42.007	luup_log:60: NorthQ Monitor: Data 14602.8820 to 14602.910 in 1046 = 96.367112811559 <0x2bff3680>
04	10/30/12 16:37:04.116	<Job ID="31" Name="pollnode_wake #5 3 cmds" Device="7" Created="2012-10-30 16:36:41" Started="2012-10-30 16:36:41" Completed="2012-10-30 16:37:04" Duration="22.371756000" Runtime="22.362892000" Status="Failed" LastNote="" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="NorthQ Power Meter"/> <0x2c3f3680>
04	10/30/12 16:37:04.475	<Job ID="32" Name="Wakeup done 5" Device="7" Created="2012-10-30 16:36:41" Started="2012-10-30 16:37:04" Completed="2012-10-30 16:37:04" Duration="22.730496000" Runtime="0.357746000" Status="Aborted" LastNote="Transmit failed with code: 1" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="NorthQ Power Meter"/> <0x2bff3680>
50	10/30/12 16:54:07.647	luup_log:60: NorthQ Monitor: Data 14602.910 to 14602.926 in 1045 = 55.119617229843 <0x2bff3680>
50	10/30/12 16:54:07.793	luup_log:60: NorthQ Monitor: Data 14602.926 to 14602.9260 in 0 = -inf <0x2bff3680>
04	10/30/12 16:54:07.796	<Job ID="57" Name="pollnode_wake #5 3 cmds" Device="7" Created="2012-10-30 16:54:07" Started="2012-10-30 16:54:07" Completed="2012-10-30 16:54:07" Duration="0.452720000" Runtime="0.443664000" Status="Successful" LastNote="" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="NorthQ Power Meter"/> <0x2bff3680>
04	10/30/12 16:54:07.904	<Job ID="58" Name="Wakeup done 5" Device="7" Created="2012-10-30 16:54:07" Started="2012-10-30 16:54:07" Completed="2012-10-30 16:54:07" Duration="0.559874000" Runtime="0.106615000" Status="Successful" LastNote="Transmit was ok" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="NorthQ Power Meter"/> <0x2bff3680>
50	10/30/12 17:11:33.017	luup_log:60: NorthQ Monitor: Data 14602.9260 to 14602.956 in 1046 = 103.25047801373 <0x2bff3680>
50	10/30/12 17:11:33.163	luup_log:60: NorthQ Monitor: Data 14602.956 to 14602.9560 in 0 = nan <0x2bff3680>
04	10/30/12 17:11:33.166	<Job ID="81" Name="pollnode_wake #5 3 cmds" Device="7" Created="2012-10-30 17:11:32" Started="2012-10-30 17:11:32" Completed="2012-10-30 17:11:33" Duration="0.452670000" Runtime="0.443807000" Status="Successful" LastNote="" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="NorthQ Power Meter"/> <0x2bff3680>
04	10/30/12 17:11:33.273	<Job ID="82" Name="Wakeup done 5" Device="7" Created="2012-10-30 17:11:32" Started="2012-10-30 17:11:33" Completed="2012-10-30 17:11:33" Duration="0.558869000" Runtime="0.105434000" Status="Successful" LastNote="Transmit was ok" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="NorthQ Power Meter"/> <0x2bff3680>
50	10/30/12 17:28:58.787	luup_log:60: NorthQ Monitor: Data 14602.9560 to 14602.976 in 1045 = 68.899521532604 <0x2bff3680>
50	10/30/12 17:28:58.933	luup_log:60: NorthQ Monitor: Data 14602.976 to 14602.9760 in 0 = nan <0x2bff3680>
04	10/30/12 17:28:58.936	<Job ID="106" Name="pollnode_wake #5 3 cmds" Device="7" Created="2012-10-30 17:28:58" Started="2012-10-30 17:28:58" Completed="2012-10-30 17:28:58" Duration="0.452577000" Runtime="0.451083000" Status="Successful" LastNote="" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="NorthQ Power Meter"/> <0x2bff3680>
04	10/30/12 17:28:59.043	<Job ID="107" Name="Wakeup done 5" Device="7" Created="2012-10-30 17:28:58" Started="2012-10-30 17:28:58" Completed="2012-10-30 17:28:59" Duration="0.558764000" Runtime="0.105415000" Status="Successful" LastNote="Transmit was ok" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="NorthQ Power Meter"/> <0x2bff3680>
50	10/30/12 17:46:22.054	luup_log:60: NorthQ Monitor: Data 14602.9760 to 14603.024 in 1044 = 165.5172413754 <0x2bff3680>
50	10/30/12 17:46:22.210	luup_log:60: NorthQ Monitor: Data 14603.024 to 14603.0240 in 0 = nan <0x2bff3680>
04	10/30/12 17:46:22.213	<Job ID="132" Name="pollnode_wake #5 3 cmds" Device="7" Created="2012-10-30 17:46:21" Started="2012-10-30 17:46:21" Completed="2012-10-30 17:46:22" Duration="0.542829000" Runtime="0.539436000" Status="Successful" LastNote="" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="NorthQ Power Meter"/> <0x2bff3680>
04	10/30/12 17:46:22.319	<Job ID="133" Name="Wakeup done 5" Device="7" Created="2012-10-30 17:46:21" Started="2012-10-30 17:46:22" Completed="2012-10-30 17:46:22" Duration="0.648711000" Runtime="0.105278000" Status="Successful" LastNote="Transmit was ok" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="NorthQ Power Meter"/> <0x2bff3680>
50	10/30/12 18:03:47.564	luup_log:60: NorthQ Monitor: Data 14603.0240 to 14603.058 in 1045 = 117.12918660793 <0x2bff3680>
50	10/30/12 18:03:47.710	luup_log:60: NorthQ Monitor: Data 14603.058 to 14603.0580 in 0 = nan <0x2bff3680>
04	10/30/12 18:03:47.713	<Job ID="156" Name="pollnode_wake #5 3 cmds" Device="7" Created="2012-10-30 18:03:47" Started="2012-10-30 18:03:47" Completed="2012-10-30 18:03:47" Duration="0.452916000" Runtime="0.451383000" Status="Successful" LastNote="" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="NorthQ Power Meter"/> <0x2bff3680>
04	10/30/12 18:03:47.819	<Job ID="157" Name="Wakeup done 5" Device="7" Created="2012-10-30 18:03:47" Started="2012-10-30 18:03:47" Completed="2012-10-30 18:03:47" Duration="0.558906000" Runtime="0.105201000" Status="Successful" LastNote="Transmit was ok" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="NorthQ Power Meter"/> <0x2bff3680>
50	10/30/12 18:21:11.644	luup_log:60: NorthQ Monitor: Data 14603.0580 to 14603.144 in 1044 = 296.55172412935 <0x2bff3680>
50	10/30/12 18:21:11.790	luup_log:60: NorthQ Monitor: Data 14603.144 to 14603.1440 in 0 = inf <0x2bff3680>
04	10/30/12 18:21:11.793	<Job ID="187" Name="pollnode_wake #5 3 cmds" Device="7" Created="2012-10-30 18:21:11" Started="2012-10-30 18:21:11" Completed="2012-10-30 18:21:11" Duration="0.422816000" Runtime="0.421299000" Status="Successful" LastNote="" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="NorthQ Power Meter"/> <0x2bff3680>
04	10/30/12 18:21:11.899	<Job ID="188" Name="Wakeup done 5" Device="7" Created="2012-10-30 18:21:11" Started="2012-10-30 18:21:11" Completed="2012-10-30 18:21:11" Duration="0.528923000" Runtime="0.105310000" Status="Successful" LastNote="Transmit was ok" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="NorthQ Power Meter"/> <0x2bff3680>

Here is my log too:

50 10/30/12 16:48:19.394 luup_log:31: NorthQ Monitor: Initialising NorthQ Watt Calculator <0x2c185680> 50 10/30/12 16:48:19.395 luup_log:31: NorthQ Monitor: Startup complete <0x2c185680> 50 10/30/12 17:16:23.612 luup_log:31: NorthQ Monitor: Data 274.838 to 274.8380 in 0 = inf <0x2bf85680> 04 10/30/12 17:16:23.763 <Job ID="64" Name="pollnode_wake #5 4 cmds" Device="9" Created="2012-10-30 17:16:23" Started="2012-10-30 17:16:23" Completed="2012-10-30 17:16:23" Duration="0.600673000" Runtime="0.592954000" Status="Successful" LastNote="" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="_NorthQ Power Meter"/> <0x2bf85680> 04 10/30/12 17:16:23.871 <Job ID="65" Name="Wakeup done 5" Device="9" Created="2012-10-30 17:16:23" Started="2012-10-30 17:16:23" Completed="2012-10-30 17:16:23" Duration="0.708761000" Runtime="0.107434000" Status="Successful" LastNote="Transmit was ok" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="_NorthQ Power Meter"/> <0x2bf85680> 04 10/30/12 17:33:56.693 <Job ID="103" Name="pollnode_wake #5 3 cmds" Device="9" Created="2012-10-30 17:33:21" Started="2012-10-30 17:33:40" Completed="2012-10-30 17:33:56" Duration="35.60728000" Runtime="16.8644000" Status="Failed" LastNote="" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="_NorthQ Power Meter"/> <0x2c385680> 04 10/30/12 17:34:19.543 <Job ID="104" Name="Wakeup done 5" Device="9" Created="2012-10-30 17:33:21" Started="2012-10-30 17:34:07" Completed="2012-10-30 17:34:19" Duration="57.910352000" Runtime="12.68205000" Status="Aborted" LastNote="Transmit failed with code: 1" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="_NorthQ Power Meter"/> <0x2bf85680> 50 10/30/12 17:50:29.635 luup_log:31: NorthQ Monitor: Data 274.8380 to 276.470 in 2046 = 2871.5542521994 <0x2bf85680> 50 10/30/12 17:50:29.782 luup_log:31: NorthQ Monitor: Data 276.470 to 276.4700 in 0 = nan <0x2bf85680> 04 10/30/12 17:50:29.784 <Job ID="139" Name="pollnode_wake #5 3 cmds" Device="9" Created="2012-10-30 17:50:29" Started="2012-10-30 17:50:29" Completed="2012-10-30 17:50:29" Duration="0.452630000" Runtime="0.445237000" Status="Successful" LastNote="" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="_NorthQ Power Meter"/> <0x2bf85680> 04 10/30/12 17:50:29.892 <Job ID="140" Name="Wakeup done 5" Device="9" Created="2012-10-30 17:50:29" Started="2012-10-30 17:50:29" Completed="2012-10-30 17:50:29" Duration="0.559914000" Runtime="0.106582000" Status="Successful" LastNote="Transmit was ok" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="_NorthQ Power Meter"/> <0x2bf85680> 50 10/30/12 18:07:37.655 luup_log:31: NorthQ Monitor: Data 276.4700 to 277.074 in 1028 = 2115.1750972762 <0x2bf85680> 50 10/30/12 18:07:37.802 luup_log:31: NorthQ Monitor: Data 277.074 to 277.0740 in 0 = nan <0x2bf85680> 04 10/30/12 18:07:37.804 <Job ID="178" Name="pollnode_wake #5 3 cmds" Device="9" Created="2012-10-30 18:07:37" Started="2012-10-30 18:07:37" Completed="2012-10-30 18:07:37" Duration="0.452658000" Runtime="0.450729000" Status="Successful" LastNote="" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="_NorthQ Power Meter"/> <0x2bf85680> 04 10/30/12 18:07:37.911 <Job ID="179" Name="Wakeup done 5" Device="9" Created="2012-10-30 18:07:37" Started="2012-10-30 18:07:37" Completed="2012-10-30 18:07:37" Duration="0.558895000" Runtime="0.105537000" Status="Successful" LastNote="Transmit was ok" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="_NorthQ Power Meter"/> <0x2bf85680> 50 10/30/12 18:24:48.025 luup_log:31: NorthQ Monitor: Data 277.0740 to 277.672 in 1031 = 2088.0698351116 <0x2bf85680> 50 10/30/12 18:24:48.172 luup_log:31: NorthQ Monitor: Data 277.672 to 277.6720 in 0 = nan <0x2bf85680> 04 10/30/12 18:24:48.174 <Job ID="216" Name="pollnode_wake #5 3 cmds" Device="9" Created="2012-10-30 18:24:47" Started="2012-10-30 18:24:47" Completed="2012-10-30 18:24:48" Duration="0.452611000" Runtime="0.444890000" Status="Successful" LastNote="" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="_NorthQ Power Meter"/> <0x2bf85680> 04 10/30/12 18:24:48.281 <Job ID="217" Name="Wakeup done 5" Device="9" Created="2012-10-30 18:24:47" Started="2012-10-30 18:24:48" Completed="2012-10-30 18:24:48" Duration="0.558896000" Runtime="0.105597000" Status="Successful" LastNote="Transmit was ok" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="_NorthQ Power Meter"/> <0x2bf85680> 50 10/30/12 18:41:58.815 luup_log:31: NorthQ Monitor: Data 277.6720 to 278.236 in 1030 = 1971.2621359222 <0x2bf85680> 50 10/30/12 18:41:58.962 luup_log:31: NorthQ Monitor: Data 278.236 to 278.2360 in 0 = nan <0x2bf85680> 04 10/30/12 18:41:58.965 <Job ID="256" Name="pollnode_wake #5 3 cmds" Device="9" Created="2012-10-30 18:41:58" Started="2012-10-30 18:41:58" Completed="2012-10-30 18:41:58" Duration="0.453097000" Runtime="0.445457000" Status="Successful" LastNote="" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="_NorthQ Power Meter"/> <0x2bf85680> 04 10/30/12 18:41:59.071 <Job ID="257" Name="Wakeup done 5" Device="9" Created="2012-10-30 18:41:58" Started="2012-10-30 18:41:58" Completed="2012-10-30 18:41:59" Duration="0.558905000" Runtime="0.105134000" Status="Successful" LastNote="Transmit was ok" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="_NorthQ Power Meter"/> <0x2bf85680>

Thanks for the effort, btw!

Thanks - that helps. It looks like the data is being updated twice. The first time it works, but the second time the KWH numbers are the same and that’s causing it problems. I had a check in there to make sure the new number wasn’t lower than the old - I just need to extend that to equal to… Other than that, it looks like it’s working.

I’ve attached the update here (just to shorten the debug cycle). To load it, in UI5, go to Apps, Develop Apps, Luup Files, select the file, click the “Restart after upload” button, and click Go.

This version also removes all the decimal places after the watts…

Let me know how it goes…

Cheers
Chris

Thanks superpin,
Same problem - the data is seemingly being updated twice, and the second update is causing the calculation to get screwed up and that’s the one that gets seen in the GUI. I hope the update I’ve just posted will fix this…

Cheers
Chris

Interesting, i’ll wait for the results of the second update…

No cigar, yet. Now keeps on displaying: NaN. Looks like it takes results two times right after each other and the second time always results in NaN (0 = NaN).

10/30/12 19:23:26.492 luup_log:60: NorthQ Monitor: Initialising NorthQ Watt Calculator <0x2c131680> 50 10/30/12 19:23:26.493 luup_log:60: NorthQ Monitor: Startup complete <0x2c131680> 50 10/30/12 19:30:18.920 luup_log:60: NorthQ Monitor: Data 14604.426 to 14604.4260 in 0 = -inf <0x2bf31680> 04 10/30/12 19:30:19.060 <Job ID="12" Name="pollnode_wake #5 4 cmds" Device="7" Created="2012-10-30 19:30:18" Started="2012-10-30 19:30:18" Completed="2012-10-30 19:30:19" Duration="0.610221000" Runtime="0.590982000" Status="Successful" LastNote="" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="NorthQ Power Meter"/> <0x2bf31680> 04 10/30/12 19:30:19.169 <Job ID="13" Name="Wakeup done 5" Device="7" Created="2012-10-30 19:30:18" Started="2012-10-30 19:30:19" Completed="2012-10-30 19:30:19" Duration="0.718703000" Runtime="0.107800000" Status="Successful" LastNote="Transmit was ok" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="NorthQ Power Meter"/> <0x2bf31680> 50 10/30/12 19:47:40.713 luup_log:60: NorthQ Monitor: Data 14604.4260 to 14604.582 in 1042 = 538 <0x2bf31680> 50 10/30/12 19:47:40.860 luup_log:60: NorthQ Monitor: Data 14604.582 to 14604.5820 in 0 = nan <0x2bf31680> 04 10/30/12 19:47:40.863 <Job ID="37" Name="pollnode_wake #5 3 cmds" Device="7" Created="2012-10-30 19:47:40" Started="2012-10-30 19:47:40" Completed="2012-10-30 19:47:40" Duration="0.442657000" Runtime="0.439382000" Status="Successful" LastNote="" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="NorthQ Power Meter"/> <0x2bf31680> 04 10/30/12 19:47:40.969 <Job ID="38" Name="Wakeup done 5" Device="7" Created="2012-10-30 19:47:40" Started="2012-10-30 19:47:40" Completed="2012-10-30 19:47:40" Duration="0.548668000" Runtime="0.105447000" Status="Successful" LastNote="Transmit was ok" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="NorthQ Power Meter"/> <0x2bf31680> 50 10/30/12 20:05:02.793 luup_log:60: NorthQ Monitor: Data 14604.5820 to 14604.770 in 1042 = 649 <0x2bf31680> 50 10/30/12 20:05:02.940 luup_log:60: NorthQ Monitor: Data 14604.770 to 14604.7700 in 0 = nan <0x2bf31680> 04 10/30/12 20:05:02.943 <Job ID="62" Name="pollnode_wake #5 3 cmds" Device="7" Created="2012-10-30 20:05:02" Started="2012-10-30 20:05:02" Completed="2012-10-30 20:05:02" Duration="0.452647000" Runtime="0.443740000" Status="Successful" LastNote="" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="NorthQ Power Meter"/> <0x2bf31680> 04 10/30/12 20:05:03.049 <Job ID="63" Name="Wakeup done 5" Device="7" Created="2012-10-30 20:05:02" Started="2012-10-30 20:05:02" Completed="2012-10-30 20:05:03" Duration="0.558910000" Runtime="0.105510000" Status="Successful" LastNote="Transmit was ok" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="NorthQ Power Meter"/> <0x2bf31680> 50 10/30/12 20:22:18.593 luup_log:60: NorthQ Monitor: Data 14604.7700 to 14605.284 in 1036 = 1786 <0x2bf31680> 50 10/30/12 20:22:18.740 luup_log:60: NorthQ Monitor: Data 14605.284 to 14605.2840 in 0 = nan <0x2bf31680> 04 10/30/12 20:22:18.743 <Job ID="86" Name="pollnode_wake #5 3 cmds" Device="7" Created="2012-10-30 20:22:18" Started="2012-10-30 20:22:18" Completed="2012-10-30 20:22:18" Duration="0.452871000" Runtime="0.443952000" Status="Successful" LastNote="" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="NorthQ Power Meter"/> <0x2bf31680> 04 10/30/12 20:22:18.849 <Job ID="87" Name="Wakeup done 5" Device="7" Created="2012-10-30 20:22:18" Started="2012-10-30 20:22:18" Completed="2012-10-30 20:22:18" Duration="0.558937000" Runtime="0.105369000" Status="Successful" LastNote="Transmit was ok" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="NorthQ Power Meter"/> <0x2bf31680> 50 10/30/12 20:39:33.624 luup_log:60: NorthQ Monitor: Data 14605.2840 to 14605.694 in 1035 = 1426 <0x2bf31680> 50 10/30/12 20:39:33.770 luup_log:60: NorthQ Monitor: Data 14605.694 to 14605.6940 in 0 = nan <0x2bf31680> 04 10/30/12 20:39:33.773 <Job ID="111" Name="pollnode_wake #5 3 cmds" Device="7" Created="2012-10-30 20:39:33" Started="2012-10-30 20:39:33" Completed="2012-10-30 20:39:33" Duration="0.502626000" Runtime="0.483004000" Status="Successful" LastNote="" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="NorthQ Power Meter"/> <0x2bf31680> 04 10/30/12 20:39:33.879 <Job ID="112" Name="Wakeup done 5" Device="7" Created="2012-10-30 20:39:33" Started="2012-10-30 20:39:33" Completed="2012-10-30 20:39:33" Duration="0.608899000" Runtime="0.105508000" Status="Successful" LastNote="Transmit was ok" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="NorthQ Power Meter"/> <0x2bf31680> 50 10/30/12 20:56:49.073 luup_log:60: NorthQ Monitor: Data 14605.6940 to 14606.044 in 1036 = 1216 <0x2bf31680> 50 10/30/12 20:56:49.220 luup_log:60: NorthQ Monitor: Data 14606.044 to 14606.0440 in 0 = nan <0x2bf31680> 04 10/30/12 20:56:49.223 <Job ID="136" Name="pollnode_wake #5 3 cmds" Device="7" Created="2012-10-30 20:56:48" Started="2012-10-30 20:56:48" Completed="2012-10-30 20:56:49" Duration="0.452581000" Runtime="0.443557000" Status="Successful" LastNote="" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="NorthQ Power Meter"/> <0x2bf31680> 04 10/30/12 20:56:49.329 <Job ID="137" Name="Wakeup done 5" Device="7" Created="2012-10-30 20:56:48" Started="2012-10-30 20:56:49" Completed="2012-10-30 20:56:49" Duration="0.558657000" Runtime="0.105540000" Status="Successful" LastNote="Transmit was ok" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="NorthQ Power Meter"/> <0x2bf31680> 50 10/30/12 21:14:11.793 luup_log:60: NorthQ Monitor: Data 14606.0440 to 14606.198 in 1042 = 532 <0x2bf31680> 50 10/30/12 21:14:11.940 luup_log:60: NorthQ Monitor: Data 14606.198 to 14606.1980 in 0 = nan <0x2bf31680> 04 10/30/12 21:14:11.943 <Job ID="160" Name="pollnode_wake #5 3 cmds" Device="7" Created="2012-10-30 21:14:11" Started="2012-10-30 21:14:11" Completed="2012-10-30 21:14:11" Duration="0.432755000" Runtime="0.413168000" Status="Successful" LastNote="" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="NorthQ Power Meter"/> <0x2bf31680> 04 10/30/12 21:14:12.049 <Job ID="161" Name="Wakeup done 5" Device="7" Created="2012-10-30 21:14:11" Started="2012-10-30 21:14:11" Completed="2012-10-30 21:14:12" Duration="0.538914000" Runtime="0.105391000" Status="Successful" LastNote="Transmit was ok" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="NorthQ Power Meter"/> <0x2bf31680> 50 10/30/12 21:31:30.760 luup_log:60: NorthQ Monitor: Data 14606.1980 to 14606.356 in 1039 = 547 <0x2bf31680> 50 10/30/12 21:31:30.907 luup_log:60: NorthQ Monitor: Data 14606.356 to 14606.3560 in 0 = -inf <0x2bf31680> 04 10/30/12 21:31:30.910 <Job ID="185" Name="pollnode_wake #5 3 cmds" Device="7" Created="2012-10-30 21:31:30" Started="2012-10-30 21:31:30" Completed="2012-10-30 21:31:30" Duration="0.452665000" Runtime="0.449422000" Status="Successful" LastNote="" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="NorthQ Power Meter"/> <0x2bf31680> 04 10/30/12 21:31:31.016 <Job ID="186" Name="Wakeup done 5" Device="7" Created="2012-10-30 21:31:30" Started="2012-10-30 21:31:30" Completed="2012-10-30 21:31:31" Duration="0.558697000" Runtime="0.105448000" Status="Successful" LastNote="Transmit was ok" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="NorthQ Power Meter"/> <0x2bf31680> 50 10/30/12 21:48:53.240 luup_log:60: NorthQ Monitor: Data 14606.3560 to 14606.524 in 1043 = 579 <0x2bf31680> 50 10/30/12 21:48:53.387 luup_log:60: NorthQ Monitor: Data 14606.524 to 14606.5240 in 0 = nan <0x2bf31680> 04 10/30/12 21:48:53.390 <Job ID="210" Name="pollnode_wake #5 3 cmds" Device="7" Created="2012-10-30 21:48:52" Started="2012-10-30 21:48:52" Completed="2012-10-30 21:48:53" Duration="0.492887000" Runtime="0.483846000" Status="Successful" LastNote="" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="NorthQ Power Meter"/> <0x2bf31680> 04 10/30/12 21:48:53.496 <Job ID="211" Name="Wakeup done 5" Device="7" Created="2012-10-30 21:48:52" Started="2012-10-30 21:48:53" Completed="2012-10-30 21:48:53" Duration="0.598729000" Runtime="0.105318000" Status="Successful" LastNote="Transmit was ok" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="NorthQ Power Meter"/> <0x2bf31680> 09 10/30/12 22:04:45.957 ZWaveJobHandler::FindCustomDeviceType node 5/0 has custom 2013 file D_PowerMeter1.xml class ZWaveMultiLevelSensor desc _NorthQ Power Meter <0x2bffd680> 09 10/30/12 22:04:46.075 ZWaveJobHandler::UpdateNodes node 5 pnp 2013 Device_NumTemplate D_PowerMeter1.xml type ZWaveMultiLevelSensor Device_Num 7 Room 1 auto-conf -1 cap 0x52 sec 0x9c res 0x0 bas 0x4 gen 0x31 spe 0x1 config 1 secure 0 NorthQ Power Meter classes 20,32,3d,56,70,72,7a,80,84,86,8b,91, mfr: NorthQ/Power Meter mfr: 0x96 prodtype: 0x1 prodid: 0x1 notlistening: 1 list:0 rout:1 beam:1 rtsl:1 sec:0 1k:0 250:0 <0x2bffd680> 09 10/30/12 22:04:46.117 JobHandler_LuaUPnP::Run device 7 NorthQ Power Meter room 1 type urn:schemas-micasaverde-com:device:PowerMeter:1 id 5 parent 1/0x705a50 upnp: 0 <0x2b4ca000> 09 10/30/12 22:04:46.117 JobHandler_LuaUPnP::Run device 60 NorthQ Watt Calculator room 1 type urn:schemas-cd-jackson-com:device:NorthQWatts:1 id parent 0/0x823d88 upnp: 0 <0x2b4ca000> 50 10/30/12 22:04:48.385 luup_log:60: NorthQ Monitor: Initialising NorthQ Watt Calculator <0x2bbfd680> 50 10/30/12 22:04:48.386 luup_log:60: NorthQ Monitor: Startup complete <0x2bbfd680> 09 10/30/12 22:04:49.101 ZWaveJobHandler::FindCustomDeviceType node 5/0 has custom 2013 file D_PowerMeter1.xml class ZWaveMultiLevelSensor desc _NorthQ Power Meter __LEAK__ this:749568 start:811008 to 0xbd2000 <0x2bdfd680> 50 10/30/12 22:06:07.207 luup_log:60: NorthQ Monitor: Data 14606.900 to 14606.9000 in 0 = nan <0x2bdfd680> 04 10/30/12 22:06:07.357 <Job ID="4" Name="pollnode_wake #5 4 cmds" Device="7" Created="2012-10-30 22:06:06" Started="2012-10-30 22:06:06" Completed="2012-10-30 22:06:07" Duration="0.590384000" Runtime="0.581429000" Status="Successful" LastNote="" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="NorthQ Power Meter"/> <0x2bdfd680> 04 10/30/12 22:06:07.466 <Job ID="5" Name="Wakeup done 5" Device="7" Created="2012-10-30 22:06:06" Started="2012-10-30 22:06:07" Completed="2012-10-30 22:06:07" Duration="0.698841000" Runtime="0.107824000" Status="Successful" LastNote="Transmit was ok" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="NorthQ Power Meter"/> <0x2bdfd680>

Ok - still the same issue, but I think there’s a subtle difference between the first and second numbers. I note that the second call has a ‘0’ on the end, and I think the way Lua does an ‘=’ comparisson means this isn’t actually equal…

So, I now convert this to a number before the comparisson, which, hopefully (!!) will stop this happening and reject the second call…

Let’s see…

Chris

Yes, I noted the same here:

50 10/30/12 22:19:02.865 luup_log:31: NorthQ Monitor: Data 286.172 to 286.1720 in 0 = nan <0x2bd71680>

Chris,

At first I got NaN again. But today, at work :slight_smile: , I logged in and: Yes, it’s working!

Thanks again for your hard work!

Great stuff. I’ll put this version onto the app store. I might make a change or two at some point to make the app remember the last value which would speed up it’s initialisation, but let’s see how this version goes for now…

Let me know how it goes and if there’s any problems…

Cheers
Chris

Great!

I got some useful numbers now, thank you!

Perhaps I did something wrong during testing, but I used dataMine to get a graph but when this plugin reports “inf” during initialisation it screws up the graphs? I guess it would be fixed if you implemented the fix to remember last value, or just reported “0” instead of the string?

Hopefully it shouldn’t be possible for the nan/inf to be displayed now (or are you saying it still happens?). I’ve put two lots of protection in - if the KWH counts are the same, or if the period is 0, then the data is ignored. On startup, it knows it’s not initialised, so it should just wait for 2 readings before it does anything. At least that’s the theory, and it’s what I see here - if you see something different, please let me know and I’ll take a look…

Regarding dataMine - yes, quite likely your files are now a little “screwy” with these invalid data points. If you have WinSCP, then you can take a look in the /dataMine directory and open the files and remove any lines with nan/inf or whatever - it should be reasonably self explanatory…

Chris

Chris, it was me being a bit sleepy… I reinstalled the plugin because I had messed around with it, and I probably got a reading of the NorthQ before I had copied in the new lua, sorry.

This morning everything looked great, but when I started to save the value in dataMine the third reading went to zero, both in the graph and in the dashboard? No biggie but I just wondered if its the dataMine or NorthQ calc that caused it.

root@MiOS_35104511:/dataMine# cat NorthQ\ Watt\ Calculator\ -\ Watts\ \[R2235\]. txt 1351754644,1537 1351755668,2829 1351755669,0 1351759771,2668 1351761827,2599 1351762847,2950 1351763879,2044

And here is the log:

50 11/01/12 7:32:14.135 luup_log:33: NorthQ Monitor: Data 359.698 to 360.086 in 1036 = 1348 <0x2ba57680> 04 11/01/12 7:32:14.282 <Job ID="901" Name="pollnode_wake #5 3 cmds" Device="9" Created="2012-11-01 7:32:13" Started="2012-11-01 7:32:13" Completed="2012-11-01 7:32:14" Duration="0.461093000" Runtime="0.459167000" Status="Successful" LastNote="" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="_NorthQ Power Meter"/> <0x2ba57680> 04 11/01/12 7:32:14.390 <Job ID="902" Name="Wakeup done 5" Device="9" Created="2012-11-01 7:32:13" Started="2012-11-01 7:32:14" Completed="2012-11-01 7:32:14" Duration="0.568841000" Runtime="0.107063000" Status="Successful" LastNote="Transmit was ok" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="_NorthQ Power Meter"/> <0x2ba57680> 50 11/01/12 7:49:32.475 luup_log:33: NorthQ Monitor: Data 360.086 to 360.404 in 1038 = 1102 <0x2ba57680> 04 11/01/12 7:49:32.772 <Job ID="946" Name="pollnode_wake #5 4 cmds" Device="9" Created="2012-11-01 7:49:32" Started="2012-11-01 7:49:32" Completed="2012-11-01 7:49:32" Duration="0.600855000" Runtime="0.599388000" Status="Successful" LastNote="" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="_NorthQ Power Meter"/> <0x2ba57680> 04 11/01/12 7:49:32.880 <Job ID="947" Name="Wakeup done 5" Device="9" Created="2012-11-01 7:49:32" Started="2012-11-01 7:49:32" Completed="2012-11-01 7:49:32" Duration="0.708999000" Runtime="0.107470000" Status="Successful" LastNote="Transmit was ok" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="_NorthQ Power Meter"/> <0x2ba57680> 50 11/01/12 8:06:49.794 luup_log:33: NorthQ Monitor: Data 360.404 to 360.766 in 1037 = 1256 <0x2ba57680> 04 11/01/12 8:06:49.912 <Job ID="985" Name="pollnode_wake #5 3 cmds" Device="9" Created="2012-11-01 8:06:49" Started="2012-11-01 8:06:49" Completed="2012-11-01 8:06:49" Duration="0.361203000" Runtime="0.359731000" Status="Successful" LastNote="" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="_NorthQ Power Meter"/> <0x2ba57680> 04 11/01/12 8:06:49.990 <Job ID="986" Name="Wakeup done 5" Device="9" Created="2012-11-01 8:06:49" Started="2012-11-01 8:06:49" Completed="2012-11-01 8:06:49" Duration="0.438841000" Runtime="0.76971000" Status="Successful" LastNote="Transmit was ok" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="_NorthQ Power Meter"/> <0x2ba57680> 50 11/01/12 8:24:04.924 luup_log:33: NorthQ Monitor: Data 360.766 to 361.208 in 1035 = 1537 <0x2ba57680> 04 11/01/12 8:24:05.072 <Job ID="1024" Name="pollnode_wake #5 3 cmds" Device="9" Created="2012-11-01 8:24:04" Started="2012-11-01 8:24:04" Completed="2012-11-01 8:24:05" Duration="0.451600000" Runtime="0.443831000" Status="Successful" LastNote="" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="_NorthQ Power Meter"/> <0x2ba57680> 04 11/01/12 8:24:05.180 <Job ID="1025" Name="Wakeup done 5" Device="9" Created="2012-11-01 8:24:04" Started="2012-11-01 8:24:05" Completed="2012-11-01 8:24:05" Duration="0.558954000" Runtime="0.106712000" Status="Successful" LastNote="Transmit was ok" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="_NorthQ Power Meter"/> <0x2ba57680> 50 11/01/12 8:41:08.874 luup_log:33: NorthQ Monitor: Data 361.208 to 362.012 in 1023 = 2829 <0x2ba57680> 50 11/01/12 8:41:09.020 luup_log:33: NorthQ Monitor: Data 362.012 to 362.012 in 1 = 0 <0x2ba57680> 04 11/01/12 8:41:09.024 <Job ID="1066" Name="pollnode_wake #5 3 cmds" Device="9" Created="2012-11-01 8:41:08" Started="2012-11-01 8:41:08" Completed="2012-11-01 8:41:09" Duration="0.453791000" Runtime="0.446109000" Status="Successful" LastNote="" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="_NorthQ Power Meter"/> <0x2ba57680> 04 11/01/12 8:41:09.130 <Job ID="1067" Name="Wakeup done 5" Device="9" Created="2012-11-01 8:41:08" Started="2012-11-01 8:41:09" Completed="2012-11-01 8:41:09" Duration="0.558887000" Runtime="0.104409000" Status="Successful" LastNote="Transmit was ok" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="_NorthQ Power Meter"/> <0x2ba57680> 09 11/01/12 8:56:14.197 JobHandler_LuaUPnP::Run device 9 _NorthQ Power Meter room 0 type urn:schemas-micasaverde-com:device:PowerMeter:1 id 5 parent 1/0xa18ba8 upnp: 0 <0x2ab4a000> 09 11/01/12 8:56:14.197 JobHandler_LuaUPnP::Run device 33 NorthQ Watt Calculator room 0 type urn:schemas-cd-jackson-com:device:NorthQWatts:1 id parent 0/0xa908f8 upnp: 0 <0x2ab4a000> 09 11/01/12 8:56:14.607 ZWaveJobHandler::FindCustomDeviceType node 5/0 has custom 2013 file D_PowerMeter1.xml class ZWaveMultiLevelSensor desc _NorthQ Power Meter <0x2b67d680> 09 11/01/12 8:56:14.629 ZWaveJobHandler::UpdateNodes node 5 pnp 2013 Device_NumTemplate D_PowerMeter1.xml type ZWaveMultiLevelSensor Device_Num 9 Room 0 auto-conf 1 cap 0x52 sec 0x9c res 0x0 bas 0x4 gen 0x31 spe 0x1 config 1 secure 0 _NorthQ Power Meter classes 20,32,3d,56,70,72,7a,80,84,86,8b,91, mfr: NorthQ/Power Meter mfr: 0x96 prodtype: 0x1 prodid: 0x1 notlistening: 1 list:0 rout:1 beam:1 rtsl:1 sec:0 1k:0 250:0 <0x2b67d680> 09 11/01/12 8:56:17.103 ZWaveJobHandler::FindCustomDeviceType node 5/0 has custom 2013 file D_PowerMeter1.xml class ZWaveMultiLevelSensor desc _NorthQ Power Meter <0x2b27d680> 50 11/01/12 8:56:17.131 luup_log:33: NorthQ Monitor: Initialising NorthQ Watt Calculator <0x2b47d680> 50 11/01/12 8:56:17.132 luup_log:33: NorthQ Monitor: Startup complete <0x2b47d680> 04 11/01/12 8:58:21.052 <Job ID="6" Name="pollnode_wake #5 4 cmds" Device="9" Created="2012-11-01 8:58:05" Started="2012-11-01 8:58:07" Completed="2012-11-01 8:58:21" Duration="15.361339000" Runtime="13.309192000" Status="Failed" LastNote="" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="_NorthQ Power Meter"/> <0x2b67d680> 04 11/01/12 8:58:31.522 <Job ID="7" Name="Wakeup done 5" Device="9" Created="2012-11-01 8:58:05" Started="2012-11-01 8:58:21" Completed="2012-11-01 8:58:31" Duration="25.830534000" Runtime="10.468703000" Status="Aborted" LastNote="Transmit failed with code: 1" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="_NorthQ Power Meter"/> <0x2b27d680> 04 11/01/12 9:15:15.411 <Job ID="47" Name="pollnode_wake #5 4 cmds" Device="9" Created="2012-11-01 9:15:14" Started="2012-11-01 9:15:14" Completed="2012-11-01 9:15:15" Duration="0.600533000" Runtime="0.592774000" Status="Successful" LastNote="" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="_NorthQ Power Meter"/> <0x2b27d680> 04 11/01/12 9:15:15.521 <Job ID="48" Name="Wakeup done 5" Device="9" Created="2012-11-01 9:15:14" Started="2012-11-01 9:15:15" Completed="2012-11-01 9:15:15" Duration="0.709916000" Runtime="0.108752000" Status="Successful" LastNote="Transmit was ok" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="_NorthQ Power Meter"/> <0x2b27d680> 09 11/01/12 9:16:25.252 JobHandler_LuaUPnP::Run device 9 _NorthQ Power Meter room 0 type urn:schemas-micasaverde-com:device:PowerMeter:1 id 5 parent 1/0x6d0b80 upnp: 0 <0x2b7cd000> 09 11/01/12 9:16:25.252 JobHandler_LuaUPnP::Run device 33 NorthQ Watt Calculator room 0 type urn:schemas-cd-jackson-com:device:NorthQWatts:1 id parent 0/0x7488f8 upnp: 0 <0x2b7cd000> 09 11/01/12 9:16:25.627 ZWaveJobHandler::FindCustomDeviceType node 5/0 has custom 2013 file D_PowerMeter1.xml class ZWaveMultiLevelSensor desc _NorthQ Power Meter <0x2c301680> 09 11/01/12 9:16:25.650 ZWaveJobHandler::UpdateNodes node 5 pnp 2013 Device_NumTemplate D_PowerMeter1.xml type ZWaveMultiLevelSensor Device_Num 9 Room 0 auto-conf 1 cap 0x52 sec 0x9c res 0x0 bas 0x4 gen 0x31 spe 0x1 config 1 secure 0 _NorthQ Power Meter classes 20,32,3d,56,70,72,7a,80,84,86,8b,91, mfr: NorthQ/Power Meter mfr: 0x96 prodtype: 0x1 prodid: 0x1 notlistening: 1 list:0 rout:1 beam:1 rtsl:1 sec:0 1k:0 250:0 <0x2c301680> 09 11/01/12 9:16:28.126 ZWaveJobHandler::FindCustomDeviceType node 5/0 has custom 2013 file D_PowerMeter1.xml class ZWaveMultiLevelSensor desc _NorthQ Power Meter <0x2c101680> 50 11/01/12 9:16:28.310 luup_log:33: NorthQ Monitor: Initialising NorthQ Watt Calculator <0x2bf01680> 50 11/01/12 9:16:28.311 luup_log:33: NorthQ Monitor: Startup complete <0x2bf01680> 04 11/01/12 9:32:23.201 <Job ID="38" Name="pollnode_wake #5 4 cmds" Device="9" Created="2012-11-01 9:32:22" Started="2012-11-01 9:32:22" Completed="2012-11-01 9:32:23" Duration="0.580574000" Runtime="0.573377000" Status="Successful" LastNote="" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="_NorthQ Power Meter"/> <0x2c101680> 04 11/01/12 9:32:23.310 <Job ID="39" Name="Wakeup done 5" Device="9" Created="2012-11-01 9:32:22" Started="2012-11-01 9:32:23" Completed="2012-11-01 9:32:23" Duration="0.688869000" Runtime="0.107648000" Status="Successful" LastNote="Transmit was ok" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="_NorthQ Power Meter"/> <0x2c101680> 50 11/01/12 9:49:31.984 luup_log:33: NorthQ Monitor: Data 364.546 to 365.308 in 1028 = 2668 <0x2c101680> 04 11/01/12 9:49:32.132 <Job ID="79" Name="pollnode_wake #5 3 cmds" Device="9" Created="2012-11-01 9:49:31" Started="2012-11-01 9:49:31" Completed="2012-11-01 9:49:32" Duration="0.451758000" Runtime="0.443386000" Status="Successful" LastNote="" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="_NorthQ Power Meter"/> <0x2c101680> 04 11/01/12 9:49:32.240 <Job ID="80" Name="Wakeup done 5" Device="9" Created="2012-11-01 9:49:31" Started="2012-11-01 9:49:32" Completed="2012-11-01 9:49:32" Duration="0.559055000" Runtime="0.106585000" Status="Successful" LastNote="Transmit was ok" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="_NorthQ Power Meter"/> <0x2c101680> 04 11/01/12 10:06:51.622 <Job ID="119" Name="pollnode_wake #5 3 cmds" Device="9" Created="2012-11-01 10:06:37" Started="2012-11-01 10:06:40" Completed="2012-11-01 10:06:51" Duration="13.681486000" Runtime="11.619187000" Status="Failed" LastNote="" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="_NorthQ Power Meter"/> <0x2c301680> 04 11/01/12 10:07:01.372 <Job ID="120" Name="Wakeup done 5" Device="9" Created="2012-11-01 10:06:37" Started="2012-11-01 10:06:51" Completed="2012-11-01 10:07:01" Duration="23.430826000" Runtime="9.748305000" Status="Aborted" LastNote="Transmit failed with code: 1" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="_NorthQ Power Meter"/> <0x2c101680> 50 11/01/12 10:23:47.574 luup_log:33: NorthQ Monitor: Data 365.308 to 366.792 in 2055 = 2599 <0x2c101680> 04 11/01/12 10:23:47.722 <Job ID="157" Name="pollnode_wake #5 3 cmds" Device="9" Created="2012-11-01 10:23:47" Started="2012-11-01 10:23:47" Completed="2012-11-01 10:23:47" Duration="0.421230000" Runtime="0.412075000" Status="Successful" LastNote="" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="_NorthQ Power Meter"/> <0x2c101680> 04 11/01/12 10:23:47.831 <Job ID="158" Name="Wakeup done 5" Device="9" Created="2012-11-01 10:23:47" Started="2012-11-01 10:23:47" Completed="2012-11-01 10:23:47" Duration="0.529757000" Runtime="0.108101000" Status="Successful" LastNote="Transmit was ok" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="_NorthQ Power Meter"/> <0x2c101680> 50 11/01/12 10:40:47.694 luup_log:33: NorthQ Monitor: Data 366.792 to 367.628 in 1020 = 2950 <0x2c101680> 04 11/01/12 10:40:47.842 <Job ID="198" Name="pollnode_wake #5 3 cmds" Device="9" Created="2012-11-01 10:40:47" Started="2012-11-01 10:40:47" Completed="2012-11-01 10:40:47" Duration="0.451258000" Runtime="0.443757000" Status="Successful" LastNote="" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="_NorthQ Power Meter"/> <0x2c101680> 04 11/01/12 10:40:47.950 <Job ID="199" Name="Wakeup done 5" Device="9" Created="2012-11-01 10:40:47" Started="2012-11-01 10:40:47" Completed="2012-11-01 10:40:47" Duration="0.558898000" Runtime="0.106867000" Status="Successful" LastNote="Transmit was ok" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="_NorthQ Power Meter"/> <0x2c101680> 50 11/01/12 10:57:59.204 luup_log:33: NorthQ Monitor: Data 367.628 to 368.214 in 1032 = 2044 <0x2c101680> 04 11/01/12 10:57:59.352 <Job ID="236" Name="pollnode_wake #5 3 cmds" Device="9" Created="2012-11-01 10:57:58" Started="2012-11-01 10:57:58" Completed="2012-11-01 10:57:59" Duration="0.451393000" Runtime="0.440736000" Status="Successful" LastNote="" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="_NorthQ Power Meter"/> <0x2c101680> 04 11/01/12 10:57:59.520 <Job ID="238" Name="Wakeup done 5" Device="9" Created="2012-11-01 10:57:58" Started="2012-11-01 10:57:59" Completed="2012-11-01 10:57:59" Duration="0.618092000" Runtime="0.97905000" Status="Successful" LastNote="Transmit was ok" Node="5" NodeType="ZWaveMultiLevelSensor" NodeDescription="_NorthQ Power Meter"/> <0x2c101680>

Just cosmetics, or me messing up as usual… :slight_smile:

Thanks by the way, with this plugin and dataMine my NorthQ got useful and not just a gadget!

50      11/01/12 8:41:08.874    luup_log:33: NorthQ Monitor: Data 361.208 to 362.012 in 1023 = 2829 <0x2ba57680>
50      11/01/12 8:41:09.020    luup_log:33: NorthQ Monitor: Data 362.012 to 362.012 in 1 = 0 <0x2ba57680>

This is the problem… It’s effectively the same problem as we originally had, but this time it’s spanned a second boundary… I put a check to make sure that the time between the two readings isn’t 0 - this happens to be 1! The fundimental problem seems to be that the NorthQ data is sent twice, and it’s a case of trying to reliably filter this out, while not preventing changes. Given that the NorthQ only updates every 15 minutes or so, it’s probably safe to increase the filter to a couple of seconds without impacting anything. That should be reliable.

I’ll update this and release it to apps…

Cheers
Chris

Thanks Chris! Fantastic that you develop a plugin without even owning the equipment.

The problem occurred three more times during the day so it would be nice to get i fixed. I agree that filtering out a couple of seconds shouldn’t be a problem in real life.

//Ola

No probs. It’s a simple plugin so it’s not a major hassle…

I’ve uploaded the fixed version to apps. MCV haven’t approved the previous one yet, so hopefully they can approve this one instead…

Cheers
Chris

Chris,

I had the same error as superpin last night, two dips to 0 Watt. After that, I’ve seen no other dips.

Looking forward to your latest version in the Appstore!

Thanks, Jeroen