First off, please format your YAML properly in the forum, it’s very difficult to read what you have pasted. See item 11 in this post:
Second, your automation will likely be based on the hvac_mode as it’s the attribute that indicates if you are off, cooling, heating, etc. So your trigger will be something like this:
platform: state
entity_id:
- climate.the_name_of_your_climate_entity
attribute: hvac_action
from: idle
to: heating