ZeroOne3010 / yetanotherhueapi

A Java library for controlling Philips Hue lights. Available from the Maven Central.
MIT License
69 stars 20 forks source link

EffectType from String "prism": not one of the values accepted for Enum #59

Closed BrienFr closed 1 year ago

BrienFr commented 1 year ago

Hello,

I've got the folowing error :

io.github.zeroone3010.yahueapi.HueApiException: com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type io.github.zeroone3010.yahueapi.v2.domain.update.EffectType from String "prism": not one of the values accepted for Enum class: [candle, sparkle, no_effect, fire] at [Source: (sun.net.www.protocol.http.HttpURLConnection$HttpInputStream); line: 1, column: 34983] (through reference chain: io.github.zeroone3010.yahueapi.v2.domain.ResourceRoot["data"]->java.util.ArrayList[57]->io.github.zeroone3010.yahueapi.v2.domain.LightResource["effects"]->io.github.zeroone3010.yahueapi.v2.domain.Effects["status_values"]->java.util.ArrayList[3]) at io.github.zeroone3010.yahueapi.v2.Hue.refresh(Hue.java:109)

I think, this is new possible value for Effects, is there a workaround or could you update api thank in advance

best Regards Brien

ZeroOne3010 commented 1 year ago

Hey, thanks for the report! Seems like a new value indeed, I will look into it!

ZeroOne3010 commented 1 year ago

Alright, this should now be fixed, just update to version 3.0.0-beta! Thank you again so much for the report, please keep them coming! 🙏