Alexa Actionable with Nest Thermostat

Created a set of automatons that do the following:

Checks ambient temp in house and if above 78 alexa will ask if HVAC should be turned on. If response is yes, alexa will then ask what temp to set it for.

Everything works up to the point that the thermostat is set to the requested temp. At that point I get an error.

Error: Error rendering data template: UndefinedError: ‘dict object’ has no attribute ‘event’

The automation is:

alias: Alexia HVAC Temp
description: set HVAC to requested temp
trigger:

  • platform: event
    event_type: alexa_actionable_notification
    event_data:
    event_id: hvac_temp
    event_response_type: ResponseNumeric
    condition: []
    action:
  • service: climate.set_temperature
    data:
    hvac_mode: cool
    temperature: ‘{{ trigger.event.data.event_response }}’
    target:
    entity_id: climate.nest
    mode: single

I suspect that it is ‘{{ trigger.event.data.event_response }}’ that is the problem but don’t know how to fix it.