I don’t think you can do this with the switch. You can definitely do it with a button controller, like a minimote, and there is a smartapp for that. But that doesn’t help you with the Harmony remote.
Just in case you are interested in that option, here’s that code:
Thought I would share a modification I made to the SmartThings button controller app.
I have added a “Fan” section that allows the user to cycle through fan modes by pushing the button. Using this in conjunction with the “hold” feature and I have programmed my Aeon Minimote to do the following:
Push Button: Turn on Fan to Low
Push Button Again: Change Fan Speed to Medium
Push Button Again: Change Fan Speed to High
Push Button Again: Turn off Fan
Any time I Hold the Button, Fan turns Off/On
/**
* Copyright 2015
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law …
The only possibility I can think that might work with a switch you could control from Harmony is core. It might be able to do this. I would ask in the peer assistance thread, The folks there will know if it’s possible.
CoRE (now WebCore) is a very powerful community – created rules engine for SmartThings. It allows you to set up stacked conditionals like “If A then B but only while C and not if D.”
Setting it up can be quite complex, but there are many community members who will be glad to help you.
For example, here is a piston that one member created to notify him if the dog had already been fed twice that day and he picked up the dog bowl for a third time. He needed this because he has a large family and people didn’t always remember whose turn it was to feed the dog.
[image]
The original version of CoRE Has now been replaced by a new version, WebCoRE, which moves the data entry to a web interface. This allows for flexibility and an architecture that requires more memory than is av…