Home Assistant

Home Assistant Lesson 15 – Free Google Assistant and HASS links with IFTTT

0 comment 152 views

PREPARE

1 / HASS – Obviously

2 / Google Home mini or products with Google Assistant is okay

3 / Get IFTTT’s key added to HASS

Open HASS, select Configuration – Integrations

Then select IFTTT CONFIGURE

IFTTT now gives you a URL , you copy it again, will use it again.

You go to  https://ifttt.com/  and log in. If you do not have an account, please register.

Select New Applet , you’ll see the following:

You select  This , then type Google Search

Select Say a simple phrase

Where What do you want to say, you enter the command as you like, for example, Turn on bedroom lightWhat’s another way to say it you enter another command to replace the above sentence, for example, i go to bedAnother way you enter more if you want.

Now you choose to go to THAT

Find Webhook

Now you enter the URL that HASS provided earlier

The method and Content Type entered as below.Body you enter according to the picture.”Action”: “call_service” you didn’t edit”Service”: “switch.turn_off” You fix the service as you like. If you need to learn service, see here .”Entity_id”: “switch.abcde” You enter your device name.Click Create Action to finish.

Coming to this step is about to finish. There is one last step left.

You go back to HASS and add the following automation section, keep it unchanged.

automation:
  trigger:
    platform: event
    event_type: ifttt_webhook_received
    event_data:
      action: call_service
  action:
    service_template: '{{ trigger.event.data.service }}'
    data_template:
      entity_id: '{{ trigger.event.data.entity_id }}'

Now Save, check config and Reload Automations is done.

Related Posts

Leave a Reply

Tips and Tricks

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More