Hi @erocm1231 thanks again for sharing this with me on another thread. After testing it, here are a few issues that I noticed. However, you are the only game in town that auto-refreshes the ST app w/o having to poll or refresh.
- Amazon Echo turns both switches on but I can easily just point to the first switch in the code and comment out the second call. Echo always runs the on() and off() functions from my experience.
- This installs a single device for two switches. Making it impossible for me to do any automation (SmartLights or Rule Machine) with the second switch.
- The default device that ST uses (and that I’ve been using for a while, which does not report the status to children) has source available from ST via “create from template”. This begs the question of what your secret is for accurately reporting switch state and whether the default ST device code can be hacked up to be as respectful since it has one thing that I feel is needed which is creating/having child devices to make any automation possible.
- If you’re aware of any other device/smartapp that will help in automating that SECOND switch, I’m all ears. I wish there was some way to “subscribe” to a Device function call like your on2() or off2() which would make this super-easy. There may be a way with SmartApps to do so but I’m way more experienced with Device Handlers.
Thanks again, awesome device implementation and worked just like you said when I manually flip the physical switch… ST was QUICK to update the tile.