-
Notifications
You must be signed in to change notification settings - Fork 198
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
Xiaomi Yeelight support - TCP requests to use \n \r #415
Comments
Yep, #296, asked for this as well |
So, as I understand, it is not working anymore in the latest version? |
Is there an error message that occurs in the log? |
No, there is no error in the log, and the webpage confirms that the command was successfully executed (green popup). It seems that there are a lot of backslashes... |
That entry is pretty bad. Did you cut and paste from somewhere? |
Yes, from a notepad file, but I did the same thing with the previous version of ha-bridge and there was no problem. |
Well let's create a new device by typing it in manually. It seems there are too many escapes |
To create your device, type the tcp://10.100.1.60:55443/{"id":1,"method":"set_power","params":["off"]} and see if that has less escape |
I made it work finally, but only by editing the device.db file. Here it is what i found: So, if i use the web interface i had to add this entry: |
@mihaifireball I don't think you need the \r\n at all in the call since this is pure tcp |
If i remove it, it doesn't give me any error, but the light bulb is not reacting. |
Now I remember, will look at the encoding when devices are saved. |
This issue is not fixed, right? because i still have to delete manually 2 backslashes before \r and two before \n on 4.1.4 release. |
No updates to this yet |
I created some shell-scripts to play with the Yeelight and use them as wrappers inside HA-Bridge |
@mihaifireball The next version of ha-bridge will support \r \n and others |
I have a Yeelight bulb, which was working fine with ha-bridge v3.5.1, but with the latest versions (4.1.0) I cant make it work.
For example, in the v3.5.1, power on command was:
tcp://10.100.1.60:55443/{\"id\":1,\"method\":\"set_power\",\"params\":[\"on\"]}\r\n
Which will be the syntax for ha-bridge v4.1.0?
Thank you!
The text was updated successfully, but these errors were encountered: