Closed sspaul1976 closed 5 months ago
Hey there @genericstudent, mind taking a look at this issue as it has been labeled with an integration (color_extractor
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
color_extractor documentation color_extractor source (message by IssueLinks)
Hi @sspaul1976, couple things spring to mind.
One, could you enable debug logging on the color_extractor integration and see what it produces?
Second, I can see your debug of the entity has rgb_color which is all this integration invokes so rgbw shouldn't matter, could you try loading a debug image of all green and seeing if that works, or aiming it against only a single bulb instead of a group (if its a group)
Let me know if the extra logging gives you anything, cheers
Thanks, Adam.
I was able to get it to work with a bit of a hack. I think the external URL was being blocked and path doesn't seem to work for local. Below does work:
service: color_extractor.turn_on data_template: color_extract_url: >-
http://192.168.86.249:8123{{states.media_player.bar.attributes.entity_picture_local }} entity_id: light.music_room
I also added my local IP to the allow external URL in config.
On Sat, Feb 24, 2024, 03:09 Adam Cooper @.***> wrote:
Hi @sspaul1976 https://github.com/sspaul1976, couple things spring to mind.
One, could you enable debug logging https://www.home-assistant.io/integrations/logger/ on the color_extractor integration and see what it produces?
Second, I can see your debug of the entity has rgb_color which is all this integration invokes so rgbw shouldn't matter, could you try loading a debug image of all green and seeing if that works, or aiming it against only a single bulb instead of a group (if its a group)
Let me know if the extra logging gives you anything, cheers
— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/111248#issuecomment-1962293700, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPFFBRORPV5LIZ7Q5AX6Z3YVGN3BAVCNFSM6AAAAABDXQEMIKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRSGI4TGNZQGA . You are receiving this because you were mentioned.Message ID: @.***>
Thanks, Adam.
I was able to get it to work with a bit of a hack. I think the external URL was being blocked and path doesn't seem to work for local. Below does work:
service: color_extractor.turn_on data_template: color_extract_url: >-
http://192.168.86.249:8123{{states.media_player.bar.attributes.entity_picture_local }} entity_id: light.music_room
I also added my local IP to the allow external URL in config.
On Sat, Feb 24, 2024, 03:09 Adam Cooper @.***> wrote:
Hi @sspaul1976 https://github.com/sspaul1976, couple things spring to mind.
One, could you enable debug logging https://www.home-assistant.io/integrations/logger/ on the color_extractor integration and see what it produces?
Second, I can see your debug of the entity has rgb_color which is all this integration invokes so rgbw shouldn't matter, could you try loading a debug image of all green and seeing if that works, or aiming it against only a single bulb instead of a group (if its a group)
Let me know if the extra logging gives you anything, cheers
— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/111248#issuecomment-1962293700, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPFFBRORPV5LIZ7Q5AX6Z3YVGN3BAVCNFSM6AAAAABDXQEMIKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRSGI4TGNZQGA . You are receiving this because you were mentioned.Message ID: @.***>
Sounds right to me, it should produce a warning/error if the external url isn't authorised.
Glad you got it working.
not working for me (its just not changing the led status)
service: color_extractor.turn_on data_template: color_extract_url: "http://192.168.1.131:8123/{{states.media_player.yanir_room_speaker.attributes.entity_picture_local }}" entity_id: light.led_s
get an error on the log :
External URL 'https://lh3.googleusercontent.com/wdNi-5uwhaxeKZzH-FuWl5V4t3VIDYarOxUmgbhdmXYAFHRTFG9GOnBoFDHDGBfZyHVHOP8c4TreX=w120-h120-l90-rj' is not allowed, please add to 'allowlist_external_urls'
I had to add my local IP in the config yaml to get it to work.
homeassistant: allowlist_external_urls:
On Sat, Feb 24, 2024, 13:11 yanirel @.***> wrote:
get an error on the log :
External URL ' https://lh3.googleusercontent.com/wdNi-5uwhaxeKZzH-FuWl5V4t3VIDYarOxUmgbhdmXYAFHRTFG9GOnBoFDHDGBfZyHVHOP8c4TreX=w120-h120-l90-rj ' is not allowed, please add to 'allowlist_external_urls'
— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/111248#issuecomment-1962442840, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPFFBRULJXBU7QAAGXIWMDYVIULLAVCNFSM6AAAAABDXQEMIKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRSGQ2DEOBUGA . You are receiving this because you were mentioned.Message ID: @.***>
can i extract 2 colors for 2 led strip? - or even 3?
can i extract 2 colors for 2 led strip? - or even 3?
The underlying color thief library can pull X amount of colours (from most dominant to least), but that functionality isn't pulled into this integration.
You can have the most dominant colour extracted and applied to multiple lights as it is though.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
The problem
This integration does not appear to work with RGBW Lights. There is no error, it simply does not do anything. I assume this is because the supported color mode for my lights lists RGBW and not RGB, but not sure. These are WiZ recessed can retrofit bulbs.
What version of Home Assistant Core has the issue?
2024.2.3
What was the last working version of Home Assistant Core?
2024.2.3
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Color Extractor
Link to integration documentation on our website
https://www.home-assistant.io/integrations/color_extractor/
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information