Spauzer Posted November 5 Posted November 5 I would like to switch two Shelly 1 mini Gen 3 at the same time. So that when one is switched the other also accepts the same signal. So actually two switches with the same function. Quote Translate Revert translation? English (American) Finnish French German Italian Portuguese (European) Spanish
Heinz Posted November 5 Posted November 5 this can be done with rules placed in the scene section create a scene select when shelly 1 = on then shelly 2 = on Quote Translate Revert translation? English (American) Finnish French German Italian Portuguese (European) Spanish
If_then_else Posted November 5 Posted November 5 Synchronizing 2 Shelly relays with scenes was not successful for me as it always ended in an endless loop. I therefore created a script that synchronizes the 2 Shelly's, with the exception of webhook commands, which are only handled locally. I think it will meet your requirements. /// Synchronize relay output between a remote Shelly v1.0 //////////////////////////////////////////////////////////////////////////////////////////// /// /// Created by HighFive (if then else) © 2024 /// /// Email: highfive(at)smartshome.work /// Email: if_then_else(at)smartshome.work /// //////////////////////////////////////////////////////////////////////////////////////////// /// //////////////////////////////////////////////////////////////////////////////////////////// let remoteIP = "192.168.xxx.xxxx" //////////////////////////////////////////////////////////////////////////////////////////// Shelly.addStatusHandler(function(e) { if ((e.component === "switch:0") && (e.delta.source != "http")) { if (e.delta.output === true) { Shelly.call('HTTP.get', { url: 'http://' + remoteIP + '/relay/0?turn=on', timeout: 1 }); } else if (e.delta.output === false) { Shelly.call('HTTP.get', { url: 'http://' + remoteIP + '/relay/0?turn=off', timeout: 1 }); } } }); //////////////////////////////////////////////////////////////////////////////////////////// /// //////////////////////////////////////////////////////////////////////////////////////////// 1 Quote Translate Revert translation? English (American) Finnish French German Italian Portuguese (European) Spanish
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.