3 RollerShutter on one ESP8266

dominom
Posts: 11
Joined: Wed Jul 12, 2023 3:04 pm

Post

Hello, can i configure on one ESP8266 3 RollerShutters ( 6 relays)?

Supla::Control::RollerShutter *rs = new Supla::Control::RollerShutter(D0, D1, false);
Supla::Control::Button *buttonOpen = new Supla::Control::Button(12, true, true);
Supla::Control::Button *buttonClose = new Supla::Control::Button(14, true, true);

How should i modify the code to add additinal 2 RollerShutter and 4 Control::Button

Thank you
User avatar
klew
Posts: 13907
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław
Has thanked: 134 times
Been thanked: 137 times

Post

dominom wrote: Thu Jul 13, 2023 3:35 pm Hello, can i configure on one ESP8266 3 RollerShutters ( 6 relays)?

Supla::Control::RollerShutter *rs = new Supla::Control::RollerShutter(D0, D1, false);
Supla::Control::Button *buttonOpen = new Supla::Control::Button(12, true, true);
Supla::Control::Button *buttonClose = new Supla::Control::Button(14, true, true);

How should i modify the code to add additinal 2 RollerShutter and 4 Control::Button

Thank you
Just repeat the same code, but use different variable names, i.e rs1, rs2 etc
You should also adjust GPIO settings for each relay and button

Btw, have you tried to use GuiGeneric? https://gui-generic-builder.supla.io/
Najlepsze suple dla Twojego domu :mrgreen:
radzik_r
Posts: 468
Joined: Sun Aug 11, 2019 5:32 pm
Has thanked: 1 time
Been thanked: 2 times

Post

dominom wrote: Thu Jul 13, 2023 3:35 pm Hello, can i configure on one ESP8266 3 RollerShutters ( 6 relays)?

Supla::Control::RollerShutter *rs = new Supla::Control::RollerShutter(D0, D1, false);
Supla::Control::Button *buttonOpen = new Supla::Control::Button(12, true, true);
Supla::Control::Button *buttonClose = new Supla::Control::Button(14, true, true);

How should i modify the code to add additinal 2 RollerShutter and 4 Control::Button

Thank you
Rather not, the esp8266 has too little gpio for 3 button-operated blinds.
for 3 blinds you need 12 gpio.
So either esp8266 + macp23017 or esp32.

Return to “Help”