-
-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
Philips TV ambilight support #44867
Philips TV ambilight support #44867
Conversation
e6988d6
to
11866ac
Compare
Should be done for start of review. I still need to update docs. |
412d920
to
0679fa7
Compare
0679fa7
to
f5b31bf
Compare
f5b31bf
to
6ac3ab0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
I've just tried it and it's working great for now! Like others Ambilight component it just can't turn on the light when the TV is in deep sleep (or am I missing something?) but with Wakelock app it's working. I have tried transitions but it's not working too, the color changing is instant. Anyway it's great to see an official component for our Ambilight TV! It's just missing a switch for the Ambilight+Hue, I've made one myself but I'm not really a dev. Sorry for my approximate english and thank you again for your work! |
@elupus thank you very much for your work. i've tried and for me it's works for only color, but i can't see the Lounge Light HOT_LAVA, DEEP_WATER and FRESH_NATURE effects on the list and, i don't know why. Do you need something to debug ? I'm using a Philips 55oled804/12 with api 6 version |
At the moment it is using the old ambilight control api that is available for v1. Annoyingly they had to go and invent new stuff for v6. I will likely add support for those styles in a later pull. |
Thank you @elupus ... i mentionned an issue on the other github project, i've made some modification, maybe you can (re)use to include on ha-philipsjs ? one more time, nice job 👌👌👌 |
ha-philipsjs already have support for getting styles. Just not used here yet. It need to fully replace the old logic if the system support it. Ps. I don't know which other project you mean. |
I have found another "issue", I don't know if it's a normal behavior but when I change the color to pure red (255, 0, 0), the color on the Ambilight is orange, I can live with it but I prefer to share this with you 🙂 |
That is really odd. Does it snap to orange? That is, something really close to pure orange is still red:er? |
I finally managed to understand why i wasn't able to restore ambilight mode to follow video properly. To restore, one need to turn it to off state, wait for a transition effect to off, then turn it to follow video again. If you are too quick. The off transition gets aborted half way, and get stuck. So.. it should now turn off properly and switch to follow video. I will try to implement a restoring off mode later. Also, I've reduced TV hammering of ambilight data, that seemed to crash it. I will backport that. |
Sorry, switch off still not working on OLED804. Fades off, then after a second does a little pulse, then a few seconds later comes on again at dim brightness... |
This looks good! Turns on and off correctly, and the other tweaks seem to make it really responsive. I'm impressed. Any particular things you want testing? I think the only thing I would look to add would be some sort of lookup dictionary so that the colour modes are labelled in a friendlier way (matching up with the built-in names on the TV) and without some of the duplicate modes. Functionally though it's excellent! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Left a couple of comments.
The tv's do invalid things and start showing background color when asked to follow video while off.
It is inherited from CoordinatorEntity
These latest changes have broken something. Re-installed the component from scratch using the new commits, it can't add the light entity:
|
Can confirm that reverting back to 31c71d2 fixes the issue. |
I missed something in the upgrade to attributes. Will fix later. |
Oh right. you need lasted dev branch for those things to work properly. It's not fault in the pull request. Just won't work with older home assistant versions. |
Proposed change
Bump of dependency: danielperna84/ha-philipsjs@2.7.3...2.7.4
Type of change
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: