Just recently switched to SharpTools due to death of WebCORE on Smartthings hub, and still learning
… still testing with the free version so my aim for the moment is try to avoid using variables.
The issue that I have is that it seems like input argument can be either fixed number or a variable, not the device/capability. And this seems to be a case for both conditions and actions. Is there any way to do this, without using variables?
Here is a simple example:
If (dimmer) level of light 1 is higher than (dimmer) level of light 2 Then set level of light 2 to the one of light 1 Else set level of light 1 to the one of light 2
or example of water heater control based on price I had in WebCORE
If (current) price is lower than (minimum) price + 10 Then turn off heater switch If power is less than 100W for 5 minutes Then turn off heater switch
Now I didn’t really expect I will be able to achieve this 2nd example without variables (since you don’t directly compare it, but you compare to some calculated value) but I’m kinda surprised you can’t compare 2 devices capabilities without creating a variable for one. This only complicates stuff.