Notifications and conditions - Message to include only the "open" state entities

Hi All,

My first post here. Using HA for over 6 months now and loving every part of it.

My next part of smart home project is the door/window sensors, showing if the windows are open or closed.

Now, i have a weather station and getting different data from it in HA, like when it start raining, all tested and works. Now, i would like to set up the notification when it starts raining and any of the windows are open, i did this with automations and it works great except for one thing:

I would like the notification message to include ONLY “open” sensors/windows/doors instead of showing the state of all of them.

Is there any way to have parts of the message to show based on device/sensor state?

many thanks in advance,
Alek

Yes there is but it is difficult to help you unless you share your automation with us.