Querying HVAC Mode on Nest in automation

Hello Pop06095,

Run thru the docs on getting started with the automation editor. If you get stuck, come back with what you have done.

and
The Home Assistant Cookbook - Index.