Nowe warunkowanie

User avatar
uchnast.michal
Posts: 1334
Joined: Tue Jun 04, 2019 11:37 am
Has thanked: 7 times

Post

krycha88 wrote: Fri Jan 27, 2023 6:20 am waurnkowanie 2.PNG

To może tak?
Jeżeli będzie możliwe dodanie kilku warunków to nie lepiej?
1. Jeżeli wartość kanału większa: włącz/wyłącz
2. Jeżeli wartość kanału mniejsza: włącz/wyłącz
Przykład dla odległości
1. Jeżeli mniejsza niż 1,52: wyłącz
2. Jeżeli większa od 1,52: włącz
krycha88
Posts: 5575
Joined: Fri Nov 16, 2018 7:25 am
Been thanked: 5 times

Post

Na https://gui-generic-builder.supla.io/test.php wrzuciłem nową wersję warunkowania flaga SUPLA_CONDITIONS.

Od teraz można sobie spokojnie wiele warunków do dla przekaźnika czy RGB. Nie ma już ograniczenia do przekaźników.
https://gui-generic-builder.supla.io/
User avatar
klimasstudio
Posts: 1273
Joined: Wed Aug 28, 2019 9:35 pm
Location: localhost

Post

Dzisiaj potestuje na SP111 i dam znać jak śmiga ;)
Last edited by klimasstudio on Fri Jan 27, 2023 1:56 pm, edited 1 time in total.
Więc chodź OSUPLUJE Ci dom :mrgreen:

Druk 3D - > https://klimastech.eu.org/druk-3d
bokk
Posts: 730
Joined: Fri Mar 01, 2019 4:26 am
Has thanked: 7 times
Been thanked: 25 times

Post

A jaki parametr ustawić dla warunkowania dla stanu gpio dla krańcówek. Dałem 2 warunki: warunek 1, przekaźnik 1, sensor krańcówka 1, stan gpio załącz ??, warunek 2, przekaźnik 1, sensor krańcówka 2, stan gpio wyłącz ??,
krycha88
Posts: 5575
Joined: Fri Nov 16, 2018 7:25 am
Been thanked: 5 times

Post

bokk wrote: Fri Jan 27, 2023 1:54 pm A jaki parametr ustawić dla warunkowania dla stanu gpio dla krańcówek. Dałem 2 warunki: warunek 1, przekaźnik 1, sensor krańcówka 1, stan gpio załącz ??, warunek 2, przekaźnik 1, sensor krańcówka 2, stan gpio wyłącz ??,
Pokaż co wyświetla się na uart przy starcie ESP.
https://gui-generic-builder.supla.io/
bokk
Posts: 730
Joined: Fri Mar 01, 2019 4:26 am
Has thanked: 7 times
Been thanked: 25 times

Post

krycha88 wrote: Fri Jan 27, 2023 2:28 pm
bokk wrote: Fri Jan 27, 2023 1:54 pm A jaki parametr ustawić dla warunkowania dla stanu gpio dla krańcówek. Dałem 2 warunki: warunek 1, przekaźnik 1, sensor krańcówka 1, stan gpio załącz ??, warunek 2, przekaźnik 1, sensor krańcówka 2, stan gpio wyłącz ??,
Pokaż co wyświetla się na uart przy starcie ESP.
Czy o to chodzi (2-8 wykasowałem)
> log

ets Jan 8 2013,rst cause:2, boot mode:(3,7)

load 0x4010f000, len 3460, room 16
tail 4
chksum 0xcc
load 0x3fff20b8, len 40, room 4
tail 4
chksum 0xc9
csum 0xc9
v0008e760
~ld
Config read
Key: 0 Value: 퓮 '* [
Key: 1 Value: 0 }謨BLHhMM,
Key: 2 Value: xx
Key: 3 Value: xx
Key: 4 Value: xx
Key: 5 Value: xx
Key: 6 Value: xx
Key: 7 Value: xx
Key: 8 Value: xx
Key: 9 Value: 1
Key: 10 Value:
Key: 11 Value: 2
Key: 12 Value:
Key: 13 Value:
Key: 14 Value:
Key: 15 Value:
Key: 16 Value:
Key: 17 Value:
Key: 18 Value:
Key: 19 Value:
Key: 20 Value:
Key: 21 Value: 1
Key: 22 Value:
Key: 23 Value:
Key: 24 Value: ,,,,,,,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 25 Value:
Key: 26 Value: ,,0,,,,,,,,,,,,,,,1,,,,,,,,,,,,,,,,,
Key: 27 Value:
Key: 28 Value:
Key: 29 Value: 1,1,0,,2,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 30 Value:
Key: 31 Value:
Key: 32 Value:
Key: 33 Value:
Key: 34 Value:
Key: 35 Value:
Key: 36 Value: 2,3,,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 37 Value:
Key: 38 Value: 1,3,,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 39 Value:
Key: 40 Value:
Key: 41 Value:
Key: 42 Value:
Key: 43 Value:
Key: 44 Value:
Key: 45 Value:
Key: 46 Value:
Key: 47 Value:
Key: 48 Value:
Key: 49 Value: 21,21,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 50 Value: 10,10,,,,,,,,,,,,
Key: 51 Value: ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 52 Value: ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 53 Value:
Key: 54 Value:
Key: 55 Value:
Key: 56 Value:
Key: 57 Value:
Key: 58 Value: 1
Key: 59 Value: 0
Key: 60 Value:
Key: 61 Value:
Key: 62 Value:
Key: 63 Value:
Key: 64 Value: 0,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 65 Value:
Key: 66 Value:
Key: 67 Value:
Key: 68 Value:
Key: 69 Value:
Key: 70 Value:
Key: 71 Value:
Key: 72 Value:
Key: 73 Value:
Key: 74 Value:
Key: 75 Value:
Key: 76 Value:
Key: 77 Value:
Key: 78 Value:
Key: 79 Value:
Key: 80 Value: 0
Key: 81 Value:
Key: 82 Value:
Key: 83 Value:
Key: 84 Value:
Key: 85 Value:
Key: 86 Value: 0,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 87 Value: 0,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 88 Value: 2
addConditionsElement:functionClient: 0, nrClient: 0, functionSensor: 21, nrSensor : 0
addConditionsElement:functionClient: 0, nrClient: 0, functionSensor: 21, nrSensor : 1
addConditionsExecutive: functionClient: 0, nrClient: 0
addConditionsExecutive: functionClient: 0, nrClient: 0
addConditionsSensor: functionSensor: 21, nrSensor : 0
addConditionsSensor: functionSensor: 21, nrSensor : 1
Supla - starting initialization
Storage initialization
readStorage: 8; Read: [53 55 50 4C 41 1 0 1 ]
Storage: Number of sections 1
Reading section: 0
readStorage: 7; Read: [3 5 0 24 0 24 0 ]
Section type: 3; size: 5
CRC1 36, CRC2 36, CRC calc 36
Config storage not configured
Validating storage state section with current device configuration
Storage state section validation completed. Loading elements state...
readStorage: 4; Read: [0 0 0 0 ]
Relay[0]: restored durationMs: 0
readStorage: 1; Read: [0 ]
Relay[0]: restored relay state: OFF
Relay[0] turn OFF (duration 0 ms)
**** Digital write[0], gpio: 5; value 1
Relay[0] turn OFF (duration 0 ms)
**** Digital write[0], gpio: 5; value 1
Channel(1) value changed to 1
Channel(2) value changed to 1
Initializing network layer
Network AP/hostname: WEMOS-D1-MINI-58BF25DA058E
Using Supla protocol version 16
Current status: [5] SuplaDevice initialized
Enter normal mode
WiFi: establishing connection with SSID: "Wireless"
Connected BSSID: 54:AF:97:E0:08:20
local IP: 192.168.1.142
subnetMask: 255.255.255.0
gatewayIP: 192.168.1.1
Signal strength (RSSI): -44 dBm
IMPROV
IMPROVhttp://192.168.1.142
Establishing NOT encrypted connection with: svr12.supla.org (port: 2015)
Connected to Supla Server
Current status: [10] Register in progress
Device registered (activity timeout 120 s, server version: 19, server min version: 1)
Current status: [17] Registered and ready
Changing activity timeout to 30
Activity timeout set to 30 s
You do not have the required permissions to view the files attached to this post.
krycha88
Posts: 5575
Joined: Fri Nov 16, 2018 7:25 am
Been thanked: 5 times

Post

Weź coś wpisz w pole kiedy ma się włączyć lub wyłączyć.
https://gui-generic-builder.supla.io/
bokk
Posts: 730
Joined: Fri Mar 01, 2019 4:26 am
Has thanked: 7 times
Been thanked: 25 times

Post

Ok. Po wpisaniu dla 1 warunku - 1 dla załącz i dla 2 warunku - 1 dla wyłącz po podaniu masy na D5 lub D6 przekaźnik załącza się i wyłącza. Może uda się zastosować to do skrzynki pocztowej pomijając skrypty.
User avatar
uchnast.michal
Posts: 1334
Joined: Tue Jun 04, 2019 11:37 am
Has thanked: 7 times

Post

Sprawdziłam na przykładzie ESP01 (moduł skrzynki na listy) - 2 kontaktrony, 1 przekaźnik. Warunkowanie działa super. Teraz może działać autonomicznie. Dobra robota @krycha88 :D
listy.png
You do not have the required permissions to view the files attached to this post.
User avatar
Lector
Posts: 2470
Joined: Fri Nov 17, 2017 2:26 pm
Location: Poznań
Has thanked: 13 times
Been thanked: 25 times

Post

Widzisz @krycha88 jeden przykład już jest.
Drugi podawałem gdzieś już na forum.
Krańcówki jako czujnik poziomu wody - lubią się psuć, w tedy kiedy pierwsza nawali to druga wyłączy pompę.
Niespełniony automatyk. :mrgreen:
https://3d-lamp.photos/
https://pool.lector.top/

Return to “GUI Generic”