-
-
Notifications
You must be signed in to change notification settings - Fork 572
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 Eyecare - physical buttons stops working after few days #617
Comments
Do you mean the button of the device itself? What happens after 4-5 days if you remove the integration from HA? |
Yes, I mean the button of the device itself. Any of the buton doesn't react. |
This time issue appeared a bit faster. After few hours. I have removed the integration from HA, but this did not resolve the problem. The other light which is not integrated with HA works as it should. |
You should contact the manufacturer of your device because it looks like an firmware issue which cannot be solved here. |
Hmm, so why is that the manufacturer integration (Mi Home app) works, while once I start using python-miio it stops? |
What did you mean by:
If the issue appears without interaction with 3rd party apps/libraries it should be a hardware/firmware issue of the device itself. Correct me if I'm wrong. :-) |
I thought you want me to remove the integration from HA, once the issue occur again. The other Philips light is sync with Hi Home app, but not with HA and the issue doesn't appear so I think there is something with python-miio. Hope I am clear now :) |
Hey, I found out this is the same here: syssi/philipslight#25 I can try and help, but need some guidance, what I can check. |
The same issue here with two different versions of the lamp. Please let me know if I can help debugging it |
Same issue here, when integrated with Home Assistant the physical buttons stop working after a while until the power is turned off (after which it happens again). When it's not connected with Home Assistant this problem does not occur. I would say that the most logical explanation is that python-miio somehow triggers a bug (or a hidden child lock function?) in the firmware, but maybe we can find a workaround for it? |
Hey, any news about this? I really would like to help, but not sure how. |
Well, the only real way (in my opinion) to find out is to use the command-line tool (or create a script to do those calls) and find out at which point and at which call it will get stuck. My intuition agrees with the analysis of @Emilv2 on that regard, but we need to find out what triggers it and then create a workaround for it. As it does not hit until a few days later, maybe this has something to do with the sequence numbers?
One way to try that out would be to initialize the device with a large sequence number and see what happens when it hits the limit (see https://github.com/rytilahti/python-miio/blob/master/miio/miioprotocol.py#L231). |
To refresh the discussion of the defect, I am joining the party and become another additional victim of the issue. |
I have exactly the same problem with 3 lamps, it is annoying because my children can no longer use the lamp, you can find a solution? Thanks you |
A have the same problem with xiaomi zhimi heater and it started after firmware upgrade. |
Same issue with 2x Philips Eyecare lamps, only happened since integrating with HA which is a shame as they are now useless for "dumb" operations (using buttons) which my wife prefers. Would really like a fix! Light Xiaomi firmware version: 1.2.8.0026 |
Same issue, for already a year... all the time i need to get a new token and as soon as it is connected to Home Assistant, buttons on the device are disabled. Please, need a solution for this. |
same issue philips eyecare 2 I used openhab before and everything worked there, after switching to homeassistant the buttons stopped working |
@janowakps Are you sure? Can we try to compare both implementations? |
This seems to be the https://github.com/openhab/openhab-addons/tree/main/bundles/org.openhab.binding.miio miio OpenHAB implementation. Edit: Think this is the official one |
This issue applies to the |
Implemented properties and commands:
We are using this properties: https://github.com/rytilahti/python-miio/blob/master/miio/philips_eyecare.py#L122-L132 |
|
The mi home plugin (react app) uses this set of properties:
|
Anybody here available for an experiment?
|
yes, everything except this lamp works fine |
I'll give it a try too |
Trying this one as well. Will see. |
For me it's been six days now with these values in the configuration:
I'll wait a few more days to be 100% sure, but I don't think I'm also not really sure what |
I would be happy if everybody could provide a list of good vs. bad properties.
|
I was too quick in replying, those properties do indeed what you say and seem to work correctly for me. |
I have added |
24 days and still everythings works my properties:
as you can see, notifystatus is not causing the problem |
I will remove |
@syssi I think you misread, @janowakps has no issue with I've been running this configuration for 17 days now and everything still works:
So I'd say |
Ups. You are right. In this case the exact solution is still undefined. :-( |
Isn't it possible to hook up Arduino studio to this lamp and check the logs/output? |
Hello, you can find a solution? Thanks you |
It works like a charm! 2nd day and buttons on lamp still works. I am missing a bit brightness and ambient light control but even without it this lamp makes sense now. @syssi not sure if you are author of this fix do you think this can be implemented to final code or you can fix original integration? |
Could somebody test this property set on the long run:
I've replaced |
I would like to help but I am not so good in writing in yaml. This is my setup. How it should look with your settings you would like to test? switch:
|
I tried this config and the buttons still stop working after a while. |
For me this configuration also does not seem to cause any issues. @syssi Maybe take this one then? |
hello, any idea of the official integration modification date? |
The set of properties provided by @Emilv2 cannot be used without dropping a feature (brightness of the ambient light). I'm unsure how to proceed here. |
I see, that is unfortunate. This one worked for me (don't know about others, has anyone confirmed it worked?):
Anything important missing here? That aside, for me at least, being able to control the lamp manually is much more important than any other feature. |
+++ 10000, update please, especially since the variation in the brightness of the ambient light is barely perceptible I find |
after update ha 2021.12
|
@rytilahti OK, thanks. thank you |
Same problem here. |
Any ideas on the availability of the fix for the physical buttons problem? |
Sorry, I have no idea what is causing the problem nor do I have such a device myself, so I cannot really help here :-( |
any update ? |
New ideas, someone? |
Any ideas on the availability of the fix for the physical buttons problem? |
Hi There,
don't know really where to put this issue, here or in Home Assistant, but let me try to explain and the you can redirect me to appropriate project.
Once the light is hooked up to Home Assistant via the miio integration, after few days, the physical buttons stops working on the device.
So we have two scenarios:
Once I pull out the plug and plugin back again, the device reconnect to network, and buttons work again for few days.
I have run some debug commands and I am not able to spot anything interesting here, but maybe you are.
This is what I can see just after reset:
PS C:\WINDOWS\system32> mieye --ip=192.168.0.113 --token=xxxxxxxxxx-d INFO:miio.philips_eyecare_cli:Debug mode active DEBUG:miio.philips_eyecare_cli:Connecting to 192.168.0.113 with token xxxxxxxxxx DEBUG:miio.protocol:Unable to decrypt, returning raw bytes: b'' DEBUG:miio.device:Got a response: Container: data = Container: data = b'' (total 0) value = b'' (total 0) offset1 = 32 offset2 = 32 length = 0 header = Container: data = b'!1\x00 \x00\x00\x00\x00\x03.\xa0"\x00\x00\x02\xd2' (total 16) value = Container: length = 32 unknown = 0 device_id = unhexlify('032ea022') ts = 1970-01-01 00:12:02 offset1 = 0 offset2 = 16 length = 16 checksum = b'\x8f\x00\xcb\x89]\xe5j\x00\x0e\x8e\xc3\xca\x85\xec\x03\xe2' (total 16) DEBUG:miio.device:Discovered 032ea022 with ts: 1970-01-01 00:12:02, token: b'xxxxxxxxxx' DEBUG:miio.device:192.168.0.113:54321 >>: {'id': 2, 'method': 'get_prop', 'params': ['power', 'bright', 'notifystatus', 'ambstatus', 'ambvalue', 'eyecare', 'scene_num', 'bls', 'dvalue']} DEBUG:miio.device:192.168.0.113:54321 (ts: 1970-01-01 00:12:02, id: 2) << {'result': ['on', 47, 'off', 'on', 1, 'on', 1, 'on', 0], 'id': 2} Power: on Brightness: 47 Eye Fatigue Reminder: False Ambient Light: True Ambient Light Brightness: 1 Eyecare Mode: True Eyecare Scene: 1 Night Light: True Countdown of the delayed turn off: 0 minutes
This is once the button stooped reacting:
PS C:\Users\Przemek> mieye --ip=192.168.0.113 --token=xxxxxxxxx -d INFO:miio.philips_eyecare_cli:Debug mode active DEBUG:miio.philips_eyecare_cli:Connecting to 192.168.0.113 with token xxxxxxxxx DEBUG:miio.protocol:Unable to decrypt, returning raw bytes: b'' DEBUG:miio.device:Got a response: Container: data = Container: data = b'' (total 0) value = b'' (total 0) offset1 = 32 offset2 = 32 length = 0 header = Container: data = b'!1\x00 \x00\x00\x00\x00\x03.\xa0"\x00\x04\x8e\xaa' (total 16) value = Container: length = 32 unknown = 0 device_id = unhexlify('032ea022') ts = 1970-01-04 10:57:46 offset1 = 0 offset2 = 16 length = 16 checksum = b'\x8f\x00\xcb\x89]\xe5j\x00\x0e\x8e\xc3\xca\x85\xec\x03\xe2' (total 16) DEBUG:miio.device:Discovered 032ea022 with ts: 1970-01-04 10:57:46, token: b'xxxxxxxxx' DEBUG:miio.device:192.168.0.113:54321 >>: {'id': 2, 'method': 'get_prop', 'params': ['power', 'bright', 'notifystatus', 'ambstatus', 'ambvalue', 'eyecare', 'scene_num', 'bls', 'dvalue']} DEBUG:miio.device:192.168.0.113:54321 (ts: 1970-01-04 10:57:47, id: 2) << {'result': ['off', 50, 'off', 'off', 1, 'on', 1, 'on', 0], 'id': 2} Power: off Brightness: 50 Eye Fatigue Reminder: False Ambient Light: False Ambient Light Brightness: 1 Eyecare Mode: True Eyecare Scene: 1 Night Light: True Countdown of the delayed turn off: 0 minutes
I can try to help with debuging this, but please tell me what else I can do here.
I own two of these lights, and both react the same way. I found a guy on the internet, which has same problem as mine.
The text was updated successfully, but these errors were encountered: