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

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

0 comment 182 views
Home Assistant

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

s1200

Then select IFTTT CONFIGURE

s1200

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

s1200

Find Webhook

s1200

Now you enter the URL that HASS provided earlier

s1200

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.

s1200

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

s1200

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 Tips And Tricks

Leave a Comment

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