Jump to content
  • 0

VD seen as power meter device and used in energy panel


Question

Hi,

i've created a virtual device showing instantaneous power and other info about overall consumption of my house (measures are made right after the main meter from energy company)

 

post-8984-0-00967300-1455009838_thumb.jpg

 

Is there any way to have this virtual device seen as a power metering device (like the fibaro power plug) so it will be considered in the energy panel?

Any glue to obtain it? Maybe through some plug in or specifically defined virtual device code providing data as a physical device will do?

 

In general, maybe it would be nice to have virtual devices classified by functions, as physical devices are (ligthing, control switches etc)

 

Many thanks

 

Simone

 

 

Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0

It will be when user plugins are available again, then it can be set as Temp sensor. So VD will need to transformed into a Plugin.

Link to post
Share on other sites
  • 0
Guest samuelboerhoop

What device did you use to measure the power consumption in your VD ? How did you convert it to the lua code?

Link to post
Share on other sites
  • 0

There exists a workaround for this problem. If you have for example a  2 x 1.5 kW switch in your house where you use only one of two relais, you could use the other one to simulate the power consumption. All you have to do is to use the REST API to set the power value of the unused relais (and switch on the power monitoring for this relais). You can then make your VD to vary the power values through the REST API. I use theis workaround for monitoring of the power consumption of my heating pump.

Link to post
Share on other sites
  • 0

What device did you use to measure the power consumption in your VD ? How did you convert it to the lua code?

 

I just extract the data from a string obtained through an httprequest in lua code.. i can post the lua code if you're interested, it's really simple.

 

About the HW, I've built the energy meter by myself, it's a pcb with a transformer for voltage, a clamp probe for current and a micro that computes the power related quantities (based on the OpenEnergyMonitor project). This board is connected to a raspberry that "simply" acts as a webserver, it reply to the http request from HC2 VD with the energy data.

Link to post
Share on other sites
  • 0

There exists a workaround for this problem. If you have for example a  2 x 1.5 kW switch in your house where you use only one of two relais, you could use the other one to simulate the power consumption. All you have to do is to use the REST API to set the power value of the unused relais (and switch on the power monitoring for this relais). You can then make your VD to vary the power values through the REST API. I use theis workaround for monitoring of the power consumption of my heating pump.

 

Really nice idea!!! Of course if Fibaro team come up with a more direct way to do that, it will be cleaner, but in the meantime what you suggest is a nice workaround.

Link to post
Share on other sites
  • 0

There exists a workaround for this problem. If you have for example a  2 x 1.5 kW switch in your house where you use only one of two relais, you could use the other one to simulate the power consumption. All you have to do is to use the REST API to set the power value of the unused relais (and switch on the power monitoring for this relais). You can then make your VD to vary the power values through the REST API. I use theis workaround for monitoring of the power consumption of my heating pump.

 

 

Hi gromtron!

 

Do you have some code snippets? I would like to 'simulate' some analogue values and can see them in the consumption page.

I was thinking about to use this 'hack' for monitoring some temperature values from my RasPi if it's possible  ...

 

Thanks in advance :-D

Link to post
Share on other sites
  • 0

Sorry for delay. For example:

HC2 = Net.FHttp("192.168.1.20", 80)
HC2:setBasicAuthentication("admin","admin")
currentPowerValue = fibaro:getGlobalValue("wpPower")
jtable = "{\"properties\":{\"power\":" .. currentPowerValue .. "}}"
response, status, errorCode = HC2:PUT("/api/devices/89",jtable)  
fibaro:log("W: " .. currentPowerValue)
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...