Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 106070

How integrate rest_command in Google Home

$
0
0

Hello,

I have a lot of switches defined like this :

switch:
  - platform: command_line
    switches:
        spots_hallway:
          command_on: curl "http://192.168.1.3:80/postEvent.html?action=input&STM=0&MOD=5&CHA=0&EVT=3"
          command_off: curl "http://192.168.1.3:80/postEvent.html?action=input&STM=0&MOD=5&CHA=1&EVT=3"
          friendly_name: "Lichten gang"

These works fine and are showing up in Google Home.

But I also have these rest_commands (f.e. my shutters) :

rest_command:
  rolluik_eettafel_op_kort:
    url: http://192.168.1.3:80/postEvent.html?action=input&STM=0&MOD=2&CHA=10&EVT=3
  rolluik_eettafel_op_lang:
    url: http://192.168.1.3:80/postEvent.html?action=input&STM=0&MOD=2&CHA=10&EVT=4
  rolluik_eettafel_neer_kort:
    url: http://192.168.1.3:80/postEvent.html?action=input&STM=0&MOD=1&CHA=10&EVT=3

How can I make these visible in Google Home and how can I give them a friendly name (to use with Google Assistant) ?

I have this in my configuration.yaml :

google_assistant:
  project_id: home-assistant-xxxxx
  service_account: !include SERVICE_ACCOUNT.json
  report_state: true
  exposed_domains:
    - switch
    - light
    - camera
    - scene
    - sensor
    - script
    - **rest_command**
  entity_config:
    switch.tv_samsung_6_series_50:
      expose: false

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 106070

Trending Articles