So I wrote an application borrowing from both authors that combines George’s monitor (without all of his fancy add ons - which are kinda cool) with Geko’s use of the poll() method on a schedule to keep the switch active.
Cost metering was not the intent of the application. I use it to send a message when the power meter senses that a cycle of usage as ended.
It looks like someone has added a device type over in this thread Adding kwh cost to Aeon Labs Smart Switch, but it looks like it is a work in progress. The basic device reports energy in kilowatt-hours (kWh), so it should be simple math to figure out cost (assuming you do not have time-of-day pricing for electricity).
Can you explain more what you mean by the hub marking the device as inactive? I’m using these exact same devices with my own device type (referenced in the post by @sudarkoff ) and I don’t have a need to automatically poll them using Pollster. I only am really caring about instantaneous wattage though which updates every few minutes on its own.
For what it’s worth though, I do utilize Pollster for a few non-supported switches and it works great for what it is.
So my meter switch is on my washing machine. The washing machine in my house is used infrequently (once a week on Saturdays or Sundays). Since I had no application that polls the switch frequently, I would see it’s status turn to INACTIVE in the SmartThings Device List from the web interface. The instant I would turn off/on the device using the Android App, it would return to an ACTIVE state, and start reporting again. If I failed to do this step before using the washing machine, I would not see the activity reported by the SmartApp to the hub. But eventually, it would return to the INACTIVE state.
After talking with another user, he mentioned that polling the switch using Pollster would keep it in ACTIVE state (I guess the hub is supposed to poll the device on a schedule but something is amiss there). It just seemed like a kludge to install another SmartApp to make another one work. So this app polls like Pollster, and monitors like the Laundry Monitor.
One other thing, my Aeon Labs DSC06106-ZWUS - Z-Wave Smart Energy Switch is installed just as a “Z-Wave Metering Switch”. I did not write my own device type, just used on that was already available. Maybe that is the difference. I tried to keep it simple and not write a SmartApp and a DeviceType.
That’s interesting. I have a bunch of devices that are listed as INACTIVE and it doesn’t appear to have any negative effects anywhere. I essentially ignore the boolean status. You can “go into” the device and see when the last activity was, which I’m guessing is a better indicator of when it last communicated. Must be something with these devices that makes it unique and fail then? I also have two of these tied to our washer and dryer, continually reporting 0 (or 1 as one of my machines bottoms out at 1) when not in use. For what it is worth, spot checking my two right now does list them both as ACTIVE. I tend to agree with the problem likely being in the device type you’re using. I created my own because I was having issues with that device type which very likely might be the issues you’re seeing now. We just solved the problem in different ways.
All that being said, if this is working for you than great! Set it up and walk away very slowly…so you don’t scare it.
I’m having an issue with this device, no matter which device type I use. It is not reporting the energy levels at all. I can hit refresh and it displays the energy level, but it doesn’t show up in the Device events. I’m trying to use Laundry Monitor to notify when my laundry is done, but its never registering any events. Anyone see this issue? I’m worried there might be an issue with the actual device I received.
Edit- I’ve tried this device type and the default Z Wave Energy Switch type, along with Pollster in every configuration possible. I can see in the Device Events that pollster is polling, but no data is coming back. I have no issues with the actual mechanical switch, that works absolutely fine.
Yes, I understand how to create the device type, I used your device type, and it is still not sending the energy level to the device events. Both your device type and the default type are not showing up in the log.
If you turn on debugging in the preferences, you should see a logging when you press the “refresh” button in the phone app. You should also see periodic logging from the device if debugging is turned on.
I hate to give the “Have you turned it off and on again” answer but did you try removing the device and adding it back?