scripts conditions

Post Reply
tomas16
Posts: 2
Joined: Thu Mar 09, 2023 10:58 am

hi,
i have working setup LIW-01 that counts watter consuption.
I would like to add notification on scripts, but how do you know, what status parameter write in the condition?
I searched 2 days and I only found {{state(123).CalculatedValue>0}} but I dont know what does that mean exactly..and this condition is not fulfilled.... is there a documentation of the commands I can use?
Thank you for any hint
Tomas
User avatar
pzygmunt
Posts: 18333
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

In what situation would you like to be notified? When it comes to temporary water consumption or consumption for a given period, it will not be possible to implement it via scripts.supla.io.
tomas16
Posts: 2
Joined: Thu Mar 09, 2023 10:58 am

thank you for your reply.
Generally, I would like to be notified if there is some kind of continual watter leak. For example each minute or hour more then X litres. Or whatever similar.
User avatar
pzygmunt
Posts: 18333
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

You would have to run some custom script that periodically checks the meter reading and reacts appropriately to too sudden increases. You won't achieve this using scripts.supla.io. Perhaps someday there will be such a solution natively in Supla.
Post Reply

Return to “Help”