google-home / smart-home-nodejs

A sample of the Smart Home device control APIs in Actions on Google
Apache License 2.0
892 stars 291 forks source link

Devices controlled by IR remote controller occur error. #507

Closed LGUteam closed 4 years ago

LGUteam commented 4 years ago

Hello.

We are developing devices(TV/air purifier etc.) controlled by IR remote controller. This is the synchronization code for the TV device controlled by the IR remote controller.

{
   "requestId": "17429246703703645557",
   "payload": {
           "devices": [
              {
                     "id": "C814617C-7C24-3AE8-8CF3-4D16A63B6779",
                     "type": "action.devices.types.TV",
                     "traits": [
                        "action.devices.traits.Channel",
                        "action.devices.traits.OnOff",
                       "action.devices.traits.Volume"
                     ],
                     "name": {
                        "defaultNames": [
                                "GREEN IRTV"
                        ],
                        "name": "GREEN IRTV",
                        "nicknames": [
                                "GREEN IRTV",
                                "티비"
                        ]
                     },
                     "willReportState": false,
                     "attributes": {
                        "availableChannels": [
                                {
                                   "key": "MBC",
                                   "names": [
                                          "MBC"
                                   ],
                                   "number": "11"
                                }
                        ],
                        "commandOnlyChannels": true,
                        "commandOnlyOnOff": true,
                        "commandOnlyVolume": true,
                        "levelStepSize": 1,
                        "volumeCanMuteAndUnmute": true,
                        "volumeDefaultPercentage": 50,
                        "volumeMaxLevel": 100
                     },
                     "roomHint": "다용도실",
                     "customData": {
                        "type": "IRTV",
                        "subType": "DEFAULT_P",
                        "uuid": "C814617C-7C24-3AE8-8CF3-4D16A63B6779",
                        "location": "다용도실",
                        "model": "VIRTV",
                        "vendorCode": "0000559",
                        "isPairing": true,
                        "isIr": true,
                        "parent": {
                                "uuid": "C0A74063-8626-317A-B78E-72402DAFA65A",
                                "type": "IRREMOCON"
                        }
                     }
              }
           ],
           "agentUserId": "500100015009"
   }
}

Since we don't know the device status value, we want a one-way 'Excute' request. (Not 'reportstate' and 'Query')

I was wondering if I synced correctly for an example like a TV remote contoller.

ps) video for errors.

thanks.

Fleker commented 4 years ago

So your device responds to voice commands fine but not touch controls? I suggest filing a bug report.

LGUteam commented 4 years ago

Yes, voice commands are fine. I think the problem is that we Synced wrong or nesthub/homeapp(status page) are repeatedly request queries to my server.

devunwired commented 4 years ago

There are some known issues with commandOnly devices in the Home app UI, which is likely what you are experiencing. I would suggest subscribing to this public issue to track progress or file a new issue as @Fleker suggested above.