żaluzje fasadowe na esp 32

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

Post

Maniek913 wrote: Mon Jan 05, 2026 12:16 pm
A mógłbyś pobrać sobie źrodła z maina: https://github.com/supla/supla-device ?

Od 25.11 było robione trochę zmian i możliwe, że coś poprawiałem w międzyczasie.
Najlepsze suple dla Twojego domu :mrgreen:
Maniek913
Posts: 593
Joined: Thu Feb 22, 2018 9:46 pm

Post

Podmieniłem bibliotekę , ale to nie to. Natomiast znalazłem winnego.... Pech chciał, że przy wszystkich próbach zawsze sterowałem moduł z aplikacji - nie sądziłem nawet że może to mieć znaczenie.
Problem jest w aplikacji na androida - opisywany efekt występuje tylko jeżeli sterujemy z telefonu .Zarówno sterowanie z fizycznych przycisków , jak i z cloud działa poprawnie. Dodatkowo tak jak pisałem przy podniesionej rolecie przesunięcie suwaka lameli powoduje wykonanie opuszczenia rolety i jednocześnie ustawienie zadanego kąta lameli (nie wiem, może tak miało być ?). Tak że jedynym problemem jest implementacja funkcji przycisku opuszczania rolety w aplikacji na androida -, ale dziwna ta reakcja - :shock:
Zgłosiłem problem w odpowiednim wątku.
Dzięki Krzysztof za zainteresowanie.
Maniek913
Posts: 593
Joined: Thu Feb 22, 2018 9:46 pm

Post

Niestety zostałem odesłany z powrotem :(
Zastanawiam się czym się różni wysyłane sterowania z aplikacji, clouda i bezpośrednio z urządzenia - jest możliwe że te same polecenia wywołują różne reakcje ?
Chciałbym skonfrontować ten problem z innymi - naprawdę nikt nie używa tej funkcji fasadówek?
User avatar
klew
Posts: 13905
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław
Has thanked: 134 times
Been thanked: 137 times

Post

Maniek913 wrote: Mon Jan 05, 2026 6:22 pm Niestety zostałem odesłany z powrotem :(
Zastanawiam się czym się różni wysyłane sterowania z aplikacji, clouda i bezpośrednio z urządzenia - jest możliwe że te same polecenia wywołują różne reakcje ?
Chciałbym skonfrontować ten problem z innymi - naprawdę nikt nie używa tej funkcji fasadówek?
Ten soft jest na nowych SRW i na SmartBob.
Ja to też uruchamiałem u siebie i u mnie działa. Ale będziemy szukać, aż znajdziemy problem :)
Najlepsze suple dla Twojego domu :mrgreen:
User avatar
lukfud
Posts: 2480
Joined: Thu Nov 23, 2017 11:33 pm
Location: Warszawa
Has thanked: 13 times
Been thanked: 11 times

Post

klew wrote: Mon Jan 05, 2026 7:40 pm
Maniek913 wrote: Mon Jan 05, 2026 6:22 pm Niestety zostałem odesłany z powrotem :(
Zastanawiam się czym się różni wysyłane sterowania z aplikacji, clouda i bezpośrednio z urządzenia - jest możliwe że te same polecenia wywołują różne reakcje ?
Chciałbym skonfrontować ten problem z innymi - naprawdę nikt nie używa tej funkcji fasadówek?
Ten soft jest na nowych SRW i na SmartBob.
Ja to też uruchamiałem u siebie i u mnie działa. Ale będziemy szukać, aż znajdziemy problem :)
U mnie także działa bez problemów pokazanych na filmiku. Sprawdzałem różne konfiguracje ustawień.
https://www.facebook.com/groups/supladiy
https://www.facebook.com/groups/suplazamel
https://www.facebook.com/groups/suplaauraton
https://smartnerzeczy.pl
User avatar
lukfud
Posts: 2480
Joined: Thu Nov 23, 2017 11:33 pm
Location: Warszawa
Has thanked: 13 times
Been thanked: 11 times

Post

Maniek913 wrote: Mon Jan 05, 2026 12:16 pm Kod jakiego używam : (Płytka esp32 C3 superMini) i przykład "Roller Shutter"

Code: 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 8

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(4, 3, false);
  Supla::Control::Button *buttonOpen =
      new Supla::Control::Button(1, true, true);
  Supla::Control::Button *buttonClose =
      new Supla::Control::Button(0, true, true);
      rs->addTiltFunctions();

  // 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();
}
Wrzuciłem powyższe na C3 i działa bez problemów.
https://www.facebook.com/groups/supladiy
https://www.facebook.com/groups/suplazamel
https://www.facebook.com/groups/suplaauraton
https://smartnerzeczy.pl
Pietras81
Posts: 2409
Joined: Sun Feb 17, 2019 6:56 am
Location: Osielsko
Been thanked: 1 time

Post

lukfud wrote: Tue Jan 06, 2026 1:01 pm
Maniek913 wrote: Mon Jan 05, 2026 12:16 pm Kod jakiego używam : (Płytka esp32 C3 superMini) i przykład "Roller Shutter"

Code: 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 8

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(4, 3, false);
  Supla::Control::Button *buttonOpen =
      new Supla::Control::Button(1, true, true);
  Supla::Control::Button *buttonClose =
      new Supla::Control::Button(0, true, true);
      rs->addTiltFunctions();

  // 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();
}
Wrzuciłem powyższe na C3 i działa bez problemów.
A ja wczoraj z ciekawości wgrałem na wemosa d1 mini i też w aplikacji zamykało się na 3 razy :) Może to problem esp8285
https://pietras-81.aqi.eco/
User avatar
klew
Posts: 13905
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław
Has thanked: 134 times
Been thanked: 137 times

Post

Ok, to dobrze :)

Maniek pisał że u niego na C3 też jest ten problem.

Napiszcie proszę dokładnie krok po kroku co robicie i jak ustawiacie od momentu wgrania softu na czystą płytkę.
Screeny mile widziane.
Najlepsze suple dla Twojego domu :mrgreen:
Maniek913
Posts: 593
Joined: Thu Feb 22, 2018 9:46 pm

Post

Ok, to dobrze :)

Maniek pisał że u niego na C3 też jest ten problem.

Napiszcie proszę dokładnie krok po kroku co robicie i jak ustawiacie od momentu wgrania softu na czystą płytkę.
Screeny mile widziane.
Rzeczywiście, testowałem jeszcze dziś na Esp32 C6 i to samo.
OK ,Więc tak to robię :) - Środowisko Arduino IDE z najnowszymi boardami, biblioteka Supla Device z podanego wcześniej maina. Wstawiam powyższy szkic ,ustawiam jak na poniższym screnie, kompiluję , wgrywam, podaję dane na stronie 192.168.4.1 , rejestruję w cloud , przypisuję funcje, podaję czasy, kalibruję ................. i efekt z filmika :)
Ustawienia :
IDE.jpg
Płytka ESP32C3SuperMini , Szkic taki jak powyżej (przykład Roller Shutter" z dodatkiem )
Coś niewyraźnie wyszło - jeszcze raz:
IDE2.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
lukfud
Posts: 2480
Joined: Thu Nov 23, 2017 11:33 pm
Location: Warszawa
Has thanked: 13 times
Been thanked: 11 times

Post

Maniek913 wrote: Tue Jan 06, 2026 3:44 pm
Ustaw jak na screenie, będziesz miał logi na serial monitorze ;)

Zrzut ekranu 2026-01-06 165757.png
You do not have the required permissions to view the files attached to this post.
https://www.facebook.com/groups/supladiy
https://www.facebook.com/groups/suplazamel
https://www.facebook.com/groups/suplaauraton
https://smartnerzeczy.pl

Return to “supla-dev”