Nowe warunkowanie
-
- Posty: 15
- Rejestracja: sob sty 11, 2020 10:10 pm
Ja bym to widział w ten sposób, aby warunkowanie można było zrealizować nie tylko na jednym kanale, ale i po spełnieniu kilku warunków jednocześnie. Na szybko narysowałem jak to widzę.
- Załączniki
-
- IMG_20230128_212736.jpg (1.34 MiB) Przejrzano 571 razy
-
- Posty: 285
- Rejestracja: wt sie 18, 2020 2:22 pm
Witam
W wersji oficjalnej nie ma warunkowania ?
W wersji oficjalnej nie ma warunkowania ?
Wrzuciłem oficjalnie, flaga SUPLA_CONDITIONS.
https://gui-generic-builder.supla.io/
Pojawił mi się błąd jak dodałem warunkowanie podczas generowania:
Bez tej flagi poszło bez problemu
Kod: Zaznacz cały
Błąd generowania
GUI-Generic_bv4.22_gv5.9.4_pl_54201091586c37e97c05a1693d1a8691/GUI-Generic_bv4.22_gv5.9.4_pl_54201091586c37e97c05a1693d1a8691.ino: In function 'void setup()':
GUI-Generic_bv4.22_gv5.9.4_pl_54201091586c37e97c05a1693d1a8691/GUI-Generic_bv4.22_gv5.9.4_pl_54201091586c37e97c05a1693d1a8691.ino:334:104: error: no matching function for call to 'addConditionsSensor(sensorList, Supla::Sensor::AnalogRedingMap*&, uint8_t&)'
Supla::GUI::Conditions::addConditionsSensor(SENSOR_ANALOG_READING_MAP, Supla::GUI::analog[nr], nr);
^
In file included from GUI-Generic_bv4.22_gv5.9.4_pl_54201091586c37e97c05a1693d1a8691/SuplaDeviceGUI.h:55,
from GUI-Generic_bv4.22_gv5.9.4_pl_54201091586c37e97c05a1693d1a8691/GUI-Generic_bv4.22_gv5.9.4_pl_54201091586c37e97c05a1693d1a8691.ino:16:
GUI-Generic_bv4.22_gv5.9.4_pl_54201091586c37e97c05a1693d1a8691/SuplaConditions.h:137:6: note: candidate: 'void Supla::GUI::Conditions::addConditionsSensor(int, const char*, Supla::ChannelElement*, uint8_t)'
void addConditionsSensor(int functionSensor, const char* nameSensor, Supla::ChannelElement* sensor, uint8_t nrSensor = 0);
^~~~~~~~~~~~~~~~~~~
GUI-Generic_bv4.22_gv5.9.4_pl_54201091586c37e97c05a1693d1a8691/SuplaConditions.h:137:6: note: no known conversion for argument 2 from 'Supla::Sensor::AnalogRedingMap*' to 'const char*'
GUI-Generic_bv4.22_gv5.9.4_pl_54201091586c37e97c05a1693d1a8691/SuplaConditions.h:138:6: note: candidate: 'void Supla::GUI::Conditions::addConditionsSensor(int, const char*, Supla::Sensor::ElectricityMeter*, uint8_t)'
void addConditionsSensor(int functionSensor, const char* nameSensor, Supla::Sensor::ElectricityMeter* electricityMete, uint8_t nrSensor = 0);
^~~~~~~~~~~~~~~~~~~
GUI-Generic_bv4.22_gv5.9.4_pl_54201091586c37e97c05a1693d1a8691/SuplaConditions.h:138:6: note: no known conversion for argument 2 from 'Supla::Sensor::AnalogRedingMap*' to 'const char*'
Error during build: exit status 1
xxxxxxxxxxxxxxxxxx
BOARD esp32:esp32:d32:PartitionScheme=min_spiffs
BOARD_NAME
TEMPLATE_JSON
JSON_DEFINITION
OPTIONS -DATOMIC_FS_UPDATE -DMIMETYPE_MINIMAL -DBEARSSL_SSL_BASIC -DSUPLA_ACTION_TRIGGER -DSUPLA_ANALOG_READING_MAP -DSUPLA_BME280 -DSUPLA_BUTTON
-DSUPLA_CONDITIONS -DSUPLA_CONFIG -DSUPLA_DS18B20 -DSUPLA_ENABLE_GUI -DSUPLA_IMPULSE_COUNTER -DSUPLA_LIMIT_SWITCH -DSUPLA_OLED -DSUPLA_OTA -DSUPLA_RELAY
-DSUPLA_RGBW -DSUPLA_SI7021
Poprawione.LukaszH pisze: ↑pn sty 30, 2023 8:16 pm Pojawił mi się błąd jak dodałem warunkowanie podczas generowania:Bez tej flagi poszło bez problemuKod: Zaznacz cały
Błąd generowania GUI-Generic_bv4.22_gv5.9.4_pl_54201091586c37e97c05a1693d1a8691/GUI-Generic_bv4.22_gv5.9.4_pl_54201091586c37e97c05a1693d1a8691.ino: In function 'void setup()': GUI-Generic_bv4.22_gv5.9.4_pl_54201091586c37e97c05a1693d1a8691/GUI-Generic_bv4.22_gv5.9.4_pl_54201091586c37e97c05a1693d1a8691.ino:334:104: error: no matching function for call to 'addConditionsSensor(sensorList, Supla::Sensor::AnalogRedingMap*&, uint8_t&)' Supla::GUI::Conditions::addConditionsSensor(SENSOR_ANALOG_READING_MAP, Supla::GUI::analog[nr], nr); ^ In file included from GUI-Generic_bv4.22_gv5.9.4_pl_54201091586c37e97c05a1693d1a8691/SuplaDeviceGUI.h:55, from GUI-Generic_bv4.22_gv5.9.4_pl_54201091586c37e97c05a1693d1a8691/GUI-Generic_bv4.22_gv5.9.4_pl_54201091586c37e97c05a1693d1a8691.ino:16: GUI-Generic_bv4.22_gv5.9.4_pl_54201091586c37e97c05a1693d1a8691/SuplaConditions.h:137:6: note: candidate: 'void Supla::GUI::Conditions::addConditionsSensor(int, const char*, Supla::ChannelElement*, uint8_t)' void addConditionsSensor(int functionSensor, const char* nameSensor, Supla::ChannelElement* sensor, uint8_t nrSensor = 0); ^~~~~~~~~~~~~~~~~~~ GUI-Generic_bv4.22_gv5.9.4_pl_54201091586c37e97c05a1693d1a8691/SuplaConditions.h:137:6: note: no known conversion for argument 2 from 'Supla::Sensor::AnalogRedingMap*' to 'const char*' GUI-Generic_bv4.22_gv5.9.4_pl_54201091586c37e97c05a1693d1a8691/SuplaConditions.h:138:6: note: candidate: 'void Supla::GUI::Conditions::addConditionsSensor(int, const char*, Supla::Sensor::ElectricityMeter*, uint8_t)' void addConditionsSensor(int functionSensor, const char* nameSensor, Supla::Sensor::ElectricityMeter* electricityMete, uint8_t nrSensor = 0); ^~~~~~~~~~~~~~~~~~~ GUI-Generic_bv4.22_gv5.9.4_pl_54201091586c37e97c05a1693d1a8691/SuplaConditions.h:138:6: note: no known conversion for argument 2 from 'Supla::Sensor::AnalogRedingMap*' to 'const char*' Error during build: exit status 1 xxxxxxxxxxxxxxxxxx BOARD esp32:esp32:d32:PartitionScheme=min_spiffs BOARD_NAME TEMPLATE_JSON JSON_DEFINITION OPTIONS -DATOMIC_FS_UPDATE -DMIMETYPE_MINIMAL -DBEARSSL_SSL_BASIC -DSUPLA_ACTION_TRIGGER -DSUPLA_ANALOG_READING_MAP -DSUPLA_BME280 -DSUPLA_BUTTON -DSUPLA_CONDITIONS -DSUPLA_CONFIG -DSUPLA_DS18B20 -DSUPLA_ENABLE_GUI -DSUPLA_IMPULSE_COUNTER -DSUPLA_LIMIT_SWITCH -DSUPLA_OLED -DSUPLA_OTA -DSUPLA_RELAY -DSUPLA_RGBW -DSUPLA_SI7021
https://gui-generic-builder.supla.io/
Mam i ja
Kod: Zaznacz cały
Błąd generowania
GUI-Generic_bv4.22_gv5.9.5_pl_8ee5f4900fc1b614f53a164656307411/GUI-Generic_bv4.22_gv5.9.5_pl_8ee5f4900fc1b614f53a164656307411.ino: In function 'void setup()':
GUI-Generic_bv4.22_gv5.9.5_pl_8ee5f4900fc1b614f53a164656307411/GUI-Generic_bv4.22_gv5.9.5_pl_8ee5f4900fc1b614f53a164656307411.ino:161:55: error: 'directLinkSensorThermometer' was not declared in this scope
161 | directLinkSensorThermometer, nr);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
Multiple libraries were found for "SoftwareSerial.h"
Used: .arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SoftwareSerial
Not used: /var/www/html/github/GUI-Generic/lib/espsoftwareserial
Error during build: exit status 1
xxxxxxxxxxxxxxxxxx
BOARD esp8266:esp8266:generic:eesz=4M1M,xtal=160
BOARD_NAME
TEMPLATE_JSON
JSON_DEFINITION
OPTIONS -DATOMIC_FS_UPDATE -DMIMETYPE_MINIMAL -DSUPLA_ACTION_TRIGGER -DSUPLA_BME280 -DSUPLA_BUTTON -DSUPLA_CONDITIONS -DSUPLA_CONFIG -DSUPLA_DIRECT_LINKS
-DSUPLA_DIRECT_LINKS_MULTI_SENSOR -DSUPLA_ENABLE_GUI -DSUPLA_LED -DSUPLA_OTA -DSUPLA_RELAY -DSUPLA_RGBW
Poprawiłem w 5.9.6.petione pisze: ↑pn sty 30, 2023 8:39 pm Mam i jaKod: Zaznacz cały
Błąd generowania GUI-Generic_bv4.22_gv5.9.5_pl_8ee5f4900fc1b614f53a164656307411/GUI-Generic_bv4.22_gv5.9.5_pl_8ee5f4900fc1b614f53a164656307411.ino: In function 'void setup()': GUI-Generic_bv4.22_gv5.9.5_pl_8ee5f4900fc1b614f53a164656307411/GUI-Generic_bv4.22_gv5.9.5_pl_8ee5f4900fc1b614f53a164656307411.ino:161:55: error: 'directLinkSensorThermometer' was not declared in this scope 161 | directLinkSensorThermometer, nr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ Multiple libraries were found for "SoftwareSerial.h" Used: .arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SoftwareSerial Not used: /var/www/html/github/GUI-Generic/lib/espsoftwareserial Error during build: exit status 1 xxxxxxxxxxxxxxxxxx BOARD esp8266:esp8266:generic:eesz=4M1M,xtal=160 BOARD_NAME TEMPLATE_JSON JSON_DEFINITION OPTIONS -DATOMIC_FS_UPDATE -DMIMETYPE_MINIMAL -DSUPLA_ACTION_TRIGGER -DSUPLA_BME280 -DSUPLA_BUTTON -DSUPLA_CONDITIONS -DSUPLA_CONFIG -DSUPLA_DIRECT_LINKS -DSUPLA_DIRECT_LINKS_MULTI_SENSOR -DSUPLA_ENABLE_GUI -DSUPLA_LED -DSUPLA_OTA -DSUPLA_RELAY -DSUPLA_RGBW
https://gui-generic-builder.supla.io/
Kurcze , nadal coś krzyczy
Kod: Zaznacz cały
Błąd generowania
GUI-Generic_bv4.22_gv5.9.6_pl_8ee5f4900fc1b614f53a164656307411/GUI-Generic_bv4.22_gv5.9.6_pl_8ee5f4900fc1b614f53a164656307411.ino: In function 'void setup()':
GUI-Generic_bv4.22_gv5.9.6_pl_8ee5f4900fc1b614f53a164656307411/GUI-Generic_bv4.22_gv5.9.6_pl_8ee5f4900fc1b614f53a164656307411.ino:165:14: error: jump to case label
165 | case DIRECT_LINKS_TYPE_TEMP_HYGR:
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
GUI-Generic_bv4.22_gv5.9.6_pl_8ee5f4900fc1b614f53a164656307411/GUI-Generic_bv4.22_gv5.9.6_pl_8ee5f4900fc1b614f53a164656307411.ino:157:16: note: crosses initialization of 'Supla::Sensor::DirectLinksThermometer* directLinkSensorThermometer'
157 | auto directLinkSensorThermometer = new Supla::Sensor::DirectLinksThermometer(ConfigManager->get(KEY_DIRECT_LINKS_SENSOR)->getElement(nr).c_str(),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
GUI-Generic_bv4.22_gv5.9.6_pl_8ee5f4900fc1b614f53a164656307411/GUI-Generic_bv4.22_gv5.9.6_pl_8ee5f4900fc1b614f53a164656307411.ino:170:14: error: jump to case label
170 | case DIRECT_LINKS_TYPE_PRESS:
| ^~~~~~~~~~~~~~~~~~~~~~~
GUI-Generic_bv4.22_gv5.9.6_pl_8ee5f4900fc1b614f53a164656307411/GUI-Generic_bv4.22_gv5.9.6_pl_8ee5f4900fc1b614f53a164656307411.ino:157:16: note: crosses initialization of 'Supla::Sensor::DirectLinksThermometer* directLinkSensorThermometer'
157 | auto directLinkSensorThermometer = new Supla::Sensor::DirectLinksThermometer(ConfigManager->get(KEY_DIRECT_LINKS_SENSOR)->getElement(nr).c_str(),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
GUI-Generic_bv4.22_gv5.9.6_pl_8ee5f4900fc1b614f53a164656307411/GUI-Generic_bv4.22_gv5.9.6_pl_8ee5f4900fc1b614f53a164656307411.ino:175:14: error: jump to case label
175 | case DIRECT_LINKS_TYPE_ELECTRICITY_METER:
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GUI-Generic_bv4.22_gv5.9.6_pl_8ee5f4900fc1b614f53a164656307411/GUI-Generic_bv4.22_gv5.9.6_pl_8ee5f4900fc1b614f53a164656307411.ino:157:16: note: crosses initialization of 'Supla::Sensor::DirectLinksThermometer* directLinkSensorThermometer'
157 | auto directLinkSensorThermometer = new Supla::Sensor::DirectLinksThermometer(ConfigManager->get(KEY_DIRECT_LINKS_SENSOR)->getElement(nr).c_str(),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
GUI-Generic_bv4.22_gv5.9.6_pl_8ee5f4900fc1b614f53a164656307411/GUI-Generic_bv4.22_gv5.9.6_pl_8ee5f4900fc1b614f53a164656307411.ino:180:14: error: jump to case label
180 | case DIRECT_LINKS_TYPE_DISTANCE:
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
GUI-Generic_bv4.22_gv5.9.6_pl_8ee5f4900fc1b614f53a164656307411/GUI-Generic_bv4.22_gv5.9.6_pl_8ee5f4900fc1b614f53a164656307411.ino:157:16: note: crosses initialization of 'Supla::Sensor::DirectLinksThermometer* directLinkSensorThermometer'
157 | auto directLinkSensorThermometer = new Supla::Sensor::DirectLinksThermometer(ConfigManager->get(KEY_DIRECT_LINKS_SENSOR)->getElement(nr).c_str(),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
GUI-Generic_bv4.22_gv5.9.6_pl_8ee5f4900fc1b614f53a164656307411/GUI-Generic_bv4.22_gv5.9.6_pl_8ee5f4900fc1b614f53a164656307411.ino:184:14: error: jump to case label
184 | case DIRECT_LINKS_TYPE_DEPTH:
| ^~~~~~~~~~~~~~~~~~~~~~~
GUI-Generic_bv4.22_gv5.9.6_pl_8ee5f4900fc1b614f53a164656307411/GUI-Generic_bv4.22_gv5.9.6_pl_8ee5f4900fc1b614f53a164656307411.ino:157:16: note: crosses initialization of 'Supla::Sensor::DirectLinksThermometer* directLinkSensorThermometer'
157 | auto directLinkSensorThermometer = new Supla::Sensor::DirectLinksThermometer(ConfigManager->get(KEY_DIRECT_LINKS_SENSOR)->getElement(nr).c_str(),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
Multiple libraries were found for "SoftwareSerial.h"
Used: .arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SoftwareSerial
Not used: /var/www/html/github/GUI-Generic/lib/espsoftwareserial
Error during build: exit status 1
xxxxxxxxxxxxxxxxxx
BOARD esp8266:esp8266:generic:eesz=4M1M,xtal=160
BOARD_NAME
TEMPLATE_JSON
JSON_DEFINITION
OPTIONS -DATOMIC_FS_UPDATE -DMIMETYPE_MINIMAL -DSUPLA_ACTION_TRIGGER -DSUPLA_BME280 -DSUPLA_BUTTON -DSUPLA_CONDITIONS -DSUPLA_CONFIG -DSUPLA_DIRECT_LINKS
-DSUPLA_DIRECT_LINKS_MULTI_SENSOR -DSUPLA_ENABLE_GUI -DSUPLA_LED -DSUPLA_OTA -DSUPLA_RELAY -DSUPLA_RGBW
- uchnast.michal
- Posty: 1074
- Rejestracja: wt cze 04, 2019 11:37 am
Byłem przekonany, że to ja coś źle ustawiam i nawet widziałem prawidłowe wyniki:)
Tak serio, gdy pojawia się wartość 1.57m powinien przekaźnik się załączyć a gdy spanie do 0,1m to wyłączyć.
Przekaźnik to GPIO Virtual
Mam głębokość ustawioną na 255cm. Czy warunek bierze pod uwagę różnicę czy odczyt z sensora?
Tak serio, gdy pojawia się wartość 1.57m powinien przekaźnik się załączyć a gdy spanie do 0,1m to wyłączyć.
Przekaźnik to GPIO Virtual
Mam głębokość ustawioną na 255cm. Czy warunek bierze pod uwagę różnicę czy odczyt z sensora?
e-talking............
Byłem tam - Supla Offline Party 2023
Byłem tam - Supla Offline Party 2023