I developed an application iot cloud on Arduino R4 for my boat. I use a dashboard to control and display variables.
Everything works well.
I just added a few triggers to send email and/or annotations to the Arduino owner accounts. This works well.
My problem is that the dynamic variables values in the message are not displayed. Instead, the text of the trigger is displayed {variable_A} or
{var_a.value} not the actual variable current information
Do you think it might help if you posted your sketch so that we can see how you are doing what you describe ?
hi @jcpmorvan,
you have to use {variable.value} in the template of the notification and not {var_a.value}. The reference to the variable is automatic with the variable that you associated with the trigger.
Hi mirkocurtolo,
Thank you for the clear response. Referring to the variable from the trigger is useful, but being able to access all the others thing variables would be very useful.
If the use case is: when a variable changes I want to receive a "snapshot" of all the other variables in that moment, this is not supported out of the box.
There's a workaround: now you are probably using a boolean variable, but you can add a string variable to the thing and then associate a trigger to the string variable instead. Then when the event you want to link to the notification happens, you edit the string (sketch side) with the value of all the other variables you want to track in that moment. Using this workaround when in the body of the email you write {variable.value} you will have the full value of the string containing the snapshot of all the others variables.
Thank you for your reply. I use several triggers based on several variables. Most of the time, the variable values are displayed on the dashboard anyway. The triggers are great as they are now.
The trigger documentation was not clear about the limitation to the trigger variable.