• 1
  • 33
  • 34
  • 35(current)
  • 36
  • 37
  • 67
Broken YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi)
Just paste settings here - it's not too big.

Try the test version in the test repo.

No it is not strange, you are using APHA version that is not supported.... and control of lights works totaly differently than Ambi. And also it is a question whether it works at all on your system - since not all systems can do RenderCaptrure correctly. Just be patient.
Reply
http://0.dl.webshare.cz/7064/2Kad5z84y4/...ttings.xml

I'm sorry for that complexity, but somehow I did not find the "save file" ... I will try the new version, but it's a pity, yeelight I just bought for Kodi Smile Let's see if it gets better ...
Reply
It's OK. Found the reason:

my settings:
    <setting id="sunrise" value="08:57" />
    <setting id="sunset" value="17:24" />

your:
    <setting id="sunrise">6:55:15 AM</setting>
    <setting id="sunset">3:31:25 PM</setting>

Try the test repo version.
Reply
So far i have only version 4.2 in the Lanik repository 1.0.2 ... otherwise the time setting I have in the plug-in currently off, I wait what version 4.21 ... but maybe I would see a problem in that version of Kodi 18
Reply
4.21 is in te TEST repo, you need to install it separately from lanik repo under repositories
Reply
So it's the same, just the test and nothing more ... "Active clock" I have the option turned off but when I give the option "automatically", then it is the time you said so I do not know ... time zone I have Czech republic , I would probably not see the problem.
Reply
Do you still get the error at the beginning?
Reply
(2018-01-12, 19:34)DaLanik Wrote:
(2018-01-12, 10:29)thekow Wrote: I guess this is still not working for linux??
I get it to turn the lights on and off and all the testing work but when i play anything nothing happens.
I turned off hardware accelerations and still nothing.
As far as I remeber people reported it working... Most common problem is the mentioned acceleration. There is AMBI TEST under settings, try it and see the results. Please read few pages back for the instructions what it does and how it works. The option is called "RenderCapture debug". Or just post LOG. Turn on debugging mode, replicate problem and post log here.    
 Ambi test passes. Turns off and on etc etc but no ambi on playing of movies.
I will chuck up a debug log

EDIT: This is the error it's throwing up

:24 T:2228448064  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 32
11:54:24 T:2665388864  NOTICE: Previous line repeats 1 times.
11:54:24 T:2665388864  NOTICE: YEEMEE >> MESSAGE TO 192.168.1.201: {u'params': [u'power', u'music_on'], u'id': 1, u'method': u'get_prop'}
11:54:24 T:2665388864  NOTICE: YEEMEE >> RESPONSE FROM 192.168.1.201: on, 0
11:54:24 T:2665388864  NOTICE: YEEMEE >> MESSAGE TO 192.168.1.201: {u'params': [1, u'192.168.1.10', 55440], u'id': 1, u'method': u'set_music'}
11:54:25 T:1857026880  NOTICE: YEEMEE >> SERVER >> CONNECTION FROM: ('192.168.1.201', 49154) ACCEPTED
11:54:25 T:1787796288  NOTICE: YEEMEE >> SERVER >> CONNECTION OPEN FOR ('192.168.1.201', 49154)
11:54:25 T:1787796288  NOTICE: YEEMEE >> SERVER >> LUMIFACTOR IS 100
11:54:25 T:2665388864  NOTICE: YEEMEE >> RESPONSE FROM 192.168.1.201: ,
11:54:25 T:2665388864   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.TypeError'>
                                            Error Contents: attribute of type 'NoneType' is not callable
                                            Traceback (most recent call last):
                                              File "/home/super/.kodi/addons/service.yeemee/service.py", line 1847, in <module>
                                                lumiFactor = setLumiFactor()
                                              File "/home/super/.kodi/addons/service.yeemee/service.py", line 1324, in setLumiFactor
                                                timeSunrise = datetime.strptime(Sunrise, '%H:%M').time()
                                            TypeError: attribute of type 'NoneType' is not callable
                                            -->End of Python script error report<--
11:54:26 T:2775563072  NOTICE: script.module.metadatautils --> Rate limiter active for themoviedb.org - delaying request with 4 seconds - Configure a personal API key in the settings to get rid of this message and the delay.
11:54:35 T:2993956736  NOTICE: CDVDPlayer::CloseFile()
11:54:35 T:2993956736  NOTICE: DVDPlayer: waiting for threads to exit
11:54:35 T:2425355072  NOTICE: CDVDPlayer::OnExit()
11:54:35 T:2425355072  NOTICE: Closing stream player 1
11:54:35 T:2425355072  NOTICE: Waiting for audio thread to exit
11:54:35 T:2228448064  NOTICE: thread end: CDVDPlayerAudio::OnExit()
11:54:35 T:2425355072  NOTICE: Closing audio device
11:54:35 T:2425355072  NOTICE: Deleting audio codec
11:54:35 T:2425355072  NOTICE: Closing stream player 2
11:54:35 T:2425355072  NOTICE: waiting for video thread to exit
11:54:35 T:2236840768  NOTICE: thread end: video_thread
11:54:35 T:2425355072  NOTICE: deleting video codec
11:54:35 T:2425355072  NOTICE: Closing stream player 3
11:54:35 T:2993956736  NOTICE: DVDPlayer: finished waiting


Second log 

https://pastebin.com/3SVQwUWn
Reply
(2018-01-12, 23:52)DaLanik Wrote: Do you still get the error at the beginning?
 No, now no bug fixes after rebooting Kodi ...

So another finding, when one of the films from one of the add-ons (Stream Cinema CZ / SK) randomly started, Yeelight turned on, Ambi unfortunately did not work. After stopping the video, Yeelight went out. Another movie did not work again.
Reply
(2018-01-13, 03:30)thekow Wrote:  Ambi test passes. Turns off and on etc etc but no ambi on playing of movies.
I will chuck up a debug log

That is not Ambi test, that is normal on/off test. For ambi test:

* In YeeMee settings, first set only 1 bulb (not necessary, but best for testing) and set "use as YeeMee Ambi" to "whole screen".
* Set, under "Ambi Options", "Ambi precision" to "Ultra High"
* Under "Testing" tab, set "Debug Render Capture" to "on"

Now, once you play a video, this will create JPEG image captures in your TEMP folder (please google where that is in Kodi), small JPG image files with capture of screen. There will be many Smile Since naming is bulb IP - date-time, they should be sorted by bulb and then time. If capture works, you should get small thumbnails of your played video. IF you just get black JPGs, then it doesn't work....

After debug, these JPGs are safe to delete. Just don't forget to turn off this option since it will keep creating JPGs until you run out of space
Reply
(2018-01-13, 09:59)vosay Wrote:
(2018-01-12, 23:52)DaLanik Wrote: Do you still get the error at the beginning?
 No, now no bug fixes after rebooting Kodi ...

So another finding, when one of the films from one of the add-ons (Stream Cinema CZ / SK) randomly started, Yeelight turned on, Ambi unfortunately did not work. After stopping the video, Yeelight went out. Another movie did not work again.  
 Just send another log with the new test version of addon, please. And you can try the Ambi RenderCapture test, instructions in previous post.
Reply
https://paste.ubuntu.com/26377241/

I still do not know what the "Ambi test" is all about ... the test is only for every Yeelight and just lights up ... I have only activated in Ambi settings and other RenderCapture settings, no more.
Reply
(2018-01-13, 03:30)thekow Wrote: Second log 

https://pastebin.com/3SVQwUWn 
 12:11:23 T:1796471616   ERROR: serversock.bind(ADDR)
12:11:23 T:1796471616   ERROR:   File "/usr/lib/python2.7/socket.py", line 224, in meth
12:11:23 T:1796471616   ERROR: return getattr(self._sock,name)(*args)
12:11:23 T:1796471616   ERROR: socket
12:11:23 T:1796471616   ERROR: .
12:11:23 T:1796471616   ERROR: error
12:11:23 T:1796471616   ERROR: :
12:11:23 T:1796471616   ERROR: [Errno 98] Address already in use

Seems it is already used by something...
Reply
Hello,
Thank for your help.

All my yeelights have development mode.
Well everything works well with kodi 17 (no recalbox)
But that does not work with kodi 16 version recalbox. 
Here is the LOG :


14:13:21 T:1568666592 DEBUG: JSONRPC Server: New connection detected
14:13:21 T:1568666592 INFO: JSONRPC Server: New connection added
14:13:22 T:1926717440 DEBUG: OnKey: 11 (0x0b) pressed, action is Select
14:13:22 T:1906308064 INFO: CActiveAESink::OpenSink - initialize sink
14:13:22 T:1906308064 DEBUG: CActiveAESink::OpenSink - trying to open device PI:HDMI
14:13:22 T:1679815648 DEBUG: Thread LanguageInvoker start, auto delete: false
14:13:22 T:1679815648 INFO: initializing python engine.
14:13:22 T:1679815648 DEBUG: CPythonInvoker(9, /recalbox/share/system/.kodi/addons/service.yeemee/standalone.py): start processing
14:13:22 T:1906308064 DEBUG: CAESinkPi:SetAudioProps hdmi_stream_channels 0 hdmi_channel_map 00000008
14:13:22 T:1906308064 DEBUG: CAESinkPi:Initialize Format:15 Channels:2 Samplerate:44100 framesize:8 bufsize:17640 bytes/s=352800.00 dest=PI:HDMI
14:13:22 T:1906308064 DEBUG: COMXCoreComponent::Initialize OMX.broadcom.audio_render input port 100 output port 100 m_handle 0x71b1ae18
14:13:22 T:1906308064 DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.audio_render) - port(100), nBufferCountMin(1), nBufferCountActual(2), nBufferSize(17648), nBufferAlignmen(16)
14:13:22 T:1906308064 DEBUG: CActiveAESink::OpenSink - SinkPi Initialized:
14:13:22 T:1906308064 DEBUG: Output Device : HDMI
14:13:22 T:1906308064 DEBUG: Sample Rate : 44100
14:13:22 T:1906308064 DEBUG: Sample Format : AE_FMT_FLOAT
14:13:22 T:1906308064 DEBUG: Channel Count : 2
14:13:22 T:1906308064 DEBUG: Channel Layout: FL,FR
14:13:22 T:1906308064 DEBUG: Frames : 2205
14:13:22 T:1906308064 DEBUG: Frame Samples : 4410
14:13:22 T:1906308064 DEBUG: Frame Size : 8
14:13:22 T:1679815648 DEBUG: -->Python Interpreter Initialized<--
14:13:22 T:1679815648 DEBUG: CPythonInvoker(9, /recalbox/share/system/.kodi/addons/service.yeemee/standalone.py): the source file to load is "/recalbox/share/system/.kodi/addons/service.yeemee/standalone.py"
14:13:22 T:1679815648 DEBUG: CPythonInvoker(9, /recalbox/share/system/.kodi/addons/service.yeemee/standalone.py): setting the Python path to /recalbox/share/system/.kodi/addons/service.yeemee:/recalbox/share/system/.kodi/addons/script.module.requests/lib:/usr/share/kodi/addons/script.module.pil/lib:/usr/lib/python27.zip:/usr/lib/python2.7:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/lib/python2.7/site-packages:/usr/lib/python2.7/site-packages/gtk-2.0
14:13:22 T:1679815648 DEBUG: CPythonInvoker(9, /recalbox/share/system/.kodi/addons/service.yeemee/standalone.py): entering source directory /recalbox/share/system/.kodi/addons/service.yeemee
14:13:22 T:1679815648 DEBUG: CPythonInvoker(9, /recalbox/share/system/.kodi/addons/service.yeemee/standalone.py): instantiating addon using automatically obtained id of "service.yeemee" dependent on version 2.1.0 of the xbmc.python api
14:13:22 T:1388536800 DEBUG: webserver: request received for /jsonrpc
14:13:24 T:1679815648 DEBUG: Previous line repeats 1 times.
14:13:24 T:1679815648 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ImportError'>
Error Contents: No module named PIL
Traceback (most recent call last):
File "/recalbox/share/system/.kodi/addons/service.yeemee/standalone.py", line 22, in <module>
from service import Yeelight
File "/recalbox/share/system/.kodi/addons/service.yeemee/service.py", line 27, in <module>
from PIL import Image
ImportError: No module named PIL
-->End of Python script error report<--
14:13:24 T:1926717440 DEBUG: ------ Window Init (DialogKaiToast.xml) ------
14:13:24 T:1926717440 DEBUG: Window DialogKaiToast.xml was already loaded
14:13:24 T:1926717440 DEBUG: Alloc resources: 0.00ms
14:13:24 T:1679815648 INFO: Python script stopped
14:13:24 T:1679815648 DEBUG: Thread LanguageInvoker 1679815648 terminating
14:13:24 T:1388536800 DEBUG: webserver: request received for /jsonrpc
Reply
Well, pretty obvious:

Error Contents: No module named PIL

do you use same box for Kodi 16/17? Probably PIL isn't compatible with both or is simply missing. Try connecting the box to internet, uninstall YeeMee addon and try installing again. It should install dependent modules automatically.
Reply
  • 1
  • 33
  • 34
  • 35(current)
  • 36
  • 37
  • 67

Logout Mark Read Team Forum Stats Members Help
YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi)2