Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erratic response to built-in traits #5

Closed
jefhil opened this issue Nov 5, 2018 · 2 comments
Closed

Erratic response to built-in traits #5

jefhil opened this issue Nov 5, 2018 · 2 comments

Comments

@jefhil
Copy link

jefhil commented Nov 5, 2018

I have defined a device with all traits except temperature enabled. when testing, i receive erratic responses for builtin traits. I have defined 2 custom traits that always work. For example,

: start
{}
: start
{}
: start
{}
: go to dock
{}
: start
{
"deviceAction": {
"inputs": [
{
"context": {
"locale_language": "en"
},
"intent": "action.devices.EXECUTE",
"payload": {
"commands": [
{
"devices": [
{
"id": "xxxxxxxxxxx"
}
],
"execution": [
{
"command": "action.devices.commands.StartStop",
"params": {
"start": true
}
}
]
}
]
}
}
],
"requestId": "xxxxxxxxxxxx"
}
}
Here's the device model definition:

"deviceModels": [
{
"deviceModelId": "xxxxxxx-yyyyyyy",
"projectId": "xxxxxxxxxxxxxxx",
"manifest": {
"manufacturer": "xxx",
"productName": "xxx"
},
"name": "projects/xxxxxxxxxxxxxxx",
"deviceType": "action.devices.types.LIGHT",
"traits": [
"action.devices.traits.Brightness",
"action.devices.traits.ColorSpectrum",
"action.devices.traits.ColorTemperature",
"action.devices.traits.Dock",
"action.devices.traits.OnOff",
"action.devices.traits.StartStop"
],
"executionModes": [
"DIRECT_RESPONSE"
],
"lastUpdatedTime": "2018-10-29T21:29:16.591690742Z"
}
]

Similar behavior happens with turn on/off, go to dock. Color setting (e.g. set the light to red) never seems to work

@Fleker
Copy link
Collaborator

Fleker commented Nov 6, 2018

Are you setting the model and instance ID in every request? Is there something in the request that changes?

@jefhil
Copy link
Author

jefhil commented Nov 6, 2018

yes I am setting both model and instance id. Nothing changed. These were typed exactly as you see them -- in the same session, one after another.

@Fleker Fleker closed this as completed Apr 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants