dpjanes / iotdb-smartthings

Demonstration of how to write APIs that communicate with SmartThings
Apache License 2.0
112 stars 45 forks source link

How to dim or change color of a switch? #12

Open hkoren opened 8 years ago

hkoren commented 8 years ago

I tried setting level=.... but that just turns off the switch

dpjanes commented 8 years ago

I only developed for what I have. The code's quite easy to modify, if you want to fork and make a patch to add new features.

hkoren commented 7 years ago

Wish I knew the modifications to make.... This seems to indicate some dimmer functionality is available but I can't seem how to indicate that my switch is a dimmer switch https://iotdb.org/iotdb/models/light-dimmer

dpjanes commented 7 years ago

Switches can be on or off, that's what they do. Can you give more information about your smartthings set, what type of switch it is, etc.. I'm interested in helping, but I can't guess what your setup is.

hkoren commented 7 years ago

I'm using a GoControl Z-Wave Plug-in Dimmer Module. Looking through the code and docs it seems like I will need to add capability.switchLevel to the IOTDB.bridge smartapp for this control to be possible.

dpjanes commented 7 years ago

Yes, that sounds about right. The pattern for adding this to the code is quite simple.