unfortunately I can’t find anything in the vastness of the WWW and also here in the forum not really a simple explanation, so I have to ask.
Is it possible to display the value of an item in a notification? For example, I track the price of gasoline at my gas station and of course I want to know what the current price is in the notification.
I think about the DSL rule interface this will not be possible but about a code rule or a script maybe? Unfortunately, I can’t find a good simple explanation anywhere if and how this works.
As an example:
Notification content: Diesel 1,79€ → after next update → Diesel 1,84€
I do similar but only show the price in the UI and do not get a notification, as the price is changing frequently.
In addition you can use persistence and calculate e.g. last x days average (I do last 7 days) and compare current price with the average. By this you know if it’s currently cheap or expensive and you can better see trends
I have a new question. How can I send an icon in the message? The message structure is clear to me but if I put a comma after sendNotification(“email@example.com”, "Today it will be " + Weather_home_Temperature_Max_today.state + “!”, “icon”), and select the “icon”, sending the whole message does not work anymore.
What am I doing wrong?
I have also tried with SendExtendedNotification but no success.