Sending attributes from BMW connected to iPhone

I have a new Mini and use Mini (BMW) connected. I am new to Home Assistant but have it up and running and have the BMW integration installed.

One of the things it can see is if the doors and windows are locked as a single entity:

entity_id: binary_sensor.cooper_windows 

but under this when i look at developer tools, there are a whole bunch of attributes:

	attribution: Data provided by BMW Connected Drive
car: Cooper
rearWindow: CLOSED
sunroof: CLOSED
vin: xxxxxxxxxxxx
windowDriverFront: CLOSED
windowDriverRear: CLOSED
windowPassengerFront: CLOSED
windowPassengerRear: CLOSED
friendly_name: Cooper Windows
icon: mdi:car-door
device_class: opening

What I am trying to achieve is for a push notification to my phone if I have left the sunroof open. Can the attribute from this entity (ie OPEN or CLOSED) be used as a message text in an action?

Thanks