Aeon Smart Energy Switch 6 (gen5) + DSC06106

Energy doesn’t work for me, looking through the code, I don’t see this event firing ever with cmd.scale = 0:

def zwaveEvent(physicalgraph.zwave.commands.meterv3.MeterReport cmd) {
if (cmd.meterType == 1) {
def eventList = []

    if ("$costPerKwh" == "null") {
        logError "costPerKwh is null, please go through the configuration page first"
        return
    }

    if (cmd.scale == 0) {

Nevermind, I stand corrected, it gets called, but throws an exception right there (not sure which line though):

10:34:48 AM: error groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method java.lang.Long#minus.
Cannot resolve which method to invoke for [null] due to overlapping prototypes between:
[class java.lang.Character]
[class java.lang.Number]
10:34:48 AM: debug got kwh 1.452

And nevermind again :slight_smile: Reset fixed a weird null state in state.energyMeterRuntimeStart, so all good now. Now sure how null got in there in the first place though!

I just added an Aeon Smart Switch 6 to my Smart Things collection and am using v 5.2 of the handler. I’m not seeing any reports from the device at all. When I use the generic Z Wave metering switch handler I get readings but I would prefer the additional functionality provided by the @jbisson handler, in particular, I want to monitor current draw.

Here are my settings at the moment:

Name Type Value

costPerKwh decimal
forceStateChangeOnReport bool true
includeCurrentInReport bool true
includeCurrentUsageInReport bool true
includeVoltageInReport bool true
includeWattInReport bool true
isLogLevelDebug bool false
isLogLevelTrace bool false
minimumChangePercent number
minimumChangeWatts number
onlySendReportIfValueChange bool false
refreshInterval number 300
secureInclusionOverride bool false
switchAll enum
switchDisabled bool true

Is is possible that there are problems because I’ve used different handlers with the device and I need to somehow reset things and avoid anything but the @jbisson handler?

Is the default refresh interval somehow a problem?

I don’t intend to do cost monitoring so I left the costPerKwh undefined. Is that a problem?

My goal is to pull data from the reports and add them to an influxdb database, but since I can’t seem to get any reporting at all, I’m stuck.

Thanks in advance,

– Rich

Actually, I seem to be getting power and energy information but not current and voltage, even though the current and voltage settings are both set to be true. Color me confused.

This device is finicky. Give it a little longer and see if those missing values start reporting.

Seven hours and still no current and voltage reporting.

What should I try next?

Reading again, I’m not clear. Are you using the JBISSON handler or not? That’s the only one I’m familiar myself with on this device. On the latter there’s a configure button on the main device page. Tapping that will send settings changes to the device (no message comes back so it looks like nothing happens).

Again, I’ve not used the stock handler. Perhaps it’s not setup for current and voltage.

Yes, I am using the @jbisson handler. I will try the configure button again. I think I’ve done it before, but I will do so again. I’m really confused about why some settings would appear to be honored and others not.

Yes, me too. I’ve had other issues with this handler (many of which have been resolved, some remain), but this is not one of them.

You may need to exclude the device totally and add back to SmartThings. Before adding back make sure the handler is already installed.

I was thinking about that approach. Thank you for your indulgence.

@RERobbins Can you try these:

  • Refresh interval: 30
  • force state change: on
  • only send report if value change: off
  • cost per kwh: 0.12
  • include energy meting: on
  • include voltage: on
  • include current: on
    include current usage: on
    show trace log level: on
    show debug log level: on

click save. Click reset, click configure and double touch the icon text at the bottom (you should see app version and some text).
if it still doesn’t work could you paste the logs within https://graph.api.smartthings.com/ide/logs

When I use the Smart Things app on iOS to change to the settings you specified I get an error that says “Oops looks like you need to double check some inputs”.

I’m not sure what causes that issue, I was however able to change the settings from the relevant device page on smartthings.com.

I will report back shortly.

I decided to exclude the device and then add the device back to the collection. It seems to be working now. I don’t understand the “oops you look like you need to double check” error. I cannot configure the device using the iOS app but am able to accomplish what I need from the smarthings.com site.

Good news.

While I’ve had my hands in the handler some I can’t explain the issue you have with the config from iOS, sorry.

Glad you otherwise got things sorted.

@RERobbins Next time it happens, could you look in the live logging (in smartthings), it should indicate what was wrong…

I tried changing the cost per kWh from the iOS app and got the following
logging information:

c446ab40-de71-4646-990b-66cf6016d882
https://graph-na04-useast2.api.smartthings.com/ide/logs#c446ab40-de71-4646-990b-66cf6016d882
3:58:00 PM: trace cmd: 'BasicReport(value: 255)'
c446ab40-de71-4646-990b-66cf6016d882
https://graph-na04-useast2.api.smartthings.com/ide/logs#c446ab40-de71-4646-990b-66cf6016d882
3:58:00 PM: trace parse: 'zw device: 14, command: 2003, payload: FF '
c446ab40-de71-4646-990b-66cf6016d882
https://graph-na04-useast2.api.smartthings.com/ide/logs#c446ab40-de71-4646-990b-66cf6016d882
3:57:36 PM: debug got wattage 266.719
c446ab40-de71-4646-990b-66cf6016d882
https://graph-na04-useast2.api.smartthings.com/ide/logs#c446ab40-de71-4646-990b-66cf6016d882
3:57:36 PM: trace cmd: 'MeterReport(deltaTime: 0, meterType: 1,
meterValue: [0, 4, 17, 223], precision: 3, previousMeterValue: [0, 0, 0,
0], rateType: 1, scale: 2, scale2: false, scaledMeterValue: 266.719,
scaledPreviousMeterValue: 0.000, size: 4)'
c446ab40-de71-4646-990b-66cf6016d882
https://graph-na04-useast2.api.smartthings.com/ide/logs#c446ab40-de71-4646-990b-66cf6016d882
3:57:36 PM: trace parse: 'zw device: 14, command: 3202, payload: 21 74 00
04 11 DF 00 00 00 00 00 00 00 00 00 00 '
c446ab40-de71-4646-990b-66cf6016d882
https://graph-na04-useast2.api.smartthings.com/ide/logs#c446ab40-de71-4646-990b-66cf6016d882
3:57:17 PM: trace Formatting unsecured command: MeterGet(reserved00: 0,
reserved202: 0, scale: 5)
c446ab40-de71-4646-990b-66cf6016d882
https://graph-na04-useast2.api.smartthings.com/ide/logs#c446ab40-de71-4646-990b-66cf6016d882
3:57:17 PM: trace Formatting unsecured command: MeterGet(reserved00: 0,
reserved202: 0, scale: 4)
c446ab40-de71-4646-990b-66cf6016d882
https://graph-na04-useast2.api.smartthings.com/ide/logs#c446ab40-de71-4646-990b-66cf6016d882
3:57:17 PM: trace Formatting unsecured command: MeterGet(reserved00: 0,
reserved202: 0, scale: 2)
c446ab40-de71-4646-990b-66cf6016d882
https://graph-na04-useast2.api.smartthings.com/ide/logs#c446ab40-de71-4646-990b-66cf6016d882
3:57:17 PM: trace Formatting unsecured command: MeterGet(reserved00: 0,
reserved202: 0, scale: 1)
c446ab40-de71-4646-990b-66cf6016d882
https://graph-na04-useast2.api.smartthings.com/ide/logs#c446ab40-de71-4646-990b-66cf6016d882
3:57:17 PM: trace Formatting unsecured command: MeterGet(reserved00: 0,
reserved202: 0, scale: 0)
c446ab40-de71-4646-990b-66cf6016d882
https://graph-na04-useast2.api.smartthings.com/ide/logs#c446ab40-de71-4646-990b-66cf6016d882
3:57:17 PM: trace Formatting unsecured command: SwitchBinaryGet()
c446ab40-de71-4646-990b-66cf6016d882
https://graph-na04-useast2.api.smartthings.com/ide/logs#c446ab40-de71-4646-990b-66cf6016d882
3:57:17 PM: trace poll()

Doesn’t seems to have any errors. When you try to save and you get an error, could you go down and fill all the required field? Don’t leave any empty field, it could be validation issues.

First, let me say thank you for a handler that allows me to disable the switch. I want to use a couple of these on appliances like a freezer and refrigerator to monitor power but was afraid of making an expensive mistake and accidentally turning the switch off. I see that you modified the DTH for the DCS06106 a few days ago. When I tried create the DTH from code in SmartThings, I received a compile error. There is a closed parenthesis on line 485 before the closed quote after minimumChangePercent that should be after the quote. After I moved the parenthesis, I was able to compile the DTH and so far it is working fine for me. Thanks again!

@Ron_Darling thanks for reporting it, I just submitted the fix :slight_smile: was a copy paste typo, doh!!!