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

[AmazonEchoControl] IllegalArgumentException when sending command #17694

Open
felixschndr opened this issue Nov 3, 2024 · 0 comments
Open

[AmazonEchoControl] IllegalArgumentException when sending command #17694

felixschndr opened this issue Nov 3, 2024 · 0 comments
Labels
bug An unexpected problem or unintended behavior of an add-on

Comments

@felixschndr
Copy link
Contributor

felixschndr commented Nov 3, 2024

I added a light to my Amazon account to be able to control it via the AmazonEchoControl Binding in OpenHAB. This works just as expected normally. However this time I am facing the problem that I cannot control the color of a lamp.
All item values are populated properly. I can set the brightness of the lamp. I can read the color of the lamp. However setting it does not work:

2024-11-03 16:06:42.677 [INFO ] [openhab.event.ItemCommandEvent                                                  ] - Item 'AmazonArbeitszimmerDeckenlampeColor' received command 151,91,100
2024-11-03 16:06:42.680 [INFO ] [openhab.event.ItemStateChangedEvent                                             ] - Item 'AmazonArbeitszimmerDeckenlampeColor' changed from 120,100,100 to 151,91,100
2024-11-03 16:06:42.683 [DEBUG] [org.openhab.binding.amazonechocontrol.internal.Connection                       ] - Make request to https://alexa.amazon.de/api/phoenix/state
2024-11-03 16:06:42.684 [DEBUG] [org.openhab.binding.amazonechocontrol.internal.Connection                       ] - PUT: {"controlRequests":[{"entityId":"XXX","entityType":"APPLIANCE","parameters":{"action":"setColor","value":{"hue":151,"saturation":0.91,"brightness":1.0}}}]}
2024-11-03 16:06:42.918 [DEBUG] [org.openhab.binding.amazonechocontrol.internal.Connection                       ] - Call to https://alexa.amazon.de/api/phoenix/state succeeded
2024-11-03 16:06:42.920 [DEBUG] [org.openhab.binding.amazonechocontrol.internal.Connection                       ] - Result of PUT https://alexa.amazon.de/api/phoenix/state:{"controlResponses":[],"errors":[{"entity":{"entityId":"XXX","entityType":"APPLIANCE"},"code":"IllegalArgumentException","message":"null","data":null}]}
2024-11-03 16:06:42.920 [WARN ] [org.openhab.binding.amazonechocontrol.internal.Connection                       ] - Smart home device command failed. The request '{"controlRequests":[{"entityId":"XXX","entityType":"APPLIANCE","parameters":{"action":"setColor","value":{"hue":151,"saturation":0.91,"brightness":1.0}}}]}' resulted in error(s): {"entity":{"entityId":"81a5d483-3b5a-462c-836b-f6a7ae9b8e0d","entityType":"APPLIANCE"},"code":"IllegalArgumentException","message":"null","data":null}

This is the light, it's kinda cheap I guess but is Alexa certified and can be controlled as expected in the Alexa app. That's why I think it's not a problem with the lamp itself but the binding.

Steps to Reproduce (for Bugs)

  1. Add lamp in Alexa app
  2. Add lamp as thing Thing smartHomeDevice Amazon_Arbeitszimmer_Deckenlampe "Amazon_Arbeitszimmer_Deckenlampe"@"Deckenlampe" [id="SKILL_xxx"]
  3. Create item Color AmazonArbeitszimmerDeckenlampeColor "Color"{channel="amazonechocontrol:smartHomeDevice:Amazon_System_Konto:Amazon_Arbeitszimmer_Deckenlampe:color"}

Your Environment

runtimeInfo:
  version: 4.2.0
  buildString: Release Build
@felixschndr felixschndr added the bug An unexpected problem or unintended behavior of an add-on label Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

No branches or pull requests

1 participant