Trouble getting current power from wemo

Hi,

I recently upgraded from Openhab1 to Openhab2 and I’m having some trouble getting the power usage out of my Wemos. I have no trouble controlling them.

I have tried using the 1.9 Snapshot binding as well as the Openhab2 binding.

I have tried configuring the Wemos as things, but this didn’t work at all. I wasn’t even able to control them at that point.

Currently they are configured as follows with the 1.9 Snapshot binding. With this I can control the state but not get the currentPower. This setup is the same as I used in 1.8.3.

Switch		LivingRoomHeaters						(PersistenceGroup)	{wemo="Insight-1_0-221520K12005E8"}
Number		LivingRoomHeatersPowerUsage				(PersistenceGroup,Graphed)	{wemo="Insight-1_0-221520K12005E8;currentPower"}

Can anyone see anything wrong with that?

The only mention of the wemos in my logs are that they have been discovered.

2016-12-02 17:30:27.087 [INFO ] [ab.binding.wemo.internal.WemoBinding] - Wemo Device with UDN 'Insight-1_0-221520K1200621' discovered
2016-12-02 17:30:28.163 [INFO ] [ab.binding.wemo.internal.WemoBinding] - Wemo Device with UDN 'Insight-1_0-221547K120004A' discovered
2016-12-02 17:30:28.167 [INFO ] [ab.binding.wemo.internal.WemoBinding] - Wemo Device with UDN 'Insight-1_0-221520K1200621' discovered
2016-12-02 17:30:28.167 [INFO ] [ab.binding.wemo.internal.WemoBinding] - Wemo Device with UDN 'Insight-1_0-221520K12005E8' discovered
2016-12-02 17:30:32.848 [INFO ] [ab.binding.wemo.internal.WemoBinding] - Wemo Device with UDN 'Insight-1_0-221520K12005E8' discovered
2016-12-02 17:30:32.848 [INFO ] [ab.binding.wemo.internal.WemoBinding] - Wemo Device with UDN 'Insight-1_0-221520K1200621' discovered
2016-12-02 17:30:33.873 [INFO ] [ab.binding.wemo.internal.WemoBinding] - Wemo Device with UDN 'Insight-1_0-221547K120004A' discovered
2016-12-02 17:30:33.874 [INFO ] [ab.binding.wemo.internal.WemoBinding] - Wemo Device with UDN 'Insight-1_0-221520K12005E8' discovered
2016-12-02 17:30:33.875 [INFO ] [ab.binding.wemo.internal.WemoBinding] - Wemo Device with UDN 'Insight-1_0-221520K1200621' discovered

In the events log the status changes from null to zero. I suspect this is the state being restored from persistence however as it only happens after restarting Openhab.

2016-12-02 16:43:57.422 [ItemStateChangedEvent     ] - LivingRoomHeatersPowerUsage changed from NULL to 0
2016-12-02 16:43:57.427 [GroupItemStateChangedEvent] - Graphed changed from NULL to UNDEF through LivingRoomHeatersPowerUsage
2016-12-02 16:54:13.258 [GroupItemStateChangedEvent] - Graphed changed from NULL to UNDEF through LivingRoomHeatersPowerUsage
2016-12-02 16:54:13.259 [ItemStateChangedEvent     ] - LivingRoomHeatersPowerUsage changed from NULL to 0
2016-12-02 17:28:31.811 [GroupItemStateChangedEvent] - Graphed changed from NULL to UNDEF through LivingRoomHeatersPowerUsage
2016-12-02 17:28:31.812 [ItemStateChangedEvent     ] - LivingRoomHeatersPowerUsage changed from NULL to 0
2016-12-02 17:30:22.294 [ItemStateChangedEvent     ] - LivingRoomHeatersPowerUsage changed from NULL to 0
2016-12-02 17:30:22.297 [GroupItemStateChangedEvent] - Graphed changed from NULL to UNDEF through LivingRoomHeatersPowerUsage

Any ideas?

This is what I’ve tried with the OH2 binding.

My thing

wemo:insight:Switch2 [udn="Insight-1_0-221520K1200621"]

My Item

Number          BlanketPowerUsage             (PersistenceGroup,Graphed)      {channel="wemo:insight:Switch2:currentPower"}

The OH2 log says that the UDN has been discovered but doesn’t say anything Wemo related after that. I can neither control the state of the wemo or see the power.

What have I done wrong?

I’ve just got it working by setting up the link in the Paper UI instead of the in the text files.
I was hoping to avoid using the Paper UI though. Is this possible?