-
Notifications
You must be signed in to change notification settings - Fork 19
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
Improve philips.light.moonlight support #22
Comments
Please update the custom component to the development version (branch: develop)! The device is already supported. |
Hello, thanks for your help. Went in my virtual env, ran this So I tried with Same result. What am I doing wrong? I am sure this is a stupid question but I can't find the answer myself :( |
I tried to find something to replace it in the libs, but looks like i miss some preprocessing or whatsoever (the files are splitted by type, unlike in the repository) |
Please download & extract this file: https://github.com/syssi/philipslight/archive/develop.zip Place the "custom_components" folder (incl. content) into your config directory. On hassbian the directory structure looks like this:
On hass.io it should be something like this:
Restart Home Assistant and try to control the moonlight. |
Hello, and merry christmas! Il will try to use the sleep assistant and sleep off time features when I go back from holidays. Thanks Again |
I would be happy if you provide some details (example values, mihome settings -> moonlight behavior) about the sleep assistant & sleep off time features. Thanks in advance! |
Of course, will do this either next weekend or the first week of january |
I hope the naming of the properties (brand_sleep, brand f.e.) can also be improved some day if the meaning is known. |
Hello, sorry for the delay, Alex |
@AsWaM Do you own a Miband? |
Yes, a miband 3 |
The property should be miband related. If you enable the "miband dependend turn off" the brand_sleep property should be |
I will try this, and keep you informed |
@syssi you were right, this is MiBand Related |
Hello, I've found some issues related to the scenes. HA allows 1,2,3 and 4 only.
|
@frkos How did you choose the "music mode"? |
@frkos If you change this line in HA Is scene 5 and 6 available/usable via the |
Music mode is the colored button at the bottom of mi home.
I have hass.io installation with doker. So I've set up ssh, connected to hassio.local, but couldn't find components folder to amend the file ((( If you let me know how to do this, I will be glad to help you with testing |
Provide some testing on docker setups is hard. Could you install |
Perfect! Please try:
Does it work? |
It looks like you missed a space between property ( |
Next try:
Note the removed single quotes for the numbers. The value must be an integer and no string. |
Okay. Could you try to enable the night light by:
|
Could you try
too? |
And now it works! I tried go_music randomly and it works too - MI home opens music mode screen. |
Do you already know how to disable the night mode again? What happens if you select another scene or if you change the brightness. Enable music mode: go_music "[]" If the music mode is enabled we are unable to retrieve/update the properties? The |
This is fine. The "music mode" isn't handled right now. The Mi Home app skips all |
Got it. |
Hi all, I'm also using moonlight lamp and using mii it works like a charm. But how can I use in HA? I've tried with light.xiaomi_miio_set_scene "6" on dev console but the results is scene 4. Thank you in advance |
@frkos Could you tell me the meaning/name of "scene 5"? |
@jokerigno The night mode (scene 6) will be supported soon. |
Hi @syssi |
@frkos Please update the custom component. The component handles/ignores the music mode now. |
Wow... you added color picker)) and it works! When I set music mode in Mi Home I still see errors in logs. Also I can't set another scene from HA
|
This is strange. I tried to catch this exception. I will check it again. |
@syssi Thanks for your work on this, also happy to assist with any testing for this enhancement. |
The music mode should be handled properly now. :-) |
Hi, it's still me. I noticed that when a scene is used (in my case midnight scene - scene = 6) the light in HA reports the last status (so a different light level and color) There's a way to fix it? TY again :) |
@jokerigno Could you enable the debug log (https://github.com/syssi/philipslight#debugging), turn the light on (no scene) and select scene 6, wait a few status updated and provide the complete log? Which "fake values" do you propose for brightness and color if scene=6 is selected? |
@jokerigno Off-topic: Could you provide the model no. of your device to improve this list of supported devices: https://github.com/syssi/philipslight#supported-devices |
Hi. Deeply sorry for the delay. Below the full log from start:
|
Hello,
I have the following message in home assistant:
Unsupported device found! Please create an issue at https://github.com/syssi/philipslight/issues and provide the following data: philips.light.moonlight
I am a developper myself, and could help if needed.
Alex
The text was updated successfully, but these errors were encountered: