Aeotec socket Smart Switch 6 not updating values

Hello everyone,

I recently added to my z-wave network one Aeotec Smart Switch 6.
The switch is working properly as a boolean switch, it gets ON and OFF commands. But suddenly it stopped reporting the power consumption. If I check the logs I can see that it did for some time, and after that it only gets on and off commands:

2016-03-14 19:46:12 - Smart6 state updated to ON
2016-03-14 19:46:12 - Smart6_Power state updated to 188.795
2016-03-14 19:46:12 - Smart6_Energy state updated to 0.089
2016-03-14 19:46:12 - Smart6_Volts state updated to 227.07
2016-03-14 19:46:12 - Smart6_Amps state updated to 0.88
2016-03-14 19:47:59 - Smart6 state updated to OFF
2016-03-14 19:47:59 - Smart6 received command OFF
2016-03-14 19:47:59 - Smart6 state updated to OFF
2016-03-14 19:55:10 - Smart6 state updated to ON
2016-03-14 19:55:10 - Smart6 received command ON
2016-03-14 19:55:10 - Smart6 state updated to ON
2016-03-14 20:00:44 - Smart6 received command OFF
2016-03-14 20:00:44 - Smart6 state updated to OFF
2016-03-14 20:00:44 - Smart6 state updated to OFF
2016-03-14 21:17:45 - Smart6 state updated to ON
2016-03-14 21:17:45 - Smart6 received command ON
2016-03-14 21:17:45 - Smart6 state updated to ON
2016-03-14 23:26:28 - Smart6 state updated to ON
2016-03-14 23:26:28 - Smart6_Power state updated to 189.726
2016-03-14 23:26:28 - Smart6_Energy state updated to 0
2016-03-14 23:26:28 - Smart6_Volts state updated to 232.861
2016-03-14 23:26:28 - Smart6_Amps state updated to 0.862
2016-03-14 23:29:08 - Smart6 state updated to ON
2016-03-14 23:29:08 - Smart6_Power state updated to 182.804
2016-03-14 23:29:08 - Smart6_Energy state updated to 0.52
2016-03-14 23:29:08 - Smart6_Volts state updated to 230.795
2016-03-14 23:29:08 - Smart6_Amps state updated to 0.849
2016-03-14 23:47:49 - Smart6 state updated to ON
2016-03-14 23:47:49 - Smart6_Power state updated to 182.43
2016-03-14 23:47:49 - Smart6_Energy state updated to 0.574
2016-03-14 23:47:49 - Smart6_Volts state updated to 231.821
2016-03-14 23:47:49 - Smart6_Amps state updated to 0.839
2016-03-15 00:48:45 - Smart6 state updated to OFF
2016-03-15 00:48:45 - Smart6 received command OFF
2016-03-15 00:48:45 - Smart6 state updated to OFF
2016-03-15 08:11:51 - Smart6 state updated to ON
2016-03-15 08:11:51 - Smart6 received command ON
2016-03-15 08:11:51 - Smart6 state updated to ON
2016-03-15 09:04:54 - Smart6 state updated to OFF
2016-03-15 09:04:54 - Smart6 received command OFF
2016-03-15 09:04:54 - Smart6 state updated to OFF
2016-03-15 10:02:13 - Smart6 state updated to OFF
2016-03-15 10:02:13 - Smart6_Power state updated to 0
2016-03-15 10:02:13 - Smart6_Energy state updated to 0.924
2016-03-15 10:02:13 - Smart6_Volts state updated to 232.824
2016-03-15 10:02:13 - Smart6_Amps state updated to 0
2016-03-15 18:21:31 - Smart6 state updated to ON
2016-03-15 18:21:31 - Smart6 received command ON
2016-03-15 18:21:31 - Smart6 state updated to ON
2016-03-15 18:25:14 - Smart6 received command ON
2016-03-15 18:25:14 - Smart6 state updated to ON
2016-03-15 18:25:14 - Smart6 state updated to ON
2016-03-15 18:26:41 - Smart6 state updated to OFF
2016-03-15 18:26:41 - Smart6 received command OFF
2016-03-15 18:26:42 - Smart6 state updated to OFF
2016-03-15 18:27:17 - Smart6 received command ON
2016-03-15 18:27:17 - Smart6 state updated to ON
2016-03-15 18:27:17 - Smart6 state updated to ON
2016-03-15 18:37:17 - Smart6 state updated to OFF
2016-03-15 18:37:17 - Smart6 received command OFF
2016-03-15 18:37:17 - Smart6 state updated to OFF
2016-03-15 18:37:25 - Smart6 state updated to ON
2016-03-15 18:37:25 - Smart6 received command ON
2016-03-15 18:37:26 - Smart6 state updated to ON
2016-03-15 19:09:22 - Smart6 state updated to OFF
2016-03-15 19:09:22 - Smart6 received command OFF
2016-03-15 19:09:22 - Smart6 state updated to OFF
2016-03-15 20:41:26 - Smart6 state updated to ON
2016-03-15 20:41:26 - Smart6 received command ON
2016-03-15 20:41:26 - Smart6 state updated to ON
2016-03-15 23:22:53 - Smart6 received command OFF
2016-03-15 23:22:53 - Smart6 state updated to OFF
2016-03-15 23:22:53 - Smart6 state updated to OFF
2016-03-16 08:17:15 - Smart6 received command ON
2016-03-16 08:17:15 - Smart6 state updated to ON
2016-03-16 08:17:15 - Smart6 state updated to ON
2016-03-16 08:40:06 - Smart6 state updated to OFF
2016-03-16 08:40:06 - Smart6 received command OFF
2016-03-16 08:40:06 - Smart6 state updated to OFF

Here is the items configuration

//Aeotec Smart Switch 6 (ZW096)
Switch Smart6                   "Smart6 outlet"                                         (ff,ALL,outlet)              {zwave="2:command=switch_binary" }
Number Smart6_Power             "Smart6 power  [%.2f W]"                        (ALL,power)                  {zwave="2:command=METER,meter_scale=E_W" }
Number Smart6_Energy            "Smart6 consumption  [%.2f KWh]"        (ALL,power)                  {zwave="2:command=METER,meter_scale=E_KWh" }
Number Smart6_Volts             "Smart6 voltage [%.2f V]"                       (ALL,power)                  {zwave="2:command=METER,meter_scale=E_V"}
Number Smart6_Amps              "Smart6 amperage [%.2f A]"                      (ALL,power)                  {zwave="2:command=METER,meter_scale=E_A"}

There were some logs about ignoring events before creating the items, so it was reporting but there were no item to report to, but after configuring the items those logs stopped:

2016-03-14 19:41:24.621 [WARN ] [.z.internal.ZWaveActiveBinding] - NODE 2: No item bound for event, endpoint = 0, command class = SWITCH_BINARY, value = 255, ignoring.
2016-03-14 19:41:24.675 [WARN ] [.z.internal.ZWaveActiveBinding] - NODE 2: No item bound for event, endpoint = 0, command class = METER, value = 0.899, ignoring.
2016-03-14 19:41:24.726 [WARN ] [.z.internal.ZWaveActiveBinding] - NODE 2: No item bound for event, endpoint = 0, command class = METER, value = 193.043, ignoring.
2016-03-14 19:41:24.774 [WARN ] [.z.internal.ZWaveActiveBinding] - NODE 2: No item bound for event, endpoint = 0, command class = METER, value = 0.073, ignoring.
2016-03-14 19:41:24.821 [WARN ] [.z.internal.ZWaveActiveBinding] - NODE 2: No item bound for event, endpoint = 0, command class = METER, value = 227.152, ignoring.
2016-03-14 19:41:24.859 [WARN ] [.z.internal.ZWaveActiveBinding] - NODE 2: No item bound for event, endpoint = 0, command class = SWITCH_MULTILEVEL, value = 99, ignoring.

Anyone faced a similar situation? I’m not sure about the correct commands or configurations.

Thanks in advance

1 Like

I found one specifications sheet:

But I’m not sure about how to configure some configuration commands, for example for selecting how the led behaves.

Use habmin: https://github.com/cdjackson/HABmin

Thank you, I did not realized that I can edit the values. Do you have experience with this device?

No, but I have several other zwave devices and editing the config parameters with habmin works great.

< gesendet von Samsung Smartphone >

I have contacted Aeotec’s support, and this is the response I got, hope it helps anyone else:

 suggest that you set these configuration settings to the Smart Switch 6:

 Parameter 101 [4 byte dec]: 15 (report kwh, watt, voltage, current)
 Parameter 111 [4 byte dec]: 30 (report every 30 seconds)

 Parameter 102 and 103 [4 byte dec]: 0

 See if these new settings to the report groups work for you. You should be getting sensor reports every 30 seconds with this setting.

 Also set Parameter 90 [1 byte dec] to 0 to make sure that selective reporting is disabled.

If anyone knows how to set those parameters using habmin I will be grateful, because I’m not sure how parameters numbers are mapped to parameters names.

Take a look into the zwave database
http://www.cd-jackson.com/index.php/zwave/zwave-device-database/zwave-device-list/devices
and find your device (there are several smart switches, I don’t know which one you have).
Usually you will find the parameter description there …

And for the habmin part, just open the configuration parameters and edit the value. For battery operated devices you need to wake up the device or wait until it wakes up on its own.

Hello again Sihui,

First of all, thank you very much for all your help.
The part of finding the values to configure on openhab was not difficult. The difficult part is to find the specific configuration values that support told me.

Here is my device on the list you provided:
http://www.cd-jackson.com/index.php/zwave/zwave-device-database/zwave-device-list/devicesummary/63

But I can’t find any of the parameters indicated by Aeotec support ( parameters 101,111 and 102) on that database. Is there any other way I can set specific parameters?

Take a look here to set config parameters via items:


But I don’t know if that works if you can’t see the config parameters in habmin, I never tried it.

Hello Sihui,

Thank you very much for your help.
I tried following the instructions described on the github issue, and this is what I get on the log

2016-03-17 22:34:42.353 [ERROR] [.c.ZWaveConfigurationConverter] - NODE 2: Device has no parameter 101.
2016-03-17 22:34:50.614 [ERROR] [.c.ZWaveConfigurationConverter] - NODE 2: Device has no parameter 111.

Reviewing the specification sheet that I posted above I can see that it has parameter 111 and 101

This is what I did

Created two new items

// Config items

Dimmer Smart6_cfg_Report 	"Parameter 101: [%d]"			{zwave="2:command=configuration,parameter=101"}
Dimmer Smart6_cfg_Report_period 	"Parameter 111:  [%d]"			{zwave="2:command=configuration,parameter=111"}

And I added them to a specific sitemap:

sitemap default label="Configurations"
{
	Frame label="Smart6"  {
		Slider item=Smart6_cfg_Report
		Slider item=Smart6_cfg_Report_period
}

}

Any other better way of doing it?
Regards

Actually, hold your horses a bit.

You may not want to reconfigure that device at all. I don’t have smartswitch 6s, but I have I think 12 of the previous generation aeon smart switches. Let me tell ya how it works… :wink:

Factory default is that the smart switch will measure the power going through the smartswitch, and send a metering report only IF the power over the last minute or so has changed by more than 10%. If the power hasn’t changed by more than 10%, then no report is generated.

So what I’m guessing happened to you is that you had some device plugged into that smartswitch, and when you turned it on it started using power and thus the power usage changed by more than 10%. Smart switch tells openhab about it. Turn it off, it again changes by more than 10%, smartswitch tells openhab about it…

…then I’m guessing you either unplugged or turned off the device that was plugged into your smart switch. So you turn on the smartswitch, but since the device is off (or not plugged in), the power doesn’t change by 10% and thus there’s no reason to send an updated power report to openhab.

This is a good thing! It means that your smart switch only sends interesting data over the network. If you only have one or two devices it’s not going to matter one way or another. But if you get a lot of zwave devices on your network configured to always send power reports every X seconds, you wind up in the situation I found myself in where the zwave network is fine but it’s perpetually busy reporting all those unchanged power usage data reports to openhab!

So I’d caution you to think really hard before making this change; I don’t think you actually want to do this in the long run.

Hello TheKorn,

Thank you for your point of view.
The problem was that it was reporting just few times a day, which is obviously not good.
Then I saw parameter 90, which activates parameters 91 and 92. Those two parameters are the minimum percentage (%) change to trigger a report. After activating them, the switch started to report more often.

What confuses me a bit are the consumption (kwh), voltage (v) and amperage values. They never drop to zero, they are usually on similar values, sometimes higher, sometimes lower, but never drop to zero. The only one that drops to zero is the power (w). I think this can be considered normal, but I’m not sue.

Thank you very much
Regards

I also just got my first Smart Switch 6 and I have configured it using OH2 and testing the new zwave2 and habmin2. However, I also only get it to use the binary switch actor, which seems to work fine.

I mapped the thing’s channels for energy metering to corresponding items. However, those items never received any values so far. So I wonder wether I need to enable the metering somehow before it starts sending anything.
And yes, I put some heavy load to the socket (toaster), so there should be some current changes. And I tried to disable parameter 90.

The Smart Switch 6 Extended Manual you referenced is quite helpful. It lists some parameters I do not quite understand, such as
101-103. Do these have to be set somehow in order to enable the metering?

However, in the Device Spec of @chris these values are not present. So they are not available for configuration through HabMin for me.

The ones there are

whatever that means…

and

not sure either what there is to be configured.

Any idea how to configure that switch with OH2?

You need to set that to your controller to get the updates sent from the sensor to the controller.

Not sure how can be configured exactly on OH2, but make sure to enable parameter 90, and adjust parameter 91 and 92.
Sometimes it takes time to the switch to start reporting. Also check the zwave logs to make sure that OH is sending the configuration instructions to the switch.

Hi,

I am having trouble with the same issue and tried to configure my zwave devices in PaperUI. Everytime I try to change a configuration parameter in PaperUI I look at the logs and it seems to updating them, but when I open up PaperUI again it seems again to be rolled back to default values…

How can I make sure that configuration parameters are set in PaperUI ?

Not sure how I did not see this thread, but anyway… Those parameter were missing from the configuration of the smart switch 6 in the database, and were recently added.

Jim, I am trying around now for days to get it working, but looks like I am doing something wrong here…

Can you explain what you configured to make it work ? Do I have to change manually the nodex.xml or how do I get values from my meter reported back into my default.sitemap ?

You should not have to touch the xml file. It is generated by the binding when the device is initialized. If you have modified, it, I would suggest simply removing it and letting it re-generate.

If you are running a version of OH2 bundle that was built at Cloudbees over the last week, you should have all the configuration options in Habmin2 for the device. If you do not see the options above 100, then chances are your software is not up to date, and I can help you with that too. The best way to check is to go to the console (openhab> prompt) and type:
bundle:list|grep -i zwave

This will give you the version of the z-wave binding that is running.