Since we have not worked as a SmartThings developer and are not yet familiar with the tools or programmability, we are asking the developers if what we need to do is within the capabilities of this product.
We have a 120VAC lighting application but the load itself does not linearly follow the voltage applied to it. To set the dimming to 75% you might provide 60 VAC, to set the dimming to 50% you might set the voltage to 30VAC, for 25% you might set the voltage to 10VAC. We maintain an internal table which converts dimming percentages to voltage required.
If someone using a dimmer switch as input, sets it to 75%, we want to provide that 60VAC to the load. Or, if someone from a SmartPhone app sets the dimmer to 75%, we need to provide 60VAC to the load.
If someone wants to slowly dim the light from 0% to 100% over a 10 second period, we would need to send a series of voltage setting over the 10 second period which provided that set of voltages which would smoothly change the dimming from 100% down to 0%.
It is unclear what functions operate in the cloud as opposed to which operate in the hub. If in the case of the slow dimming function, it is operated out of the cloud, we are concerned about insuring the proper voltage setting are provided at the right timing to insure the light smoothly appears to dim from 0% to 100%. It would seem to us that we would want that function to operate in the local hub.
In the case when a user, through the smartphone app says âset the dimmer to 75%â, that operation seem more straight forward where we would want our custom application to receive the 75% request and then to output a command to tell the dimmer to go to 50% which would output the 60VAC that would be required.
Does it seem feasible to write custom code for the simple case of capturing the input request and then setting the load on a dimmer to the desired value? Does it seem feasible to write code to intercept a request to dim over a period of time and have that code send the necessary sequence of commands for the setting of the necessary voltages over time. (Because we are working with dimmers that are linear (go from 0% to 100%), when we say âset the voltageâ we really mean that we would command the dimmer to a particular setting from 0% to 100% which results in the output voltage that we desire).