dialogflow: intent_script: Temperature: speech: text: The temperature at home is {{ states('sensor.thermostat_temperature') }} degrees LocateIntent: speech: text: > {%- for state in states.person -%} {%- if state.name.lower() == User.lower() -%} {{ state.name }} is at {{ state.state }} {%- endif -%} {%- else -%} Sorry, I don't have any trackers registered. {%- endfor %} WhereAreWeIntent: speech: text: > {%- if is_state('person.clint', 'home') and is_state('person.kristy', 'home') -%} You are both home, you silly {%- else -%} Kristy is at {{ states("person.kristy") }} and Clint is at {{ states("person.clint") }} {% endif %} TurnLights: speech: text: Turning {{ Room }} lights {{ OnOff }} action: - service: notify.mobile_app_pixel_7 data: message: Someone asked via apiai to turn {{ Room }} lights {{ OnOff }} - service_template: > {%- if OnOff == "on" -%} switch.turn_on {%- else -%} switch.turn_off {%- endif -%} data: entity_id: "switch.light_{{ Room | replace(' ', '_') }}"