Maniek913 wrote: Sun Jan 04, 2026 10:27 am Możesz podrzucić przykład? jak to napisać? - kompilując z nową biblioteką przykład z Arduino IDE nie widzę opcji fasadówek
Code: Select all
rs->addTiltFunctions();
Maniek913 wrote: Sun Jan 04, 2026 10:27 am Możesz podrzucić przykład? jak to napisać? - kompilując z nową biblioteką przykład z Arduino IDE nie widzę opcji fasadówek
Code: Select all
rs->addTiltFunctions();
W cloud nie ma funkcji do wyboru?Maniek913 wrote: Sun Jan 04, 2026 10:27 amMożesz podrzucić przykład? jak to napisać? - kompilując z nową biblioteką przykład z Arduino IDE nie widzę opcji fasadóweklukfud wrote: Fri Dec 19, 2025 9:05 pmGG od kilku miesięcy nie jest aktualizowany i nie zapowiada się, aby to się szybko zmieniło.
Jeśli chcesz mieć fasadówki na swoim ESP, to musisz posłużyć się biblioteką supla-device i np. Arduino IDECode: Select all
/* Copyright (C) AC SOFTWARE SP. Z O.O. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include <SuplaDevice.h> #include <supla/control/button.h> #include <supla/control/pin_status_led.h> #include <supla/control/roller_shutter.h> #include <supla/device/status_led.h> #include <supla/network/esp_web_server.h> #include <supla/network/esp_wifi.h> #include <supla/network/html/device_info.h> #include <supla/network/html/protocol_parameters.h> #include <supla/network/html/status_led_parameters.h> #include <supla/network/html/wifi_parameters.h> #include <supla/storage/littlefs_config.h> #define STATUS_LED_GPIO 2 Supla::ESPWifi wifi; Supla::LittleFsConfig configSupla; Supla::Device::StatusLed statusLed(STATUS_LED_GPIO, true); // inverted state Supla::EspWebServer suplaServer; void setup() { Serial.begin(115200); // HTML www component new Supla::Html::DeviceInfo(&SuplaDevice); new Supla::Html::WifiParameters; new Supla::Html::ProtocolParameters; new Supla::Html::StatusLedParameters; Supla::Control::RollerShutter *rs = new Supla::Control::RollerShutter(30, 31, false); Supla::Control::Button *buttonOpen = new Supla::Control::Button(28, true, true); Supla::Control::Button *buttonClose = new Supla::Control::Button(29, true, true); // Add two LEDs to inform about roller shutter relay status // If inverted value is required, please add third parameter with true value new Supla::Control::PinStatusLed( 30, 24); // pin 30 status to be informed on pin 24 new Supla::Control::PinStatusLed( 31, 25); // pin 31 status to be informed on pin 25 // TODO(anyone): replace with addButton method on rs instance buttonOpen->addAction(Supla::OPEN_OR_STOP, *rs, Supla::ON_PRESS); buttonClose->addAction(Supla::CLOSE_OR_STOP, *rs, Supla::ON_PRESS); SuplaDevice.setInitialMode(Supla::InitialMode::StartInCfgMode); SuplaDevice.begin(); } void loop() { SuplaDevice.iterate(); }
I o to chodziło .... Jest i fasadówkalukfud wrote: Sun Jan 04, 2026 10:41 amManiek913 wrote: Sun Jan 04, 2026 10:27 am Możesz podrzucić przykład? jak to napisać? - kompilując z nową biblioteką przykład z Arduino IDE nie widzę opcji fasadówekTylko i aż tyle musisz dodaćCode: Select all
rs->addTiltFunctions();![]()
https://github.com/SUPLA/supla-device/b ... e.ino#L105Maniek913 wrote: Sun Jan 04, 2026 11:35 am A jak w tym przykładzie skonfigurować gpio dla przycisku config?
U Ciebie pewnie będzie:
Zmieniłem, ale chyba nie o to chodzi, dalej jest ten sam efekt co na filmiku - muszę trzy razy nacisnąć zamykanie, aby uzyskać widok zamkniętej rolety (fizycznie roleta oczywiście się opuści)- jeszcze zauważyłem ,że przy całkowicie podniesionej rolecie, nie naciskając przycisku opuszczania, a tylko dowolnie przesuwając suwak lamelek uruchamia się roleta i prawidłowo się opuszcza ( w sensie za jednym razem) .
Nie patrzyłem wcześniej na filmManiek913 wrote: Sun Jan 04, 2026 4:42 pmZmieniłem, ale chyba nie o to chodzi, dalej jest ten sam efekt co na filmiku - muszę trzy razy nacisnąć zamykanie, aby uzyskać widok zamkniętej rolety (fizycznie roleta oczywiście się opuści)- jeszcze zauważyłem ,że przy całkowicie podniesionej rolecie, nie naciskając przycisku opuszczania, a tylko dowolnie przesuwając suwak lamelek uruchamia się roleta i prawidłowo się opuszcza ( w sensie za jednym razem) .
Code: Select all
Commit
Recv: [53 55 50 4C 41 17 1E 00 00 00 6E 00 00 00 11 00 00 00 EF 22 00 00 00 96 00 96 00 6E FF 00 00 00 00 00 00 53 55 50 4C 41 ]
RS[0] new value from server: position/task 110, tilt -1
RS[0] set target position: 100, tilt: -1
RS[0] New movement value: 100, new tilting value: 0
**** Digital write[0], gpio: 4; value 0
**** Digital write[0], gpio: 5; value 1
Channel(0) value changed to 2, tilt 0
Send: [53 55 50 4C 41 17 90 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 02 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 4, tilt 0
Send: [53 55 50 4C 41 17 91 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 04 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 7, tilt 0
Send: [53 55 50 4C 41 17 92 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 07 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 9, tilt 0
Send: [53 55 50 4C 41 17 93 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 09 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 12, tilt 0
Send: [53 55 50 4C 41 17 94 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 0C 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 14, tilt 0
Send: [53 55 50 4C 41 17 95 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 0E 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 17, tilt 0
Send: [53 55 50 4C 41 17 96 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 11 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 19, tilt 0
Send: [53 55 50 4C 41 17 97 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 13 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 22, tilt 0
Send: [53 55 50 4C 41 17 98 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 16 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 24, tilt 0
Send: [53 55 50 4C 41 17 99 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 18 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 27, tilt 0
Send: [53 55 50 4C 41 17 9A 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 1B 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 29, tilt 0
Send: [53 55 50 4C 41 17 9B 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 1D 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 32, tilt 0
Send: [53 55 50 4C 41 17 9C 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 20 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 34, tilt 0
Send: [53 55 50 4C 41 17 9D 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 22 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 37, tilt 0
Send: [53 55 50 4C 41 17 9E 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 25 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 39, tilt 0
Send: [53 55 50 4C 41 17 9F 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 27 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 42, tilt 0
Send: [53 55 50 4C 41 17 A0 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 2A 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 44, tilt 0
Send: [53 55 50 4C 41 17 A1 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 2C 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 47, tilt 0
Send: [53 55 50 4C 41 17 A2 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 2F 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 49, tilt 0
Send: [53 55 50 4C 41 17 A3 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 31 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 52, tilt 0
Send: [53 55 50 4C 41 17 A4 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 34 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 54, tilt 0
Send: [53 55 50 4C 41 17 A5 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 36 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 57, tilt 0
Send: [53 55 50 4C 41 17 A6 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 39 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 59, tilt 0
Send: [53 55 50 4C 41 17 A7 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 3B 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 62, tilt 0
Send: [53 55 50 4C 41 17 A8 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 3E 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 64, tilt 0
Send: [53 55 50 4C 41 17 A9 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 40 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 67, tilt 0
Send: [53 55 50 4C 41 17 AA 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 43 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 69, tilt 0
Send: [53 55 50 4C 41 17 AB 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 45 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 72, tilt 0
Send: [53 55 50 4C 41 17 AC 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 48 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 74, tilt 0
Send: [53 55 50 4C 41 17 AD 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 4A 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 77, tilt 0
Send: [53 55 50 4C 41 17 AE 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 4D 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 79, tilt 0
Send: [53 55 50 4C 41 17 AF 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 4F 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 82, tilt 0
Send: [53 55 50 4C 41 17 B0 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 52 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 84, tilt 0
Send: [53 55 50 4C 41 17 B1 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 54 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 87, tilt 0
Send: [53 55 50 4C 41 17 B2 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 57 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 89, tilt 0
Send: [53 55 50 4C 41 17 B3 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 59 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 92, tilt 0
Send: [53 55 50 4C 41 17 B4 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 5C 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 94, tilt 0
Send: [53 55 50 4C 41 17 B5 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 5E 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 97, tilt 0
Send: [53 55 50 4C 41 17 B6 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 61 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 99, tilt 0
Send: [53 55 50 4C 41 17 B7 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 63 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
RS[0] operation timeout: 4500
Channel(0) value changed to 2, tilt 0
Send: [53 55 50 4C 41 17 B8 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 02 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 5, tilt 0
Send: [53 55 50 4C 41 17 B9 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 05 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 7, tilt 0
Send: [53 55 50 4C 41 17 BA 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 07 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 10, tilt 0
Send: [53 55 50 4C 41 17 BB 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 0A 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 12, tilt 0
Send: [53 55 50 4C 41 17 BC 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 0C 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 15, tilt 0
Send: [53 55 50 4C 41 17 BD 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 0F 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 17, tilt 0
Send: [53 55 50 4C 41 17 BE 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 11 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 20, tilt 0
Send: [53 55 50 4C 41 17 BF 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 14 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 22, tilt 0
Send: [53 55 50 4C 41 17 C0 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 16 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 25, tilt 0
Send: [53 55 50 4C 41 17 C1 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 19 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 27, tilt 0
Send: [53 55 50 4C 41 17 C2 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 1B 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 30, tilt 0
Send: [53 55 50 4C 41 17 C3 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 1E 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 32, tilt 0
Send: [53 55 50 4C 41 17 C4 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 20 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 35, tilt 0
Send: [53 55 50 4C 41 17 C5 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 23 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Channel(0) value changed to 37, tilt 0
Send: [53 55 50 4C 41 17 C6 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 25 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
RS[0] set target position: -5, tilt: -1
RS[0] Operation timeout
RS[0] Stop requested
RS[0] Stop movement
**** Digital write[0], gpio: 4; value 0
**** Digital write[0], gpio: 5; value 0
Channel(0) value changed to 38, tilt 0
Send: [53 55 50 4C 41 17 C7 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 26 00 00 01 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Wrote 10 bytes to storage at 15
Wrote 7 bytes to storage at 8
Commit
Send: [53 55 50 4C 41 17 C8 00 00 00 28 00 00 00 10 00 00 00 A4 01 00 00 00 00 00 00 D5 4C 0C 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Recv: [53 55 50 4C 41 17 1F 00 00 00 32 00 00 00 10 00 00 00 2B B6 5A 69 00 00 00 00 3D D1 00 00 00 00 00 00 53 55 50 4C 41 ]