Vera: getting power usage in watts for a smart energy switch

Is there a way to get the energy usage in watts from a Vera for a smart energy switch (Aeon)?

I’m successfully able to use the following switch and turn it on and off but would also like to get the current power usage (in watts) as a state variable or attribute.

Here’s the info for the switch from hass which doesn’t appear to have an attribute I can use.

INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: entity_id=switch.dehumidifier_power, new_state=<state switch.dehumidifier_power=off; Vera Device Id=15, friendly_name=Dehumidifier power @ 2016-05-24T06:36:23.591057-04:00>, old_state=None>

Thanks

1 Like

Solution: use the data_request URL and the rest component:

sensor 4:
  platform: rest
  resource: http://192.168.0.140:3480/data_request?id=variableget&DeviceNum=15&serviceId=urn:micasaverde-com:serviceId:EnergyMetering1&Variable=Watts
  method: GET
  name: Dehumidifier Watts
3 Likes

And how do I find the data_request URL for a specific device?

I’d suggest going to this reference site for Luup requests:

http://wiki.micasaverde.com/index.php/Luup_Requests

Thank you @apetryk for the quick feeback. I’ll look into it

Thank you that got it solved.