Closed renssies closed 1 year ago
Hey there @balloob, @marcelveldt, mind taking a look at this issue as it has been labeled with an integration (hue
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
hue documentation hue source (message by IssueLinks)
First of all, don't worry about the diagnostics as they are completely anonymized and all id's scrambled. So for next time try to keep it intact please.
This is a complete new feature on the Hue platform and API so yes you are on the cutting edge :-) I'll try to get my hands on one of these lights myself so fix it, hopefully in time for Christmas. In the meantime I'm afraid you will have to control it manually with the Hue app.
Ok, the diagnostics file was 3000+ lines due to all the scenes, rooms and sensors so I wanted to do a favor, but will include the full state next time.
As for the effect, it's not really a new feature, it just an option next to "fire" and "candle" for the effect property. I assumed the hue integration just loaded the possible values that are present in the (V2) API and displayed them. So that's why it seemed more like a bug than a new feature.
As you can see from the response it does include "sparkle" in the possible values next to "fire" and "candle", but HA seems to display and send "unknown".
But if it needs more work, I'm happy to wait
Well, in this case it's fine but some users have e.g. performance issues and in that case it's actually helpful to see if they crossed the 50 device limit or added a lot of non genuine lights.
My first response was that just the sparkle effect was missing but then I discovered that whole new "interpolated_palette " mode which is completely new to me. So I could just try to add the missing sparkle effect but I'm guessing there's more
interpolated_palette
has nothing to do with the "sparkle" effect, "sparkle" works exactly the same as "candle" and "fire". It (sadly) has no options for speed or color.
interpolated_palette
and interpolated_palette_mirrored
aren't new. interpolated_palette
is just gradient and . I was incorrect, see this comment. They were introduced in a firmware update for the gradient products to allow for mirroring the strip. They appear als "linear" in the app. It has nothing to do with effects.interpolated_palette_mirrored
is gradient, but start mirrored
random_pixelated
is new, and only available for the string lights. It is the "scattered" option within the app and scatters the light over the string, but it has nothing to do with effects. It only influences scenes, and colors.
OK thanks, first time I've seen this hence the confusion. In that case it's as easy as adding the sparkle effect. It does need some investigation (do we even have a place for that in HA) at some point but as it now looks not for now. I plan to do some other Hue fixes too next week or so, so I can smash this one in too, assuming it's as easy as adding the effect only.
Off topic: What's the quality of the light btw, are you happy with it ? I'm tempted to buy one at some point but not sure if it's worth the price point compared to e.g. Twinkly.
If I had more python experience I would have submitted a fix myself. I checked it myself with some API calls to the V2 API and it is just as easy as setting the effect value to "sparkle" and that should be it.
My first impressions on the string lights:
I have personally only used the first gen twinkly, the triangle shaped box. But they had a flicker, the controller had a whining noise and after use the solder of the power cable just broke, customer support was very lacking at the time. I haven't tried any of the newer twinkly products since.
No worries, I'm already glad you provide a lot of info and checked the API calls, that saves like 80% of the work ;-)
I do have a Twinkly (new gen) light here just because my wife purchased it on sale somewhere and I was impressed by the app and how easy it was to create the effects but I do like the build quality of Hue products, it has never disappointed me so far. Thanks for the info.
I'll let you know here once I created a patch for the missing effect.
Sorry I made a small mistake earlier, it's not related to the sparkle effect but it was something I mentioned here and wanted to clarify.
First interpolated_palette_mirrored
is not available on the gradient lightstrip, but it is on some other gradient products, including these string lights.
Second interpolated_palette
is the gradient you might know from the gradient lightstrip, so if you set 3 colors: red, green blue it will transition from red, to green, to blue.
interpolated_palette_mirrored
is the gradient but from the middle to both sides (also the first color moves to the middle somehow). So if you set the same colors you get blue to green to red to green to blue.
The problem
I'm probably on the cutting edge but I got the Philipe Hue Festavia string lights today. They function fine with Home Assistant except for the effects.
The string lights have a new "sparkle" effect, but in home assistant this appears as "unknown" and causes a 400 bad request when activating it. So far the sparkle effect seems limited to the string lights, the gradient strips do not have it.
What version of Home Assistant Core has the issue?
2022.11.1
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
Philips Hue
Link to integration documentation on our website
https://www.home-assistant.io/integrations/hue/
Diagnostics information
config_entry-hue-200cee5590161ab5de97c7f1d2363468.json.txt
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
Due to the size of my hue setup and for a bit of privacy I've removed some lights, groups rooms etc from the diagnostics file's full state. I've left the string lights and a gradient lightstrip for comparison.
Also this is the full response of the gradient lightstrip from the V2 API if you are curious:
Full response of /clip/v2/resource/light/redacted-280b-46c8-b1d2-58fcbb717abe
```JSON { "errors": [], "data": [ { "id": "redacted-280b-46c8-b1d2-58fcbb717abe", "id_v1": "/lights/61", "owner": { "rid": "redacted-ab36-43eb-9ba8-3b2871d79880", "rtype": "device" }, "metadata": { "name": "Hue gradient string light 1", "archetype": "string_light" }, "on": { "on": true }, "dimming": { "brightness": 100.0, "min_dim_level": 5.0 }, "dimming_delta": {}, "color_temperature": { "mirek": null, "mirek_valid": false, "mirek_schema": { "mirek_minimum": 153, "mirek_maximum": 500 } }, "color_temperature_delta": {}, "color": { "xy": { "x": 0.1545, "y": 0.0968 }, "gamut": { "red": { "x": 0.6915, "y": 0.3083 }, "green": { "x": 0.17, "y": 0.7 }, "blue": { "x": 0.1532, "y": 0.0475 } }, "gamut_type": "C" }, "dynamics": { "status": "none", "status_values": [ "none", "dynamic_palette" ], "speed": 0.0, "speed_valid": false }, "alert": { "action_values": [ "breathe" ] }, "signaling": {}, "mode": "normal", "gradient": { "points": [ { "color": { "xy": { "x": 0.1545, "y": 0.0968 } } }, { "color": { "xy": { "x": 0.1545, "y": 0.0968 } } }, { "color": { "xy": { "x": 0.1545, "y": 0.0968 } } }, { "color": { "xy": { "x": 0.1545, "y": 0.0968 } } }, { "color": { "xy": { "x": 0.1545, "y": 0.0968 } } } ], "mode": "interpolated_palette", "points_capable": 5, "mode_values": [ "interpolated_palette", "interpolated_palette_mirrored", "random_pixelated" ], "pixel_count": 250 }, "effects": { "status_values": [ "no_effect", "candle", "fire", "sparkle" ], "status": "no_effect", "effect_values": [ "no_effect", "candle", "fire", "sparkle" ] }, "timed_effects": { "status_values": [ "no_effect", "sunrise" ], "status": "no_effect", "effect_values": [ "no_effect", "sunrise" ] }, "type": "light" } ] } ```