question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ColorSetting report state failing

See original GitHub issue

At least I think its ColorSetting. I have a user sending a request and getting an error over the following:

2019-01-06 19:48:35.612 +03:00 [Warning] Google Home Graph update failed for devices: home/hall/strip
2019-01-06 19:48:35.612 +03:00 [Warning] Request: {"requestId":"xxxx","eventId":"xxxx","agentUserId":"xxxx","followUpToken":null,"payload":{"devices":{"states":{"home/hall/strip":{"on":false,"brightness":100,"color":{"spectrumRgb":0}},"notifications":null}}
2019-01-06 19:48:35.612 +03:00 [Warning] Response: {
  "error": {
    "code": 400,
    "message": "Request contains an invalid argument.",
    "status": "INVALID_ARGUMENT"
  }
}

Unless there’s additional validation over that spectrumRgb not being 0, or having a brightness in combination with on = false, I’m not sure what would be incorrect there. My understanding from the docs here is that state is tied to an individual TRAIT instead of for a device as a whole, which would make me think you aren’t doing cross-trait validation.

What am I missing?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
i8beefcommented, Feb 6, 2019

So to be clear:

  1. Should accept color.spectrumRGB as a command parameter, NOT color.spectrumRgb
  2. But when returning state via a Query we should return color.spectrumRgb, NOT color.spectrumRGB
  3. Except when doing ReportState in which case we should send color.spectrumRGB, NOT color.spectrumRgb
0reactions
Flekercommented, Feb 6, 2019

Yes. I understand it’s not very intuitive, but that’s an accurate representation of the development process right now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Smart Home OpenClose Trait Schema
Set this attribute to true if the device cannot respond to a QUERY intent or Report State for this trait. queryOnlyOpenClose, Boolean. (Default:...
Read more >
Smart Home & Report State: what happens if the current ...
Failure to report the most recent state may result in errors when users try to execute commands if the command is state dependent....
Read more >
Frequently Asked Questions - Slurm Workload Manager
The job can be in state RUNNING, SUSPENDED, COMPLETED or FAILED before being requeued. $ scontrol requeuehold 10 $ squeue JOBID PARTITION NAME ......
Read more >
Google Assistant Smart Home Part 2: API Implementation
ColorSetting or even have an integrated camera and allow people to ... Report State is an API for pushing the real-time state of...
Read more >
Cytoflex-Manual.pdf
Report any broken parts to your Beckman Coulter Representative. ... Cytometer state, certain functions may not be available. Standby state.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found