shelly-tools / shelly-script-examples

Shelly mJS Scripting examples
GNU Affero General Public License v3.0
72 stars 21 forks source link

Shelly 2 Hue Script - Adoption to Hue Groups & usage of switch instead of button #1

Closed 2slow4u closed 2 years ago

2slow4u commented 2 years ago

Hi, I saw your script to control a Hue lightbulb via Shelly today.

Unfortunately it did not quite match my setup, as I need to toggle a group of Hue Lightbulbs and I'm using a switch instead of a button. Therefore I used your script as a basis, but adopted it to fit my setup.

In case you'd like to take a look and maybe use this also in some of your setup, please feel free to do so: https://github.com/2slow4u/Scripts/blob/main/Shelly/Shelly2Hue_Switch.js

Take care! T

mf-1 commented 2 years ago

Have a look into this script.

https://github.com/mf-1/shelly-script-examples/blob/main/shelly-plus-2pm_switch_controller_hue-relay.js

eurich commented 2 years ago

@2slow4u @mf-1 great to see others working on scripts, too :) I'd be happy to add your scripts, feel free to send a Pull request.

mf-1 commented 2 years ago

I'd be happy to add your scripts, feel free to send a Pull request.

@eurich Already done some days ago ...

image

eurich commented 2 years ago

thank you @mf-1 and sorry for the delay..