Posts: 1,607
Joined: Apr 2016
After a bit of playing and googling, managed to get it to work from Kodi... Yey! Now only to perfect the addon, but important thing is that it communicates and works...
Posts: 1,607
Joined: Apr 2016
Just making it
plus unboxing: (my kids love making these videos as cameraman)
Posts: 1,607
Joined: Apr 2016
2017-04-25, 23:30
(This post was last modified: 2017-04-25, 23:32 by User 325245.)
OK, the early beta test version is available if somebody wants to test, just install test repo from my repository and install YeeMee addon v0.6 ... it works with 1 bulb for play/pause/stop... probably buggy as hell but it works
I'll have to write the instructions on how to enable the bulb to work with Kodi... in case somebody didn't figure it out, it works by default only with Xiaomi software and you have to enable developer mode on the bulb.
Posts: 1,332
Joined: Jan 2016
Reputation:
54
that is awesome ... makes me want to go and buy a bulb just to try out.... do it have to have a internet connection or can it run purely off of a LAN network. without any internet access?
Posts: 1,607
Joined: Apr 2016
It needs to have internet connection to set it up the first time, but then it doesn't. It works off the LAN. Hmm, I dunno how I would test this, to block the net to the lightbulb on firewall?
Posts: 1,607
Joined: Apr 2016
OK, here's the "official" support thread:
313197 (thread)
and page:
http://projects.lanik.org/KodiProject_YeeMee.htm
Posts: 1,332
Joined: Jan 2016
Reputation:
54
So to set it up I have to login to some remote server basically to verify everything and get username and password set?
That seem to always be the problem for me with limited internet I have tried different little devices in the past but always end up carring the back because something has to login into a remote server every time before using...
As far as you addon with 4 light I can see real potential with the ambience... It would be so cool to have them turn off and on depending on what is being done in kodi
Posts: 1,607
Joined: Apr 2016
2017-04-27, 08:40
(This post was last modified: 2017-04-27, 08:48 by User 325245.)
Yes, 1st initialization, you have to make xiaomi username/password, then logon from app on phone with that username/password and it will find the bulb. Then you turn on DEVELOPER mode in the app, assing STATIC IP adress on your router to the bulb, and that's it.
It is not EVERY TIME. Only 1st time.
Any ideas on features for this adon are welcome!
Posts: 1,607
Joined: Apr 2016
That is about the only thing that is NOT possible because it would requre the level of access which we don't have from Python in Kodi and I suppose platform-specific, i.e. analyze audio or video.
You can do other things with bulb beside turn on & off - set brightness, color, set color cycling... flash for notice etc.
Posts: 1,607
Joined: Apr 2016
Quickly skimming throught the documentation for Cinemavision, it seems Cinemavision is capable of running python scripts:
Quote:As of this writing, CinemaVision will support the following protocols:
http:// A URL to pass JSON commands to.
addon:// Run a script addon by addon ID and pass in arguments.
command:// Run a command or application at the OS level and pass in arguments.
module:// A Python script that has a main() method that is imported and main() is called
python:// Call any normal Python script via the OS.
sleep://<milliseconds> Sleep for the time specified in milliseconds
So you could run (even now!) the test bulb function from my script, I suppose in similar manner I am running it from settings i.e.
RunScript(special://home/addons/service.yeemee/standalone.py,testyee1)
I am not familiar with the CinemaVision syntax but if you can run a script and pass it a parameter, it should work. to test, the script is "special://home/addons/service.yeemee/standalone.p" and param is "testyee1" (lights the bulb nr. 1 for 3 seconds - not much but enough for test.
If this works, we can make more events....
Posts: 1,332
Joined: Jan 2016
Reputation:
54
Well that sucks I can only fine it in 220 volts.... I need 120