This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Closed
App to support Yeelight
This discussion has been closed.
Comments
(about to start installing the lights, just wondering if we could make it easyer for the nontechnical users that have Homey)
I have investigated this and it should be possible for at least the Yeelights to be paired more easily. This will use another controlling mechanism than the other Mi Home devices which are part of this app, so the question comes to mind if the Yeelights should then get it's own app or if I try to integrate this other mechanism into this same app as well (as more apps are not good for mem usage anyway).
Just installed your app and found the IP-addresses of the bulbs in my routers DHCP table. Now, finding the token.... pff, that is not so simple...
@Floodnl did you already mannage to find your tokens?
I put one of the bulbs in developer mode, just in case this should make any difference.
)
Now i have to get it connected to homey this is how i setup the app
Ps if anyone needs help doing this i am willing to chip in and make a step by step manual.
I used the details from above, only changed the IP address to one of my Yeelights.
What exactly does the message part do? How many fffff do I need to fill in?
Help is appreciated
And of course connect your phone to the wifi of your lamp in reset mode
Yeti: https://play.google.com/store/apps/details?id=com.netbeast.yeti
https://itunes.apple.com/us/app/yeti-smart-home/id1190638808?mt=8
If you have any programming knowledge I'd be more than happy to accept pull requests here: https://github.com/jghaanstra/com.xiaomi-miio
The windows app sends data to port 55443. Is sends multiple types of messages:
SYN (Sync)
PSH (Push) and
ACK (Acknowledged)
FIN (Finished)
The Push is the most relevant one, it goes over TCP :
On
{"id":0x000000000361970a,"method":"toggle","params":[]}
{"id":0, "result":["ok"]}
{"method":"props","params":{"power":"on"}}
Off
{"id":0x000000000361970a,"method":"toggle","params":[]}
{"id":0, "result":["ok"]}
{"method":"props","params":{"power":"off"}}
I also found some other things that might be useful for the LED strip:
https://www.domoticz.com/wiki/Yeelight.
and
https://github.com/octa22/org.openhab.binding.yeelight
I'm actually replacing my Hue lights and one thing I can't seem to find is a way to do which is available on the Hue is set these to "Change Brightness Over Time" - is there such a way? I.e dim the lights to zero over a period of 15minutes?
Thanks
1) Is there a way to activate a scene that is saved to the Yeelight app from Homey?
2) Is there a way to determine the # code of the current colour that the Yeelight is on? I see all the other values for Hue, Saturation etc in tags but don't see a way to get that...
Reasoning - I have a tone that I've saved as a scene which is essentially a warm white - i'd like to ensure that whenever the light comes on it hits that tone initially.
Side note - I actually wish there was a way to save a new tone as your white entirely - I use them with Alexa and the white is too clinical and the 'warm white' that it defaults to is too orange... Also when I ask Alexa for Yellow oddly I get green...
Thanks!
P.S plan to test out the Beta app as soon as I get a bit of time - knee deep in decorating right now...
2) that would require some custom coding I guess. What would you use it for?
3) From the official app and now in the Homey beta app as well you can set a default for when the light goes on.
4) I have no control over the built in Homey commands like default colors or Alexa for that matter.
3) So I have, in theory, saved this in the official app, but it only seems to work on FULL power off, not just on an on/off command. I'll check out the Homey Beta App as soon as I can - sounds like adding some cool features This would probably suffer the same issue as above maybe as I guess I'll need a #code for the colour?
4) Oh, I know - was purely mentioning it
2) the currently available tags are default functionality of Homey, I dont plan to extend this with RGB unless demand is high
3) indeed the default state is only set on a full power cycle, in the next beta I'll introduce action cards that allow you to power on the Yeelight into a specific state (color or temperature and brightness). That should fit your needs.
https://forum.athom.com/discussion/3295/app-xiaomi-mi-home-supports-yeelight-robot-vacuum-etc/