Nextion screen, switch "view" from Home Assistant

I have been thinking of building a screen using ESP-home.
Looking at different videos on youtube it’s clear that you can switch view completely by pressing on the screen, but can this be done from HA also?

I’m thinking of setting up a screen that by default show time and date, but if something happens it will display something else.
And perhaps if something more happens it displays that too.

I’m not thinking of completely dynamic views, more like 3-4 possible scenarios that can be displayed. And what view is displayed is controlled through an automation in HA or a state being “x” and ESP-home sees that…

Example:

Date
Time

or

Date
Time

Something happened

or

Date
Time

Something happened
Something more happened

and

Something happened
Something more happened
Even more is going on, now time and date does not fit anymore