To create one automation with notification if one of many doors/windows is open

Hi to all. I need to create one automation for checking the status of all sensors. If one of the sensors is open, send only one phrase to google nest “Check windows and doors for closing”. Thanks.

Just list all the entities in a state trigger:

trigger:
- platform: state
  entity_id:
  - binary_sensor.front_window
  - binary_sensor.side_window
  - binary_sensor.roof_window
  to: 'on'

Thank you. I’m a beginner. I found a way how to do it through a graphical editor.