Hello everybody.
I have a doubt, can I put 3 relays in the same channel in supla and control them independently?
Thanks in advance
Fredy
3 relays same channel
-
frmauricio
- Posts: 12
- Joined: Mon May 22, 2023 4:01 am
I want to control 3 relays on the same supla channel, just that.
-
klew
- Posts: 13911
- Joined: Thu Jun 27, 2019 12:16 pm
- Location: Wrocław
- Has thanked: 135 times
- Been thanked: 137 times
You have few options:
1. Use one relay per channel and group them in Supla, so you can control group instead of single channel
2. You can write your own implementatiotion of Supla::Control::Relay class and make it control as many GPIOs as you want, then compile your program for your device and flash it.
1. Use one relay per channel and group them in Supla, so you can control group instead of single channel
2. You can write your own implementatiotion of Supla::Control::Relay class and make it control as many GPIOs as you want, then compile your program for your device and flash it.
Najlepsze suple dla Twojego domu 
-
Robert Błaszczak
- Posts: 5222
- Joined: Sat Dec 22, 2018 8:55 pm
- Location: Zielona Góra
- Has thanked: 37 times
- Been thanked: 27 times
You can also electrically connect 3 relays to one GPIO.
The author must specify what he wants to achieve.
The author must specify what he wants to achieve.
Pozdrawiam
Robert Błaszczak
Moja prywatna strona: www.blaszczak.pl
Robert Błaszczak
Moja prywatna strona: www.blaszczak.pl
-
frmauricio
- Posts: 12
- Joined: Mon May 22, 2023 4:01 am
Hello Klee,
How can I do the first option that you suggested?
One relay per channel and group in Supla
Thanks in advance
How can I do the first option that you suggested?
One relay per channel and group in Supla
Thanks in advance
klew wrote: Tue Jun 27, 2023 8:26 am You have few options:
1. Use one relay per channel and group them in Supla, so you can control group instead of single channel
2. You can write your own implementatiotion of Supla::Control::Relay class and make it control as many GPIOs as you want, then compile your program for your device and flash it.
-
frmauricio
- Posts: 12
- Joined: Mon May 22, 2023 4:01 am
Thanks Robert
Robert Błaszczak wrote: Tue Jun 27, 2023 11:56 am You can also electrically connect 3 relays to one GPIO.
The author must specify what he wants to achieve.
-
klew
- Posts: 13911
- Joined: Thu Jun 27, 2019 12:16 pm
- Location: Wrocław
- Has thanked: 135 times
- Been thanked: 137 times
Channel grouping is available at Cloud. So basically you will have 3 separate Relay channels and in Cloud you can group them. Then in app you'll see it in "groups" tab and you can control them together (turn on/off all at once)frmauricio wrote: Fri Jun 30, 2023 2:39 am Hello Klee,
How can I do the first option that you suggested?
One relay per channel and group in Supla
Thanks in advance
Najlepsze suple dla Twojego domu 
