Zawór wodny Sonoff SWV [bramka ZigBee]

Moderator: vajera

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

Post

vajera wrote: Sun Jun 21, 2026 9:15 pm Lokalnego nie zrobisz a reakcję tak?
Pytałem raczej jak chcesz tego używać :)
W reakcjach Cloudowych tego obecnie nie ma. W warunkach loklanych też nie - ale to akurat można dość prosto dodać.
Do Clouda można też zaplanować, o ile są jakeś sensowne scenariusze użycia, gdzie to by można wykorzystać.
Najlepsze suple dla Twojego domu :mrgreen:
User avatar
vajera
Posts: 7293
Joined: Wed Oct 31, 2018 7:58 am
Location: Biedrusko
Has thanked: 291 times
Been thanked: 161 times

Post

klew wrote: Mon Jun 22, 2026 8:14 am
vajera wrote: Sun Jun 21, 2026 9:15 pm Lokalnego nie zrobisz a reakcję tak?
Pytałem raczej jak chcesz tego używać :)
W reakcjach Cloudowych tego obecnie nie ma. W warunkach loklanych też nie - ale to akurat można dość prosto dodać.
Do Clouda można też zaplanować, o ile są jakeś sensowne scenariusze użycia, gdzie to by można wykorzystać.
Kolega @myxhir chyba używa warunkowania na czas programu do uruchomienia kolejnego, aczkolwiek dodałem już to brakujące runAction. Można sobie natomiast wyobrazić, że ktoś będzie chciał np. dostać powiadomienie Pushover ;) o treści zostało 5 minut podlewania - w tej chwili jest to możliwe do zrealizowania z poziomu bramki.
Bramka Zigbee <=> SUPLA
Więcej informacji tutaj:
https://forum.supla.org/viewforum.php?f=127
FAQ https://forum.supla.org/viewtopic.php?t=17277
User avatar
klew
Posts: 13911
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław
Has thanked: 136 times
Been thanked: 137 times

Post

vajera wrote: Mon Jun 22, 2026 8:22 am
Kolega @myxhir chyba używa warunkowania na czas programu do uruchomienia kolejnego, aczkolwiek dodałem już to brakujące runAction. Można sobie natomiast wyobrazić, że ktoś będzie chciał np. dostać powiadomienie Pushover ;) o treści zostało 5 minut podlewania - w tej chwili jest to możliwe do zrealizowania z poziomu bramki.
Ok, dodam wsparcie dla lokalnych akcji bazujących na warunkach z countdowntimer.

Myślę też, że reakcje w Cloud również mogą znaleźć zastosowanie (analogicznie jak na przykładzie, który podałeś). Dodam na to issue, ale nie spodziewałbym się tej funkcji zbyt szybko :)
Najlepsze suple dla Twojego domu :mrgreen:
User avatar
myxhir
Posts: 664
Joined: Thu Jan 07, 2021 12:16 pm
Location: Skórzewo, Poznań
Has thanked: 6 times
Been thanked: 9 times

Post

vajera wrote: Mon Jun 22, 2026 8:22 am
klew wrote: Mon Jun 22, 2026 8:14 am
vajera wrote: Sun Jun 21, 2026 9:15 pm Lokalnego nie zrobisz a reakcję tak?
Pytałem raczej jak chcesz tego używać :)
W reakcjach Cloudowych tego obecnie nie ma. W warunkach loklanych też nie - ale to akurat można dość prosto dodać.
Do Clouda można też zaplanować, o ile są jakeś sensowne scenariusze użycia, gdzie to by można wykorzystać.
Kolega @myxhir chyba używa warunkowania na czas programu do uruchomienia kolejnego, aczkolwiek dodałem już to brakujące runAction. Można sobie natomiast wyobrazić, że ktoś będzie chciał np. dostać powiadomienie Pushover ;) o treści zostało 5 minut podlewania - w tej chwili jest to możliwe do zrealizowania z poziomu bramki.
U mnie były 2 rzeczy
  • Mam mechaniczny przełącznik sekcji tj podaje sie cisnienie uruchamiane jest wyjscie 1
    spatek ciśnienia sprężyna cofa ukłąd mechaniczny
    Podanie ciśnienie uruchamiane jest wyjsćie 2 i tak aż do końca
Podleanie robię na właśnie sonoffie i mam jedną sekcję gdzie jest mały obszar i podlewanie 18 min (bo tak mam ustawione na sonoffie) to strata trochę wody i tam mam 6 min

@vajera zrobił robotę i dał 2 programy, chciałem od akcji Run Saved programm zrobić znacznik jaki jest aktualnie program ale to tam sie nie udało i finalnie rozwiązałem to lokalnymi akcjami

Code: Select all

Action#: 10 of 14
Action name: Sygnalizacja Programu 1 (enabled)
Condition: {[CONDITION] ON EQUAL}
with value(s) =  5.00, 0.00 
for source channel: [Liczba Cykli]
Action: {SET} 
on destination channel: [Wybrany Program 1]

Action#: 11 of 14
Action name: Sygnalizacja Programu 2 (enabled)
Condition: {[CONDITION] ON EQUAL}
with value(s) =  5.00, 0.00 
for source channel: [Liczba Cykli]
Action: {CLEAR} 
on destination channel: [Wybrany Program 2]

Action#: 12 of 14
Action name: Sygnalizacja Programu 2 (enabled)
Condition: {[CONDITION] ON EQUAL}
with value(s) =  1.00, 0.00 
for source channel: [Liczba Cykli]
Action: {SET} 
on destination channel: [Wybrany Program 2]

Action#: 13 of 14
Action name: Sygnalizacja Programu 1 (enabled)
Condition: {[CONDITION] ON EQUAL}
with value(s) =  1.00, 0.00 
for source channel: [Liczba Cykli]
Action: {CLEAR} 
on destination channel: [Wybrany Program 1]

Action#: 14 of 14 --> tutaj przełączam podczas trwania ostatniej sekcji Program 1 (długi) na Program 2 1 powtórzenie (krótki)
Action name: Podlewanie (enabled)
Condition: {[CONDITION] ON EQUAL}
with value(s) =  5.00, 0.00 
for source channel: [Aktualny Cykl]
Action: {TURN ON} 
on destination channel: [Uruchomienie Programu 2]
także ja chyba sobie jakoś poradziłem. Ostatnio dużo pada w okolicach Poznania zatem nie miałem okazji sprawdzić czy działa ale na szybko na teście 5 sek 5 sek działało :D
klew wrote: Mon Jun 22, 2026 8:50 am
vajera wrote: Mon Jun 22, 2026 8:22 am
Kolega @myxhir chyba używa warunkowania na czas programu do uruchomienia kolejnego, aczkolwiek dodałem już to brakujące runAction. Można sobie natomiast wyobrazić, że ktoś będzie chciał np. dostać powiadomienie Pushover ;) o treści zostało 5 minut podlewania - w tej chwili jest to możliwe do zrealizowania z poziomu bramki.
Ok, dodam wsparcie dla lokalnych akcji bazujących na warunkach z countdowntimer.

Myślę też, że reakcje w Cloud również mogą znaleźć zastosowanie (analogicznie jak na przykładzie, który podałeś). Dodam na to issue, ale nie spodziewałbym się tej funkcji zbyt szybko :)
w sumie taka funkcjonalność byłaby fajna pod warunkiem ze dałoby się ustawić że jest to ostatni program czy tez sekcja a do tego potrzebne byłby warunki logiczne. Chociaż widzę że pewne rzeczy na logice da sie obejść funkcjami kopiowania stanu - kiedyś nie widziałem w tym użytku ale dzisiaj jest to dla mnie mega pomocne :D
Spełniony Automatyk / Mąż / Świeżo Upieczony Ojciec
lukasz06
Posts: 2543
Joined: Sun Jul 17, 2022 6:53 pm
Has thanked: 46 times
Been thanked: 21 times

Post

vajera wrote: Sun Jun 21, 2026 8:43 pm
lukasz06 wrote: Sun Jun 21, 2026 8:39 pm No właśnie u mnie tego odliczania nie ma. Na jakim kanale to powinno być - program 1,2?
viewtopic.php?p=237726#p237726
Czy te ustawienia są dobre?

Code: Select all

Reading attribute config report successful! 
Attribute id is 0x5006
Data type is U32(0x23)
Min interval is 1(0x1)
Max interval is 0(0x0)
Delta is 60(0x3C)

Reading attribute config report successful! 
Attribute id is 0x5007
Data type is U32(0x23)
Min interval is 5(0x5)
Max interval is 0(0x0)
Delta is 1(0x1)
User avatar
vajera
Posts: 7293
Joined: Wed Oct 31, 2018 7:58 am
Location: Biedrusko
Has thanked: 291 times
Been thanked: 161 times

Post

lukasz06 wrote: Mon Jun 22, 2026 2:51 pm Czy te ustawienia są dobre?

Code: Select all

Reading attribute config report successful! 
Attribute id is 0x5006
Data type is U32(0x23)
Min interval is 1(0x1)
Max interval is 0(0x0)
Delta is 60(0x3C)

Reading attribute config report successful! 
Attribute id is 0x5007
Data type is U32(0x23)
Min interval is 5(0x5)
Max interval is 0(0x0)
Delta is 1(0x1)
Pytanie, co chciałeś uzyskać? Zgodnie z tym:
2.5.7.1.5 Minimum Reporting Interval Field

The minimum reporting interval field is 16 bits in length and SHALL contain the minimum interval, in seconds, between issuing reports of the specified attribute.
If this value is set to 0x0000, then there is no minimum limit, unless one is imposed by the specification of the cluster using this reporting mechanism or by the application

2.5.7.1.6 Maximum Reporting Interval Field
The maximum reporting interval field is 16 bits in length and SHALL contain the maximum interval, in seconds, between issuing reports of the specified attribute.
If this value is set to 0xffff, then the device SHALL not issue reports for the specified attribute, and the configuration information for that attribute need not be maintained. (Note: in an implementation using dynamic memory allocation, the memory space for that information may then be reclaimed).

If this value is set to 0x0000, and the minimum reporting interval field does not equal 0xffff there SHALL be no periodic reporting, but change based reporting SHALL still be operational.
If this value is set to 0x0000 and the Minimum Reporting Interval Field equals 0xffff, then the device SHALL revert to its default reporting configuration. The reportable change field, if present, SHALL be set to zero.
właśnie wyłączyłeś raportowanie oparte o czas, zostawiając tylko to oparte o wartość (60 sekund lub 1 litr).
Bramka Zigbee <=> SUPLA
Więcej informacji tutaj:
https://forum.supla.org/viewforum.php?f=127
FAQ https://forum.supla.org/viewtopic.php?t=17277
lukasz06
Posts: 2543
Joined: Sun Jul 17, 2022 6:53 pm
Has thanked: 46 times
Been thanked: 21 times

Post

vajera wrote: Mon Jun 22, 2026 2:54 pm
lukasz06 wrote: Mon Jun 22, 2026 2:51 pm Czy te ustawienia są dobre?

Code: Select all

Reading attribute config report successful! 
Attribute id is 0x5006
Data type is U32(0x23)
Min interval is 1(0x1)
Max interval is 0(0x0)
Delta is 60(0x3C)

Reading attribute config report successful! 
Attribute id is 0x5007
Data type is U32(0x23)
Min interval is 5(0x5)
Max interval is 0(0x0)
Delta is 1(0x1)
Pytanie, co chciałeś uzyskać? Zgodnie z tym:
2.5.7.1.5 Minimum Reporting Interval Field

The minimum reporting interval field is 16 bits in length and SHALL contain the minimum interval, in seconds, between issuing reports of the specified attribute.
If this value is set to 0x0000, then there is no minimum limit, unless one is imposed by the specification of the cluster using this reporting mechanism or by the application

2.5.7.1.6 Maximum Reporting Interval Field
The maximum reporting interval field is 16 bits in length and SHALL contain the maximum interval, in seconds, between issuing reports of the specified attribute.
If this value is set to 0xffff, then the device SHALL not issue reports for the specified attribute, and the configuration information for that attribute need not be maintained. (Note: in an implementation using dynamic memory allocation, the memory space for that information may then be reclaimed).

If this value is set to 0x0000, and the minimum reporting interval field does not equal 0xffff there SHALL be no periodic reporting, but change based reporting SHALL still be operational.
If this value is set to 0x0000 and the Minimum Reporting Interval Field equals 0xffff, then the device SHALL revert to its default reporting configuration. The reportable change field, if present, SHALL be set to zero.
właśnie wyłączyłeś raportowanie oparte o czas, zostawiając tylko to oparte o wartość (60 sekund lub 1 litr).
Wiesz... ja nic nie wyłączałem, tylko zrobiłem Read Reporting Settings.
Nigdy tam nie grzebałem ;)
User avatar
vajera
Posts: 7293
Joined: Wed Oct 31, 2018 7:58 am
Location: Biedrusko
Has thanked: 291 times
Been thanked: 161 times

Post

lukasz06 wrote: Mon Jun 22, 2026 6:32 pm Wiesz... ja nic nie wyłączałem, tylko zrobiłem Read Reporting Settings.
Nigdy tam nie grzebałem ;)
OK, w takim razie masz tam domyślnie ustawione:
- nie raportuj co zadany odstęp czasowy,
- raportuj zmiany wartości (60 sekund lub 1 litr).

Proponuję zmienić sobie to 60 na np. 5 (niżej nie ma sensu).
Bramka Zigbee <=> SUPLA
Więcej informacji tutaj:
https://forum.supla.org/viewforum.php?f=127
FAQ https://forum.supla.org/viewtopic.php?t=17277
lukasz06
Posts: 2543
Joined: Sun Jul 17, 2022 6:53 pm
Has thanked: 46 times
Been thanked: 21 times

Post

vajera wrote: Mon Jun 22, 2026 7:04 pm
lukasz06 wrote: Mon Jun 22, 2026 6:32 pm Wiesz... ja nic nie wyłączałem, tylko zrobiłem Read Reporting Settings.
Nigdy tam nie grzebałem ;)
OK, w takim razie masz tam domyślnie ustawione:
- nie raportuj co zadany odstęp czasowy,
- raportuj zmiany wartości (60 sekund lub 1 litr).

Proponuję zmienić sobie to 60 na np. 5 (niżej nie ma sensu).
Dzięki, ustawiłem 0, 30, 5 na obydwu tj time i volume
User avatar
klew
Posts: 13911
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław
Has thanked: 136 times
Been thanked: 137 times

Post

Lokalne akcje na countdown timer są dodane:

Code: Select all

 hvac.addAction(Supla::TURN_OFF,
                 actionCounter,
                 Supla::ON_COUNTDOWN_TIMER,
                 OnLessEq(5, CountdownTimerRemainingSec()));
Najlepsze suple dla Twojego domu :mrgreen:

Return to “Bramka ZigBee”