DewGew/Domoticz-Google-Assistant

Switch selecto

ayasystems opened this issue · 1 comments

Is your feature request related to a problem? Please describe.
I don't know if it is a problem or i don't know how to do

Describe the solution you'd like
I have a Light switch with selector options. How it's works?
I can see the device in google home but it is not worker. And the selector options is not showed

Voice control is working "PerrosAgua 10" but if i touch enable on google home nothing happens

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
image

WhatsApp Image 2021-03-30 at 17 49 48

Device is 172


2021-03-30 17:56:04 - DEBUG - X-Real-IP: 66.249.93.122
Host: assistant.xxxxxxxxxxx
X-Forwarded-For: 66.249.93.122
Connection: close
Content-Length: 280
Content-Type: application/json;charset=UTF-8
Google-Assistant-API-Version: v1
Authorization: Bearer xxxxxxxxxxx
User-Agent: Mozilla/5.0 (compatible; Google-Cloud-Functions/2.1; +http://www.google.com/bot.html)
Accept-Encoding: gzip,deflate,br


2021-03-30 17:56:04 - INFO - Request {
  "inputs": [
    {
      "context": {
        "locale_country": "US",
        "locale_language": "en"
      },
      "intent": "action.devices.EXECUTE",
      "payload": {
        "commands": [
          {
            "devices": [
              {
                "id": "Selector172"
              }
            ],
            "execution": [
              {
                "command": "action.devices.commands.OnOff",
                "params": {
                  "on": false
                }
              }
            ]
          }
        ]
      }
    }
  ],
  "requestId": "16489690993762663076"
}
2021-03-30 17:56:04 - ERROR - Unable to execute action.devices.commands.OnOff for Selector172
2021-03-30 17:56:07 - DEBUG - X-Real-IP: 66.249.93.120
Host: assistant.xxxxxxxxxxx
X-Forwarded-For: 66.249.93.120
Connection: close
Content-Length: 278
Content-Type: application/json;charset=UTF-8
Google-Assistant-API-Version: v1
Authorization: Bearer xxxxxxxxxxx
User-Agent: Mozilla/5.0 (compatible; Google-Cloud-Functions/2.1; +http://www.google.com/bot.html)
Accept-Encoding: gzip,deflate,br


2021-03-30 17:56:07 - INFO - Request {
  "inputs": [
    {
      "context": {
        "locale_country": "US",
        "locale_language": "en"
      },
      "intent": "action.devices.EXECUTE",
      "payload": {
        "commands": [
          {
            "devices": [
              {
                "id": "Selector172"
              }
            ],
            "execution": [
              {
                "command": "action.devices.commands.OnOff",
                "params": {
                  "on": true
                }
              }
            ]
          }
        ]
      }
    }
  ],
  "requestId": "6839974236913435698"
}
2021-03-30 17:56:07 - ERROR - Unable to execute action.devices.commands.OnOff for Selector172

It only works with voice commands for now. The touch button suppost only switches off.