Calculate total water volume per week

Hello,

First of all, I apologize if I’m not posting in the right place as I’m a new forum user.

I’m using version 5.0.4 of gladys with a SONOFF irrigation system (ref SWV-ZFE). I want to retrieve the volume of water used every day of the week (Monday to Sunday) and make the total mainly on Sunday.

It seems that this sensor resets its « variable » (sorry if the term is not correct, especially since I will use it often) Current Irrigation Volume every day at 00:00. I have therefore created via Virtual Devices MQTT, a total of 7 devices (Mon_Vol, Tue_Vol…) to retrieve this information. I retrieve in a scene, every day at 23:00 the last state of the irrigation volume information that I place in the Mon_Vol variable. By the way, in the calculated part, the autocompletion works well and suggests this Mon-Vol. There are therefore a total of 7 scenes

The problem is for the scene associated with Sunday where I want in the calculated part to add the different days Mon_Vol+Tue_Vol… But since the autocompletion does not display anything, I think I must be making a mistake.

I therefore tried in a single scene to put beforehand, the different variables Mon_Vol, Tue_Vol… and to see if I could do the calculation again on the last day but there also the autocompletion does not appear. I must therefore be on the wrong track.

You will find below a preview of what I have done

Can you tell me how to calculate the total volume?

Thank you in advance for your help. And apologizing in advance for my abuse of the term « variable » in all sauces…

For autocompletion, did you put 2 curly braces and a space?
Because it’s the space that makes the variables appear.

And I think you can visually reduce the number of Get actions by adding Get directly in the first action, and it becomes “at the same time”.

Thanks @mutmut, it is indeed a syntax error. I had missed 2 curly braces and an apostrophe as indicated in the advice below calculated. I had noticed that the apostrophe before the two curly braces was unnecessary and the one after caused the autocompletion to appear.

For the other point, should this be put in « add an action in parallel »?

yes, it’s here: