Automation integration with Google

Hi there,

fairly new to HA and trying to get my head around integrating it with google for voice commands.

I’ve created a switch within my config yaml which seems to be working fine and looks like this:

switch:
  - platform: template
    switches:
      automation_set_bedroom:
        friendly_name: Google switch integration
        unique_id: "978074154"
        turn_on:
          service: automation.trigger
          entity_id: automation.bedroom_on
        turn_off:
          service: automation.trigger
          entity_id: automation.bedroom_off_2

This runs as expected when I use the switch in google home. I also run the same automation when I use a zigbee switch. Both work fine independently of each other - the problem is when I start the automation with google voie - it toggles the switch and it says ‘on’ within google home. Now if I press the off button on my zigbee switch the automation get toggled - but it doesn’t reflect on the google home switch. It still shows as ‘on’.

Any ideas how I can sort this?

Hello webezine …

I also like to use the Google Assistant and love the Home Assistant. A long time ago I had a problem similar to yours. This is probably very easy to solve if you use the “Casa function”, but I don’t do that. Alternatively, you can manually integrate the Google Assistant into Home Assistant … Or you can use what “Andrei-tatar” wrote for NodeRED. In general, I think NodeRED is a great thing, and thanks to Andrei, both systems can communicate with each other very easily. Thanks again to all Home Assistant developers and also to Andrei.

Take a look at the video here

I wish you continued success and fun with Home Assistant