Easiest way to control multiple switches from one switch Topic is solved

Moderator: leecollings

Post Reply
User avatar
Domoberry
Posts: 126
Joined: Tuesday 30 May 2017 19:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Contact:

Easiest way to control multiple switches from one switch

Post by Domoberry »

Hi Forum,
Typical use case this season: got a few smart plugs controlling some xmas lights and I want the timer in a one of the switches to control them all.
What is the most simple and/or practical way to achieve this?

Initially, I assumed 'slave/sub devices' would be the way to go, but as the Wiki already suggests ("one of the most difficult chapters" :D ) I cannot get my head around it for this purpose.
A Dzvents script triggered by a switch and sync the others accordingly seems straightforward.
Or, using a series of json commands with 'on action' / 'off action' to propagate from one switch to the other
or?

probably quite simple...
imautohuttraeger
Posts: 172
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.1
Location: Germany
Contact:

Re: Easiest way to control multiple switches from one switch

Post by imautohuttraeger »

Make a scene, include all the devices you want to control and set the timer(s). That's all. Can be done in a few minutes. I do this with roller shutters and you can do it with smart plugs as well.

So this is not a sync of a "leading" smart plug. But you can interpret this scene as the (virtual) master plug ;-)
Attachments
scene2.jpg
scene2.jpg (20.17 KiB) Viewed 2702 times
scene1.jpg
scene1.jpg (13 KiB) Viewed 2702 times
User avatar
Domoberry
Posts: 126
Joined: Tuesday 30 May 2017 19:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Contact:

Re: Easiest way to control multiple switches from one switch

Post by Domoberry »

Hi Imautohuttraeger,

Thanks for the tip, just what I need and simple!!
Capture.JPG
Capture.JPG (16.45 KiB) Viewed 2697 times
My first group...

I did however opt for 'Group' rather than 'Scene' as a Group more closely resembles what I was looking for.
imautohuttraeger
Posts: 172
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.1
Location: Germany
Contact:

Re: Easiest way to control multiple switches from one switch

Post by imautohuttraeger »

👍👍👍
Patricen
Posts: 119
Joined: Tuesday 06 February 2018 18:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta rel
Contact:

Re: Easiest way to control multiple switches from one switch

Post by Patricen »

Did you succeed?
I'm trying to set-up a scene for Melcloud (Mitsubishi air conditioner) that is controlled with a set of switches (mode level switch for off/warm/cold/vent..., temp that is also a level switch, one level for each temperature and many other switches).
I just would like to make a scene or group that sets mode to warm and temperature to 20° but it does not look reliable, although manipulating the individual switches works correctly.
Finally I would like to setup a timer for this scene/group.
I'm using stable version 2020.2 and finally wondering about the fact there might be a bug, but it looks surprising to me.
imautohuttraeger
Posts: 172
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.1
Location: Germany
Contact:

Re: Easiest way to control multiple switches from one switch

Post by imautohuttraeger »

Seems as if your switches are not simple on/off switches. I guess if you want to control selector switches you need to make a script (under menu point "Events") that can handle different states of a particular switch.
Patricen
Posts: 119
Joined: Tuesday 06 February 2018 18:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta rel
Contact:

Re: Easiest way to control multiple switches from one switch

Post by Patricen »

Indeed, it looks like!
Weirdly the level is nevertheless implemented in the group définition.
I tried making a simple blocky logical control in place of the group but this idies not works better.
There might be an issue on the python plugin...
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Easiest way to control multiple switches from one switch

Post by waaren »

imautohuttraeger wrote: Wednesday 25 November 2020 13:10 Seems as if your switches are not simple on/off switches. I guess if you want to control selector switches you need to make a script.
Scenes and Groups are perfectly capable of setting a selector switches or dimmer switches to any available level. No need to script fot that purpose.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Patricen
Posts: 119
Joined: Tuesday 06 February 2018 18:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta rel
Contact:

Re: Easiest way to control multiple switches from one switch

Post by Patricen »

@Waaren, on multilevel grouped switches, there are fields for both on/off and level. Do you have more piece of information regarding this?
To my opinion, level 0% means off but what does on means?
Best,

Patrice
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Easiest way to control multiple switches from one switch

Post by waaren »

Patricen wrote: Wednesday 25 November 2020 17:30 @Waaren, on multilevel grouped switches, there are fields for both on/off and level. Do you have more piece of information regarding this?
Scene on
When configured as On + level > 0 -->> switches to the set level (is implicit On).
When configured as Off + any level -->> switches to level 0 and Off
When configured as On + level 0 -->> switches to level 0 and Off

Group On
When configured as level > 0 -->> switches to the set level (is implicit On).
When configured as level 0 --->> switches to level 0 (is implicit Off)

Group Off
When configured as level > 0 -->> switches to level 0 (is implicit Off).
When configured as level 0 --->> switches to level 0 (is implicit Off) // Yes no change but can trigger a subsequent event.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
jefft
Posts: 75
Joined: Monday 23 January 2017 23:30
Target OS: Linux
Domoticz version: 2023.1
Location: UK
Contact:

Re: Easiest way to control multiple switches from one switch

Post by jefft »

How about using the first switch as the activation device in a scene with the others?
Domoticz, Z-Stick Gen.5, zzh Zigbee, rxftrx433XL on Ubuntu 22.04, HP 290 G1.
Node Red, MQTT, 80+ Z-wave, ESP8266 & Shelly, handful of Zigbee bulbs. EMS-ESP gateway for Bosch boiler. Controlicz, until it dies :-(
jeroenkl
Posts: 113
Joined: Sunday 14 July 2013 22:00
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: NL
Contact:

Re: Easiest way to control multiple switches from one switch

Post by jeroenkl »

only missing the option to change the scene/group icons
imautohuttraeger
Posts: 172
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.1
Location: Germany
Contact:

Re: Easiest way to control multiple switches from one switch

Post by imautohuttraeger »

waaren wrote: Wednesday 25 November 2020 16:48
imautohuttraeger wrote: Wednesday 25 November 2020 13:10 Seems as if your switches are not simple on/off switches. I guess if you want to control selector switches you need to make a script.
Scenes and Groups are perfectly capable of setting a selector switches or dimmer switches to any available level. No need to script fot that purpose.
Oh - I haven't known this, thanks. Seems to be quite interesting - I will busy myself with it now.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest