mdhiggins / ESP8266-HTTP-IR-Blaster

ESP8266 Compatible IR Blaster that accepts HTTP commands for use with services like Amazon Echo
MIT License
980 stars 218 forks source link

Setting devices to type “speaker” causes them to show up as “other” #322

Closed DragRedSim closed 3 years ago

DragRedSim commented 3 years ago

Slight glitch with the web control. Setting the Device Category to “Speakers” causes the device to show up in the Alexa app as “Other”. This is because in the JSON, this is stored as: "displayCategories": [ "SPEAKERS” ], This is not a valid option for the Alexa display categories; it is actually looking for “SPEAKER” (no plural), per https://developer.amazon.com/en-US/docs/alexa/device-apis/alexa-discovery.html#display-categories . Manually editing the JSON corrects the icon in Alexa, however it means that the web interface no longer recognises the device as a speaker, and sets the category to “Other”, resetting the value on the next save.

mdhiggins commented 3 years ago

Should be fixed now, any devices previously set to SPEAKERS should update automatically on the next device update to SPEAKER as well