RE: YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi) - 5ulo - 2017-10-20
I have a strange problem with YeeMee 3.5. The same was with 3.4 (updated today). YeeMee test is working, playback too. The YeeLight White fails only on starting playback. Hitting pause, resume from pause and stop works as expected.
Here's the log:
Code: 14:37:14.523 T:140562720085760 DEBUG: YEEMEE >> YEMME - AMBI PRIORITY >> 1
14:37:14.523 T:140562720085760 DEBUG: YEEMEE >> LOWER BRIGHTNESS ON AMBI PAUSE >> 0
14:37:14.523 T:140562720085760 DEBUG: YEEMEE >> AMBI SMOOTHEN (MS) >> 0
14:37:14.523 T:140562720085760 DEBUG: YEEMEE >> REPORT ERRORS >> True
14:37:14.523 T:140562720085760 DEBUG: YEEMEE >> NUMBER OF BULBS >> 1
14:37:14.523 T:140562720085760 DEBUG: YEEMEE >> ON AT START >> 0
14:37:14.524 T:140562720085760 DEBUG: YEEMEE >> DISABLE FOR SHORT FILMS >>FALSE<<
14:37:14.524 T:140562720085760 DEBUG: YEEMEE >> ACTIVATION TIME >>OFF<<
14:37:14.524 T:140562720085760 DEBUG: YEEMEE >> MAX BRIGHT DAY >> 100
14:37:14.524 T:140562720085760 DEBUG: YEEMEE >> MAX BRIGHT CIVIL TW >> 100
14:37:14.524 T:140562720085760 DEBUG: YEEMEE >> MAX BRIGHT NAUTIC TW >> 100
14:37:14.524 T:140562720085760 DEBUG: YEEMEE >> MAX BRIGTH NIGHT >> 100
14:37:14.524 T:140562720085760 DEBUG: YEEMEE >> INIT BULB NUM: 1, IP ADDR: 192.168.1.244, MODEL: ceiling
14:37:14.524 T:140562720085760 DEBUG: YEEMEE >> NUMBER OF ACTIVE BULBS >> 1
14:37:14.525 T:140562720085760 DEBUG: YEEMEE >> Number Act Int Color Eff Duration
14:37:14.525 T:140562720085760 DEBUG: YEEMEE >> BULB 0 PLAY : >> 2 5 #BA2B2B 1 1000
14:37:14.525 T:140562720085760 DEBUG: YEEMEE >> BULB 0 STOP : >> 2 100 #BA2B2B 1 1000
14:37:14.525 T:140562720085760 DEBUG: YEEMEE >> BULB 0 PAUSE: >> 2 20 #BA2B2B 1 1000
14:37:14.525 T:140562720085760 DEBUG: YEEMEE >> BULB 0 AMBI: >> 0 BIAS: 0
14:37:14.525 T:140562720085760 DEBUG: YEEMEE >> NUMBER OF AMBI BULBS >> 0
14:37:14.525 T:140562720085760 DEBUG: YEEMEE >> NUMBER OF CONTROLLERS >> 0
14:37:36.821 T:140562720085760 DEBUG: YEEMEE >> PLAYBACK >>PLAYING<<
14:37:36.822 T:140562720085760 DEBUG: YEEMEE >> ACTIVATION TIME: 0
14:37:36.822 T:140562720085760 DEBUG: YEEMEE >> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 192.168.1.244 ambi passed check
14:37:36.822 T:140562720085760 DEBUG: YEEMEE >> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ priority: 1 player state: start
14:37:36.951 T:140562720085760 DEBUG: YEEMEE >> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 192.168.1.244 state start > action 2
14:37:36.958 T:140562720085760 DEBUG: YEEMEE >> (ON) POWER ON (MONO) RESULT >> ok
14:37:37.263 T:140562720085760 DEBUG: YEEMEE >> (ON) SET BRIGHT RESULT >> ok
14:37:49.430 T:140562720085760 DEBUG: YEEMEE >> PLAYBACK >>PAUSED<<
14:37:49.430 T:140562720085760 DEBUG: YEEMEE >> ACTIVATION TIME: 0
14:37:49.430 T:140562720085760 DEBUG: YEEMEE >> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 192.168.1.244 ambi passed check
14:37:49.430 T:140562720085760 DEBUG: YEEMEE >> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ priority: 1 player state: pause
14:37:49.430 T:140562720085760 DEBUG: YEEMEE >> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 192.168.1.244 state pause > action 2
14:37:50.440 T:140562720085760 DEBUG: YEEMEE >> (ON) POWER ON (MONO) RESULT >> ok
14:37:50.756 T:140562720085760 DEBUG: YEEMEE >> (ON) SET BRIGHT RESULT >> ok
14:37:56.460 T:140562720085760 DEBUG: YEEMEE >> PLAYBACK >>RESUMED<<
14:37:56.461 T:140562720085760 DEBUG: YEEMEE >> ACTIVATION TIME: 0
14:37:56.461 T:140562720085760 DEBUG: YEEMEE >> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 192.168.1.244 ambi passed check
14:37:56.461 T:140562720085760 DEBUG: YEEMEE >> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ priority: 1 player state: play
14:37:56.461 T:140562720085760 DEBUG: YEEMEE >> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 192.168.1.244 state play > action 2
14:37:56.499 T:140562720085760 DEBUG: YEEMEE >> (ON) POWER ON (MONO) RESULT >> ok
14:37:56.804 T:140562720085760 DEBUG: YEEMEE >> (ON) SET BRIGHT RESULT >> ok
14:38:04.904 T:140562720085760 DEBUG: YEEMEE >> PLAYBACK >>STOPPED<<
14:38:04.906 T:140562720085760 DEBUG: YEEMEE >> ACTIVATION TIME: 0
14:38:04.906 T:140562720085760 DEBUG: YEEMEE >> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 192.168.1.244 ambi passed check
14:38:04.906 T:140562720085760 DEBUG: YEEMEE >> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ priority: 1 player state: stop
14:38:04.906 T:140562720085760 DEBUG: YEEMEE >> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 192.168.1.244 state stop
14:38:04.906 T:140562720085760 DEBUG: YEEMEE >> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 192.168.1.244 state stop > action 2
14:38:05.934 T:140562720085760 DEBUG: YEEMEE >> (ON) POWER ON (MONO) RESULT >> ok
14:38:06.240 T:140562720085760 DEBUG: YEEMEE >> (ON) SET BRIGHT RESULT >> ok
The second problem is that Kodi freezes by enabling / sometimes by disabling YeeMee addon - the loading circle is still spinning.
Code: 14:57:12.793 T:139804742252288 DEBUG: YEEMEE >> STARTED VERSION 3.5 on Kodi 17.4
14:57:12.891 T:139804742252288 DEBUG: YEEMEE >> GOT CURRENT LAT-LON: 48.3774, 17.5872
14:57:12.913 T:139804742252288 DEBUG: YEEMEE >> GOT TIMEZONE OFFSET: 2:00:00
14:57:12.955 T:139807555778752 DEBUG: Activating window ID: 10138
14:57:12.955 T:139807555778752 DEBUG: ------ Window Init (DialogBusy.xml) ------
14:57:13.199 T:139804742252288 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/e/.kodi/addons/service.yeemee/service.py", line 1666, in <module>
Sunrise, Sunset, civilTW, nauticTW = byLoc()
File "/home/e/.kodi/addons/service.yeemee/service.py", line 382, in byLoc
datetime_sunrise = datetime.strptime(sunrise, '%I:%M:%S %p')
TypeError: attribute of type 'NoneType' is not callable
-->End of Python script error report<--
14:57:13.207 T:139807555778752 DEBUG: ------ Window Init (DialogNotification.xml) ------
14:57:13.445 T:139804742252288 INFO: Python script stopped
14:57:13.446 T:139804742252288 DEBUG: Thread LanguageInvoker 139804742252288 terminating
14:57:18.942 T:139807555778752 DEBUG: ------ Window Deinit (DialogNotification.xml) ------
14:57:19.316 T:139807555778752 DEBUG: Keyboard: scancode: 0x40, sym: 0x0134, unicode: 0x0000, modifier: 0x100
14:57:19.317 T:139807555778752 DEBUG: OnKey: alt-leftalt (0x4f0d4) pressed, action is
RE: YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi) - User 325245 - 2017-10-20
(2017-10-20, 15:02)5ulo Wrote: I have a strange problem with YeeMee 3.5. The same was with 3.4 (updated today). YeeMee test is working, playback too. The YeeLight White fails only on starting playback. Hitting pause, resume from pause and stop works as expected. What "White"? You have other color defined - like red according to log:
Code: BULB 0 PLAY : >> 2 5 #BA2B2B 1 1000
Luckily pretty simple setup only 1 bulb This means action ON, intensity 5%, color #BA2B2B, smooth effect lasting 1 second.
Aha, now I notice it is white bulb (ceiling).... from the log we can see:
Code: (ON) POWER ON (MONO) RESULT >> ok
(ON) SET BRIGHT RESULT >> ok
These are responses directly from the bulb.... strange. It doesn't lit at all??
As far as crash is concerned, this could be bug in "strptime" function, I'll have a look at it. Shouldn't be a problem, you can disable YeeMee inside the addon by turning both services off, no need to disable whole addon.
RE: YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi) - User 325245 - 2017-10-20
Ahahaha, got it!
I am using the on start param (whether light should be ON when you start Kodi) as a parameter for PLAYBACK START, that is why it is not working.
Will fix ASAP
RE: YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi) - User 325245 - 2017-10-20
v3.6
- Fixed a bug where OnPlay wouldn't set correct value to bulb
- Smoothen Ambi param changeable in steps of 10ms and possible to increase to 300ms
Hopefully fixed
RE: YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi) - gparaskevas - 2017-10-20
Hello everyone this is my first post. I will not spoil it by not saying a great thank you Lanik, so without further a do, THANK YOU LANIK!!!!
I sure have a problem though, only with yeemee ambi, everything else is working fine, but ambi doesnt work...any help? Where can i find logs?
Versions: Yeemee 3.6 kodi 17.4 Windows 10
RE: YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi) - User 325245 - 2017-10-20
(2017-10-20, 22:08)gparaskevas Wrote: Hello everyone this is my first post. I will not spoil it by not saying a great thank you Lanik, so without further a do, THANK YOU LANIK!!!!
I sure have a problem though, only with yeemee ambi, everything else is working fine, but ambi doesnt work...any help? Where can i find logs?
Versions: Yeemee 3.6 kodi 17.4 Windows 10
Logs will not tell us much - if the internal Kodi capture.getImage() function is not working there is not much we can do... But it should work in windows... In my experience, it mostly troubles with Android where you need to disable hardware acceleration.
Anyways, logs: http://kodi.wiki/view/Log_file/Easy
RE: YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi) - gparaskevas - 2017-10-20
from the logs after the video playback start I can see this:
#1
23:29:09.739 T:12212 ERROR: Unhandled exception in thread started by
23:29:09.739 T:12212 ERROR: <function grabloop at 0x0D598CF0>
23:29:09.739 T:12212 ERROR: Traceback (most recent call last):
23:29:09.739 T:12212 ERROR: File "C:\Users\user\AppData\Roaming\Kodi\addons\service.yeemee\service.py", line 1582, in grabloop
23:29:09.741 T:12212 ERROR: screen.getColors(screen)
23:29:09.741 T:12212 ERROR: File "C:\Users\user\AppData\Roaming\Kodi\addons\service.yeemee\service.py", line 1252, in getColors
23:29:09.743 T:12212 ERROR: x.applyColorsH, x.applyColorsL, x.applyColorsS = screen.calcRegColor(screen.pixels, *x.ambicoord)
23:29:09.743 T:12212 ERROR: File "C:\Users\user\AppData\Roaming\Kodi\addons\service.yeemee\service.py", line 1207, in calcRegColor
23:29:09.745 T:12212 ERROR: b += pixels[ypos]
23:29:09.745 T:12212 ERROR: IndexError
23:29:09.745 T:12212 ERROR: :
23:29:09.745 T:12212 ERROR: bytearray index out of range
and later this
23:32:47.792 T:4984 ERROR: CAESinkDirectSound::Initialize: cannot create secondary buffer (DSERR_UNSUPPORTED)
23:32:47.823 T:3172 ERROR: Previous line repeats 1 times.
23:32:47.823 T:3172 ERROR: Unhandled exception in thread started by
23:32:47.823 T:3172 ERROR: <function startServer at 0x0D598E70>
23:32:47.823 T:3172 ERROR: Traceback (most recent call last):
23:32:47.823 T:3172 ERROR: File "C:\Users\apollotonkosmo\AppData\Roaming\Kodi\addons\service.yeemee\service.py", line 1443, in startServer
23:32:47.827 T:3172 ERROR: serversock.listen(8)
23:32:47.827 T:3172 ERROR: File "C:\Program Files (x86)\Kodi\system\python\Lib\socket.py", line 228, in meth
23:32:47.827 T:3172 ERROR: return getattr(self._sock,name)(*args)
23:32:47.827 T:3172 ERROR: socket
23:32:47.827 T:3172 ERROR: .
23:32:47.827 T:3172 ERROR: error
23:32:47.827 T:3172 ERROR: :
23:32:47.827 T:3172 ERROR: [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions
RE: YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi) - User 325245 - 2017-10-20
(2017-10-20, 22:37)gparaskevas Wrote: from the logs after the video playback start I can see this:
I'd need the whole log to tell what's going on. Can you start Kodi, play something and exit, then post whole log.
RE: YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi) - 5ulo - 2017-10-21
Thanks Lanik, after your fast fixing it is working! Yep.. I have only white bulb (for now).. the RGB is on the way.
RE: YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi) - User 325245 - 2017-10-21
(2017-10-20, 22:37)gparaskevas Wrote: from the logs after the video playback start I can see this:
I just installed 17.4 on my Win 10 and everything works OK. The only problem is with bulb discovery, but that should have nothing in common with your problem.
RE: YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi) - User 325245 - 2017-10-21
v3.61 - TEST Repo
- Fixed a bug with autodiscover of bulbs wasn't able to write settings
I think I fixed the bug when autodiscover of bulbs reported that some bulbs don't have IP adress and couldn't save correct found parameters of bulbs...
RE: YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi) - Dibbele - 2017-10-21
Hello Dalibor,
thanks for the great addon. As already written on YouTube. I have an issue after starting Kodi 17.4 as follows. Same Problem as gparaskevas
Current setup:
One Bulb, fixed IP, Dev Mode on, whole screen (just for testing / The light strips will come in some weeks)
When I use the test area everything (switch on / of / pause) is working but using like Amazon VOD or KiKa+ the there is no ambilight reaction at all, also the pause option are not applied.
Below you can find the log written once Kodi started, hope the information are enough. In case more needed please let me know.
Code: 21:23:07.451 T:1816 NOTICE: Checking resolution 16
21:23:07.641 T:6992 NOTICE: Running database version Addons27
21:23:07.642 T:6992 NOTICE: Running database version ViewModes6
21:23:07.642 T:6992 NOTICE: Running database version Textures13
21:23:07.644 T:6992 NOTICE: Running database version MyMusic60
21:23:07.645 T:6992 NOTICE: Running database version MyVideos107
21:23:07.646 T:6992 NOTICE: Running database version TV29
21:23:07.647 T:6992 NOTICE: Running database version Epg11
21:23:07.735 T:1816 WARNING: JSONRPC: Could not parse type "Setting.Details.SettingList"
21:23:07.810 T:1816 NOTICE: initialize done
21:23:07.810 T:1816 NOTICE: Running the application...
21:23:07.810 T:1816 NOTICE: starting upnp client
21:23:07.813 T:15792 NOTICE: ES: Starting UDP Event server on port 9777
21:23:07.813 T:15792 NOTICE: UDP: Listening on port 9777 (ipv6 : false)
21:23:07.828 T:2216 ERROR: CFFmpegImage::ExtractFrame: Could not decode a frame
21:23:09.135 T:8472 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.IndexError'>
Error Contents: string index out of range
Traceback (most recent call last):
File "C:\Users\TV\AppData\Roaming\Kodi\addons\service.yeemee\service.py", line 1670, in <module>
GetSettings(0)
File "C:\Users\TV\AppData\Roaming\Kodi\addons\service.yeemee\service.py", line 206, in GetSettings
if bulbs[c].play_color[0] != "#":
IndexError: string index out of range
-->End of Python script error report<--
21:29:42.124 T:16160 ERROR: CFFmpegImage::ExtractFrame: Could not decode a frame
21:38:55.527 T:8848 ERROR: Previous line repeats 2 times.
21:38:55.527 T:8848 ERROR: XFILE::CDirectory::GetDirectory - Error getting
21:39:48.652 T:1816 ERROR: Previous line repeats 2 times.
21:39:48.652 T:1816 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://script.video.F4mProxy/
21:39:48.652 T:1816 ERROR: CGUIMediaWindow::GetDirectory(plugin://script.video.F4mProxy/) failed
21:39:52.734 T:8848 ERROR: CFFmpegImage::ExtractFrame: Could not decode a frame
21:40:11.413 T:8848 ERROR: Previous line repeats 1 times.
21:40:11.413 T:8848 ERROR: XFILE::CDirectory::GetDirectory - Error getting
21:42:29.454 T:11232 ERROR: Previous line repeats 6 times.
21:42:29.455 T:11232 ERROR: CFFmpegImage::ExtractFrame: Could not decode a frame
21:45:07.313 T:11016 ERROR: Previous line repeats 5 times.
21:45:07.313 T:11016 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 "C:\Users\TV\AppData\Roaming\Kodi\addons\service.yeemee\service.py", line 1666, in <module>
Sunrise, Sunset, civilTW, nauticTW = byLoc()
File "C:\Users\TV\AppData\Roaming\Kodi\addons\service.yeemee\service.py", line 382, in byLoc
datetime_sunrise = datetime.strptime(sunrise, '%I:%M:%S %p')
TypeError: attribute of type 'NoneType' is not callable
-->End of Python script error report<--
21:46:01.126 T:1816 NOTICE: Storing total System Uptime
21:46:01.126 T:1816 NOTICE: Saving settings
21:46:01.129 T:1816 NOTICE: Saving skin settings
21:46:01.129 T:1816 NOTICE: stop all
21:46:01.129 T:1816 NOTICE: stop player
21:46:01.130 T:1816 NOTICE: ES: Stopping event server
21:46:01.130 T:1816 NOTICE: stopping upnp
21:46:01.207 T:15792 NOTICE: ES: UDP Event server stopped
21:46:01.438 T:1816 NOTICE: clean cached files!
21:46:01.859 T:1816 NOTICE: closing down remote control service
21:46:01.859 T:1816 NOTICE: stopped
21:46:02.060 T:1816 NOTICE: destroy
21:46:02.060 T:1816 NOTICE: unload skin
21:46:02.073 T:1816 WARNING: CGUITextureManager::Cleanup: Having to cleanup texture overlays/shadow.png
21:46:02.073 T:1816 WARNING: CGUITextureManager::Cleanup: Having to cleanup texture lists/focus.png
21:46:02.073 T:1816 WARNING: CGUITextureManager::Cleanup: Having to cleanup texture dialogs/dialog-bg-nobo.png
21:46:02.073 T:1816 WARNING: CGUITextureManager::Cleanup: Having to cleanup texture overlays/badge.png
21:46:02.073 T:1816 WARNING: CGUITextureManager::Cleanup: Having to cleanup texture colors/grey.png
21:46:02.154 T:1816 NOTICE: unload sections
21:46:02.156 T:1816 NOTICE: special://profile/ is mapped to: special://masterprofile/
21:46:02.401 T:1816 NOTICE: application stopped...
Thanks for your effort.
Best regards
RE: YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi) - User 325245 - 2017-10-21
v3.62 - TEST REPO
- Fixed a bug with autodiscover of bulbs wasn't able to write settings
(another try)
RE: YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi) - User 325245 - 2017-10-21
(2017-10-21, 23:07)Dibbele Wrote: Hello Dalibor,
thanks for the great addon. As already written on YouTube. I have an issue after starting Kodi 17.4 as follows. Same Problem as gparaskevas
Current setup:
One Bulb, fixed IP, Dev Mode on, whole screen (just for testing / The light strips will come in some weeks)
When I use the test area everything (switch on / of / pause) is working but using like Amazon VOD or KiKa+ the there is no ambilight reaction at all, also the pause option are not applied.
Below you can find the log written once Kodi started, hope the information are enough. In case more needed please let me know.
Thanks for your effort.
Best regards
Can you please turn on the debug logging in settings and repost, this is too little to tell me what is going on I have no idea what Amazon VOD or Kika+ is...
RE: YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi) - TeDeV - 2017-10-21
hey DaLanik!
i hope you are doing well my friend. i haven't got a lot of time to play as much as i would like with the lights.
1) at the moment i have a problem with my configuration. i used to have 3 bulbs configured. then after an update (don't know which one) your plugin thinks that there are 4 bulbs even though 3 are chosen which results into crashing all the time. i can use 1-2 or 4 bulbs configuration but if i use 3...... then it crashes. i guess it is something with the configuration file. i even tried to remove the plugin and install it again but it keeps the settings. is there a chance you can include a "clean configuration" option in the mod?
2) any plans of trying to improve the algorithm of guessing the color? for example in this video....
https://youtu.be/KsznVtHFWnc?t=177
you can see that the left bulb is purple when it should be red and same goes for the lightstrip at the bottom
i hope that yeelight finally decides to release the v2 of the bulbs. it is really annoying how low the luminance is on these bulbs for ambilight.
|