I think i found it…got 1 switch working now. Needed to run your app from my phone…thanks
@michaelahess I found a way to delete an installed SmartApp from the ide.
My Locations > smartapps > “edit” button towards the top > Then click on “uninstall” on the SmartApp that is giving you problems.
Tried that, said there was an error and it couldn’t do it sent an email to support yesterday, we’ll see if they can clean it up.
I’m pretty sure it’s my fault, instead of just uninstalling the app “the right way” I wasn’t thinking and removed all the vs’ from the app, so only the physical device was associated with the smartapp, then I deleted the vs’, then I REALLY stupidly deleted the device type, then tried to delete the parent smartapp. I’m 99% certain that put it into a WTF state and is giving me the errors.
After putting everything back “right” it wouldn’t let me create a new vs even, totally FUBAR’d it.
Support gave me an idea, and it seems to have worked. Even though the old Cooper Lee smartapp wasn’t associated with the actual smart strip devices anymore, it might be “under the hood” so I removed all smartapps linked to the strips, pollster didn’t remove even though it showed it wasn’t associated, but soon as I did that, and set the broken smartapp instances back to the strips, it let me delete the smartapp instances, then the smartapps! This also removed all the virtual switches that had been created by that app.
So now I’m going through and re-adding all the virtual switches, but after linking them with your smartapp, they aren’t updating except for showing the 4 switched outlet power levels. The previous virtual switches, which were created with the Cooper Lee app, had shown all stuff correctly, the two unswitched outlets and the power strip itself as well as the 5 actual switches.
I’m too confused at this point after all I’ve done to figure out how this happened, but after I recreate everything I’ll think it through again.
@michaelahess Hmmmm, I’m not sure what could be going on. Possibly platform issues? Are you using my device handler? Are all of its functions working?
There really isn’t much to the sync app and it is working for me on my Aeon and Philio. The virtual switches that you created are using the Simulated Energy Switch device type?
Yeah, using your device handler, everything works as it should. I’m sure it’s platform issues or something with my account, I’ve had some weird things lately. Support said there is an issue with github integration, and I have other devices that say they are associated to certain smartapps that never were.
I’m going to wipe and redo a lot of things, try to clean it all up. I’m sure it’s not your code.
Thanks erocm1231. This works very well. I did note one issue, which doesn’t matter to me, but might to others. The kWh reading is always zero for all the virtual devices as well as the SmartStrip master. The W reading is good for all.
@Sorapp The kWh reading might not actually show anything other than 0 until there is a change in its value. It kind of depends on when you started using my device type and if you were using someone else’s.
You might want to check in a few days. Also, it should set the configuration parameters for reporting automatically, but if you want to make sure, press the configure button in the app for the device.
Apparently it must accumulate over time because now, about 3 hours later, there are kWh readings. Sorry for the false alarm. Your routines are really great they do just what I wanted. Thanks again.
So, I’ve removed and recreated the virtual smartapp instances and the virtual switches. The listed states are what’s not working I guess, some say “no states found” some say just power, some say power, energy, and switch. Like it’s not syncing them completely.
Before when I was having all the other troubles, I set 8 virtual switches in the smartapp instance and assigned them to the four switches and the outlets and the master power and switch, and they all worked, I think it was actually remnants of the Cooper Lee stuff, so it was covering up other issues.
Any idea why the fresh new ones wouldn’t want to update? Or where I could look to see what they are doing or think they should be doing?
@michaelahess So my Physical / Virtual sync only supports switches named switch1, switch2, switch3, etc. My device type only has switch1, switch2, switch3, and switch4 (these are the 4 switched outlets on the strip). So with my device type and my SmartApp you can only have virtual switches with the 4 switched outlets. That is probably why it isn’t working for you.
All of the physical / virtual sync type apps I have seen work in this way. The one you were using before mine is an exception.
I don’t plan on ever syncing the “master” switch with a virtual switch because it works with SmartThings as is. I didn’t plan on syncing the two extra outlets with “virtual outlets”, but I will consider it.
Cool, good to know that’s how all these work. It’s not a big deal with the master like you said, just struck me being so different. The two outlets really don’t matter either tbh, I don’t monitor them individually. Thanks for doing this one!
wanted to thank you for your device type code and smartapp. I love the Aeon SmartStrip and it did a fantastic job with my xmas lights this past year but I had to use the default device type which was laggy and didn’t give me good readouts. I was using the old code that @cooperglee had out there. The device type worked well and I got consistent read outs but I could not use the smartapp to save my life. I had errors all over the place. So I went back to using the default device type again.
Anyways when activity picked back up in this thread I saw your code and gave it a shot tonight and everything worked flawlessly. Including the virtual switches which I notoriously have issues with. So Thank you! I’ll be looking into getting more of these for around the house!
@Stacy_Butera Glad it is working well for you.
@erocm1231 installing your aeon strip DTH and Virtual/Physical Switch app today. saw this typo on the virtual/physical app… Thanks for the app! really excited to use it.
Thanks, spelling error has been fixed.
I have one of these, do we still need to use the virtual switches or is there an easier way now?
I still use the virtual switches and it works like a charm!
Yes the virtual switches is what makes the power strip so great.
Can someone please point me to where I can find the device type code and SmartApp?
Has tried controlling this with a Aeotec remote (v1 or v2)? I would like to be able to hit a button 1 or switch 1 to turn on strip socket 1, 2 for2, and so on.
Thank you for you help on both questions.