Jaffi Posted September 16 Share Posted September 16 How can I control the Shelly RGBW2 via an API? The API endpoint mentioned everywhere: http://192.168.xx.xx/relay/1?turn=on doesn't work for me. If I enter this into the browser, JSON (?) responds with Not FOUND. The IP address is correct because I can use it to access the web interface and switch. Does anyone have an idea or a tip? Quote Translate Revert translation? English (American) Finnish French German Italian Portuguese (European) Spanish Link to comment Share on other sites More sharing options...
Members thgoebel Posted September 16 Members Share Posted September 16 The Shelly RGWB2 is a generation 1 device: Depending on its general mode, it reacts on /colour or /white commands. https://shelly-api-docs.shelly.cloud/gen1/#shelly-rgbw2-white-settings-actions https://shelly-api-docs.shelly.cloud/gen1/#shelly-rgbw2-color-color-0 Quote Translate Revert translation? English (American) Finnish French German Italian Portuguese (European) Spanish Link to comment Share on other sites More sharing options...
Jaffi Posted September 16 Author Share Posted September 16 OK. Thank you. So what does an http get have to look like so that I can turn on the LED. or, can switch off. Somehow I seem to be too stupid for that. sorry. 😞 Thx Quote Translate Revert translation? English (American) Finnish French German Italian Portuguese (European) Spanish Link to comment Share on other sites More sharing options...
Members thgoebel Posted September 16 Members Share Posted September 16 Here we go: Color mode Light on: http://192.168.xxx.xxx/color/0?turn=on Light off: http://192.168.xxx.xxx/color/0?turn=off Light toggle: http://192.168.xxx.xxx/color/0?turn=toggle Light on with timer (in seconds): http://192.168.xxx.xxx/color/0?turn=on&timer=30 Light off with timer (in seconds): http://192.168.xxx.xxx/color/0?turn=off&timer=30 Light on and set RGBW colors (red, green, blue, white): http://192.168.xxx.xxx/color/0?turn=on&red=255&green=86&blue=112&white=0 Light on and set white only: http://192.168.xxx.xxx/color/0?turn=on&white=20 Light on and set intensity: http://192.168.xxx.xxx/color/0?turn=on&gain=27 White mode Channel 1: 0/R Channel 2: 1/G Channel 3: 2/B Channel 4: 3/W Light on: http://192.168.xxx.xxx/white/0?turn=on Light off: http://192.168.xxx.xxx/white/0?turn=off Light toggle: http://192.168.xxx.xxx/white/0?turn=toggle Light on and set brightness in %: http://192.168.xxx.xxx/white/0?brightness=70 Set brightness in %: http://192.168.xxx.xxx/white/0?brightness=70 Switch on with timer (in seconds): http://192.168.xxx.xxx/white/0?turn=on&timer=30 Switch off with timer (in seconds): http://192.168.xxx.xxx/white/0?turn=off&timer=30 (Source: https://shelly.guide/webhooks-https-requests/) 1 Quote Translate Revert translation? English (American) Finnish French German Italian Portuguese (European) Spanish Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.