Home Assistant Conversation to control light switches

Good Day,

I’m drawing a huge blank here, don’t even know where to start, I have the following switches:


switch:
  - platform: mqtt
    name: "Garage"
    state_topic: "stat/sonofagarage1/POWER"
    command_topic: "cmnd/sonofagarage1/POWER"
    availability_topic: "tele/sonofagarage1/LWT"
    qos: 0
    payload_on: "ON"
    payload_off: "OFF"
    payload_available: "Online"
    payload_not_available: "Offline"
    retain: false
  - platform: mqtt
    name: "Tsakibed"
    state_topic: "stat/tsakibed1/POWER"
    command_topic: "cmnd/tsakibed1/POWER"
    availability_topic: "tele/tsakibed1/LWT"
    qos: 0
    payload_on: "ON"
    payload_off: "OFF"
    payload_available: "Online"
    payload_not_available: "Offline"
    retain: false        
  - platform: command_line
    switches:
     tsakibackup:
      command_on: "/usr/bin/curl -X POST http://192.168.1.133/cm?cmnd=Power%20Toggle"
      command_off: "/usr/bin/curl -X POST http://192.168.1.133/cm?cmnd=Power%20Toggle"
      command_state: "/usr/bin/curl -X GET http://192.168.1.133/cm?cmnd=Power"
      value_template: '{{value_json.POWER == "ON" }}'
      friendly_name: TsakiBackup
      



I’m trying to integrate them into conversation so I can control them with a voice command from Home Assistant, the switches all work fine, and they use mqtt and command line, but the write up on conversation does not help me. After:

conversation:

I do not know what to do.

  1. you got switch ready in HA
  2. conversation:
    2.1shopping_list:
    in configuration.yaml and restart HA after change any setting to HA config.
  3. microphone connect to your computer (Google Chrome)
  4. Open Google Chrome from your computer>setting>Advanced>Content Settings>Microphone>Ask before accessing <== turn on, then close google chrome
  5. Open google Chrome> Open HA http or https://ip-address:port> click microphone on top right.
  6. Say ‘Turn on/Turn off [your switch name]’

Conversation support only pc, andriod phone on google chrome. Cannot use microphone with google chrome on iPhone.

Command for conversation that already in the conversation component are
“Add [what you want to add] to the shopping list”
“Turn on/ Turn off [your switch, light name]”

Thanks, what is the exact configuration to set under conversation: I do reset my home assistant after updating HA, is there anyone wo has integrated conversation on tasmota switches?

You don’t need other setting for add item and turn on/off. these commands already in conversation component.
So just add
conversation: <== get the conversation to work
shopping_list: <== get the shopping list to work

to your configuration.yaml

My works on any device that has turn on/off. Not only switch but also input_boolean. I never try with automation.