thibautsabot / streamdeck-plugin-smartthings

Smartthings plugin for StreamDeck
40 stars 5 forks source link

Dimmer Controls #3

Closed eracer001 closed 2 years ago

eracer001 commented 2 years ago

This is SOO helpful, thank you for creating this. I just wanted to ask if it might be possible to add dimmer controls? Basically to increase or decrease a light brightness, or maybe a fan speed?

thibautsabot commented 2 years ago

Hello!

I'm glad you find the plugin useful. 🙂

I just released a new version of the plugin (https://github.com/thibautsabot/streamdeck-plugin-smartthings/releases/tag/1.2.0) with the option to make the light brighter or darker. Each press will increase or decrease the light by 10%. You need to select the behaviour:

image

By default it'll still be "Toggle" (switching it on and off) like the previous versions.

For the fan speed, I unfortunately cannot test it as I don't have any.

Don't hesitate to provide feedback on the feature!

Thank you.

eracer001 commented 2 years ago

Thanks for the response! I think there's some bugs in this. It seems like it constantly reverts back to toggle if you click off of a device's settings. Also, it seems that the device has to be reset (after fetching devices again) each time a setting is changed. I got brighter/darker working, but only after messing with settings a lot, and once I clicked off the device (in stream deck settings), it reverted to toggle or did not work at all. Hope that helps.

I also checked if it worked with a fan controller, and it does not. Thank you for the effort you're putting into getting this working.

thibautsabot commented 2 years ago

Could you try this version? https://file.io/WN53I8JWklmX

This selected device and behaviour should now be restored. (To be extra sure, you should probably uninstall the previous version before installing this one).

For the fans, it won't work since I only own switch devices (light) and cannot test any other hardware.

eracer001 commented 2 years ago

That one didn't seem to have any dimming function.

thibautsabot commented 2 years ago

Weird.. I made another release here https://github.com/thibautsabot/streamdeck-plugin-smartthings/releases/tag/1.2.1

eracer001 commented 2 years ago

This seems to be working. Thank you!

eracer001 commented 2 years ago

By the way--it works for lowering and increasing fan controls now as well. Thanks a ton!

thibautsabot commented 2 years ago

Awesome! Thank you for taking the time to test it!