Home

Welcome! Log in or Join us

Forums Getting Started Displaying Kwh

Subscribe to Displaying Kwh 71 posts, 5 voices

Reply to topic
 

 
Icon_missing_medium
May 15, 2015 1:07pm
46 posts

Hi,

 

I'm using a GEM to send my data to SEG. SEG Is amazing and I hope it stays free. I am having some trouble getting it to do what I want though. I haven't been able to find any documentation on any of the settings so I'm posting my question here. I am receiving the raw data from the GEM and it's all coming in as Watts, which is great because I want to track the real time watt usage on all of my circuits and my mains. However, In my graphs, usage statistics, for my cost, and Daily usage gadgets I want it to display the total kwh used, but everything I've tried so far has not been able to display kwh. I know it's possible because I found a couple of groups where they have the kwh displayed. So if someone could please explain to me how to change the measurement for those gadgets I would appreciate it.

 

Also I wanted to know if I can write my own gadgets? I have some things I want that aren't on here or things I want to improve about the existing gadgets.

 

 
Tony1_medium
May 15, 2015 2:53pm
169 posts

For your first question please see the link below.

https://smartenergygroups.com/forums/14-Getting-Started/topics/289-Turning-watt-hours-into-kwh

 

Second question, Sam will need to address this.

The third question, the answer is yes

Click "My Things" click "devices" click your device, this will open it up, click the yellow pencil in the upper right hand corner. This will open up another screen, select "add stream" upper right corner,This again this drills down to the "add a new stream" page. In-order to create a calculated stream make sure you check the "calculated" box under "some info about how this steam works". Also select the "type of data" make sure you also name this stream, hit the add stream button. Next select "my Things" again and now select "tools" then select "Calculated streams". The stream that you created should display, at this point select "add stream" again upper right hand corner. 

 
Icon_missing_medium
May 15, 2015 2:55pm
46 posts

I've actually already read that thread, it doesn't really explain how to do it. Could you walk me through it step by step? Thanks for the add stream info, I actually found it and removed the question from my post right before you posted 

 

EDIT: Ok I'm half way there. I created a new stream, set it to Wh and told it measure in k, so I now have kWh. Then I set it to aggregate on both current and granularity.  How do I get the data from GEM though? I read in another post to use e instead of p for the name to pull Wh, so I have my mains on p_32, so i named the new stream e_32, but it's not pulling any data.

 
Tony1_medium
May 15, 2015 5:02pm
169 posts

Did you  run a discovery after configuring your gem? If so the p_ and e_ streams are automatically created. You can check this by going into tools then select streams, this should show all your stream that are created when running discovery. Did you load down the "Smart Energy Groups Setup Manual GEM-SEG" from the brultech site? here is the link

http://www.brultech.com/home/software/index.php/software/getsoft/1/1

or

https://smartenergygroups.com/forums/13-Brultech/topics/249-Brultech-How-To-Documentation-On-Setting-Up-GEM-To-SEG

 
Icon_missing_medium
May 15, 2015 5:05pm
46 posts

I did read the manual and I did do discovery. Discovery added all of the p streams, none of the e streams. After some time it looks like it is now displaying results. However, I don't know how accurate it is. What should the calibration be for kWh? What should i set the Grainularity and Current to? Raw, Aggregated, or Days?

 
Tony1_medium
May 15, 2015 6:21pm
169 posts

As for calibration, it will depend of the format selected when configuring the GEM, There are two data format choices (not sure if this is still true within the GEM, they may have eliminated the old format with some firmware upgrades. I set my GEM up a couple of years ago). The two formats had been old and new:

For the P_ values for both the new and old format the calibration is the same "1.0".

For the E_ values for the new format you would use "1.0" as the calibration setting.

The calibration for the old format for the E_ you would use ".000277777". This is mentioned in the link in one of my replies earlier. https://smartenergygroups.com/forums/14-Getting-Started/topics/289-Turning-watt-hours-into-kwh

For the granularity and current question, they only effect the graphing aspect. Furthermore granularity only effects the stream display when you go to "tools" select "devices" and click on your device. Try going in this way and you will see a graph for each of your streams. 

"Current value" effects the way it gets displayed on some of the dashboard widgets with graphing. Both Granularity and current values hold true on calculated stream with the exception of "raw" on the granularity selection. This is because a calculated stream has no raw data, the raw isn't even an option on a calculated stream under granularity. 

Also can up do a api trace and copy the trace information and post it, I want to see what is actually coming over to SEG from your GEM. To do this go to "tools" select "api trace", click the "start trace", wait about 90 seconds than hit "trace stop". It should show all your channels that just came in.

 
Tony1_medium
May 15, 2015 6:32pm
169 posts

Raw means as the data is received it get graphed (sending data to SEG every minute) it will graph in that time interval.

Aggregated means the data is rolled up, 30 minute shot.

Days means Days the data is rolled up by days

 
Icon_missing_medium
May 15, 2015 8:07pm
46 posts

Ok, it's all starting to make sense now. I think there is just some translation confusion. So granularity and current change the graphs update frequency. w/k/m changes the unit measurement size.  What does the green check box do?

Also is there a way to get the kWh data from an existing p stream? because I already have 32 streams and from what I am hearing, to get the kWh data from them I have to create 32 more streams just for that purpose. Is this correct?

 
Tony1_medium
May 15, 2015 8:41pm
169 posts

The green check box is used if you are generating electric via solar, wind, etc. This is calculated a little different. You can see an example in the following link:

https://smartenergygroups.com/groups/01000377/dashboards/578_01000377?range=0_d

 

I'm a little confused on part of your next question. If GEM is sending data to SEG for each P_ stream there is a E_ stream that was automatically create when you ran discovery. If you go to dashboard and under "thing" select "streams" it will display all your streams. The E_# (# is your stream number usuage 1-32)  is the energy stream (KWH). These E_ and P_ can be used to create widgets. Some widgets will default to power but you can change this by unichecking the "filter streams by Watts" just under the "title;" and "notes:" this is shown when you select a widget to add. This will show all your P_ ,E_, and other ones. 

 
Icon_missing_medium
May 15, 2015 8:48pm
46 posts

When I did discovery, it only created p_ streams. It created no e_streams. I went and manually created all 32 e_streams.

 
Samotage_300_medium
May 15, 2015 11:07pm
555 posts

That's a little strange... did you check your API trace that e_ streams were being sent?

You can always re-discover and this will add new streams as required.

Sam, @samotage

 
Icon_missing_medium
May 15, 2015 11:43pm
46 posts

I did check the trace, It's correctly sending all streams. Everything is working now.

 

Sam: Is it possible for me to script my own gadgets? Also to create new gadgets out of the existing gadgets? I'm noticing a lot of bugs I could fix.

 
Tony1_medium
May 16, 2015 12:52am
169 posts

You should also be sending a_# (# equals 1-32) along with temperature_# (# equals 1-8) also v_1

. These should also be display in your streams.

site aefe8bxxx7e6081 (node 01000377 ? 2015-05-16T00:43:00 (v_1 121.95000)(n_4 0)(n_3 0)(n_2 0)(n_1 0)(temperature_8 59.50000)(temperature_7 70.00000)(temperature_6 61.50000)(temperature_5 116.50000)(temperature_4 62.50000)(temperature_3 84.00000)(temperature_2 61.50000)(temperature_1 59.50000)(p_32 30.78)(e_32 0.51)(a_32 0.46)(p_31 26.78)(e_31 0.45)(a_31 0.45)(p_30 450.65)(e_30 7.51)(a_30 3.96)(p_29 226.8)(e_29 3.78)(a_29 1.91)(p_28 9.65)(e_28 0.16)(a_28 0.16)(p_27 5.85)(e_27 0.1)(a_27 0.34)(p_26 24.73)(e_26 0.41)(a_26 0.28)(p_25 183.82)(e_25 3.06)(a_25 2.14)(p_24 5.7)(e_24 0.1)(a_24 0.15)(p_23 7.05)(e_23 0.12)(a_23 0.16)(p_22 0)(e_22 0)(a_22 0.08)(p_21 2.03)(e_21 0.03)(a_21 0.14)(p_20 11.05)(e_20 0.18)(a_20 0.42)(p_19 66.62)(e_19 1.11)(a_19 0.62)(p_18 0)(e_18 0)(a_18 0.08)(p_17 0.03)(e_17 0)(a_17 0.08)(p_16 0.4)(e_16 0.01)(a_16 0.12)(p_15 120.78)(e_15 2.01)(a_15 1.33)(p_14 0.95)(e_14 0.02)(a_14 0.1)(p_13 2.03)(e_13 0.03)(a_13 0.14)(p_12 2.68)(e_12 0.04)(a_12 0.08)(p_11 50.62)(e_11 0.84)(a_11 0.48)(p_10 168.82)(e_10 2.81)(a_10 1.48)(p_9 3.03)(e_9 0.05)(a_9 0.09)(p_8 1.18)(e_8 0.02)(a_8 0.1)(p_7 0.3)(e_7 0.01)(a_7 0.08)(p_6 20.23)(e_6 0.34)(a_6 0.26)(p_5 10.3)(e_5 0.17)(a_5 0.25)(p_4 0.53)(e_4 0.01)(a_4 0.2)(p_3 1457.22)(e_3 24.29)(a_3 12.8)(p_2 61.85)(e_2 1.03)(a_2 7.16)(p_1 1262.03)(e_1 21.03)(a_1 11.2)(p_34 -61.85)(e_34 -1.03)))

 
Icon_missing_medium
May 16, 2015 12:57am
46 posts

I'm still messing around with it. Discover is currently failing. So i'm adding them all manually. What does a_ do? This is what my current trace looks like:

 

(site 9f1cd2ff23e5dda (node GEM ? (p_1 2)(p_2 1)(p_3 2)(p_4 1)(p_5 1)(p_6 31)(p_7 3)(p_8 4)(p_9 20)(p_10 4)(p_11 5)(p_12 2)(p_13 3)(p_14 132)(p_15 1)(p_16 5)(p_17 119)(p_18 0)(p_19 7)(p_20 0)(p_21 0)(p_22 0)(p_23 3)(p_32 339)(voltage 123.1)))

 

Note: I have no temperature or pulse sensors. I notice that the trace is only displaying p's even though I have manually added e_ streams for all of these. The e_ streams I added are correctly displaying the kWh usage. Is this bad?

 

 
Tony1_medium
May 16, 2015 2:23am
169 posts

The discover request must come from within the same network that the GEM is in. If you run the discover from a computer outside of the GEM network it fails. If these is what you did you will be better off  deleting the streams that you manually created and rerun the discover on the same network as the GEM.

 
Tony1_medium
May 16, 2015 2:25am
169 posts

A streams are amps

 
Icon_missing_medium
May 16, 2015 2:27am
46 posts

I ran it on the same network. Please explain what the difference would be between receiving and not receiving the e_ and a_ data in the packet?  Considering my manually created streams are correctly displaying the kWh usage, does it even matter that I am not receiving the a_ data? 

 

 
Tony1_medium
May 16, 2015 2:40am
169 posts

Are you running the most current releases of firmware (com and eng) on your GEM? On the Gem did you display the pack that is being sent to SEG? The e,p,a and v are always sent.

 

are you sure what SEG is getting is correct?

 
Icon_missing_medium
May 16, 2015 2:46am
46 posts

I I am running the latest firmware. You saw the trace I pasted. Will there be a problem? 

 
Tony1_medium
May 16, 2015 2:56am
169 posts

something is not right. The trace you posted was that obtained from the GEM or from the SEG api trace? I really think you need to get into the GEM and view it that way. 

 
Icon_missing_medium
May 16, 2015 2:57am
46 posts

It was from the SEG trace

 
Samotage_300_medium
May 16, 2015 8:53am
555 posts

mmmmm...

 
Tony1_medium
May 16, 2015 12:03pm
169 posts

Really need to see what the GEM is sending.

 
Icon_missing_medium
May 16, 2015 4:42pm
46 posts

In GEM under "Show Packet": (site 9f1cd2ff23e5dda (node GEM ? (p_1 1)(p_2 0)(p_3 2)(p_4 0)(p_5 1)(p_6 28)(p_7 4)(p_8 7)(p_9 20)(p_10 3)(p_11 5)(p_12 2)(p_13 3)(p_14 127)(p_15 1)(p_16 4)(p_17 143)(p_18 0)(p_19 7)(p_20 0)(p_21 1)(p_22 1)(p_23 4)(p_32 359)(voltage 122.6))) 

 

I've selected include current in packet.

 
Samotage_300_medium
May 17, 2015 1:18am
555 posts

If no e_ data is being sent, discovery won't make, or record any energy streams!

Sam, @samotage

Log in to reply to this topic

Forums Getting Started Displaying Kwh

copyright © 2008 Smart Energy Groups pty ltd