mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 02:50:12 -04:00
initial push
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
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(' ', '_') }}"
|
||||
Reference in New Issue
Block a user