Kodi Community Forum
Broken YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Service Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=152)
+---- Thread: Broken YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi) (/showthread.php?tid=313197)



RE: YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi) - User 325245 - 2017-07-25

(2017-07-25, 17:58)Loïs Wrote:
(2017-07-25, 12:52)DaLanik Wrote: Color detection? Can you please specify what exactly do you mean by that?

Oh sorry...
I wanted to talk about the colors of the bulb that follow the colors of the videos!
As in your demo : https://www.youtube.com/watch?v=ixMbIZCh98U
Ambi(light). What OS? If android, did you turn off hardware acceleration?

Sent from my S8+


RE: YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi) - Loïs - 2017-07-25

(2017-07-25, 18:36)DaLanik Wrote:
(2017-07-25, 17:58)Loïs Wrote:
(2017-07-25, 12:52)DaLanik Wrote: Color detection? Can you please specify what exactly do you mean by that?

Oh sorry...
I wanted to talk about the colors of the bulb that follow the colors of the videos!
As in your demo : https://www.youtube.com/watch?v=ixMbIZCh98U
Ambi(light). What OS? If android, did you turn off hardware acceleration?

Sent from my S8+

I tested with Kodi on Raspberry Pi 3B and my PC Windows 7!


RE: YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi) - User 325245 - 2017-07-25

Hmm, strange, I don't know about RPI, but it should work on Windows. Can you send the log?


RE: YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi) - pronto89 - 2017-07-25

Hi, yes, setting white temperature on play/pause/stop rather than color values.
I have started making some changes but I never ever played with kodi addons so probably I'm wasting a lot of time.
This is the way I modified the settings panel, I did it for bulb1 only as fixing all the settings offset by hand just for testing is boring Smile

btw, is there a tool where you add a setting to an existing settings.xml and it adjusts automatically the settings visibility offset?

settings.xml
Code:
<setting label="32021" type="lsep" visible="gt(-1,0)" />
        <setting id="bulb_1_play_action" type="enum" label="32041" lvalues="32080|32081|32082" visible="gt(-2,0)" default="0" />
        <setting id="bulb_1_play_intensity" type="slider" label="32042" default="20" range="5,5,100" visible="gt(-3,0) + eq(-1,2)" option="int" subsetting="true" />
        <setting id="bulb_1_play_mode" type="enum" label="32214" default="White" lvalues="32214|32215" visible="gt(-4,0) + eq(-2,2)" option="int" subsetting="true" />
        <setting id="bulb_1_play_temp" type="slider" label="32216" default="2500" range="1700,100,3500" visible="gt(-5,0) + eq(-3,2) + eq(-1,0)" option="int" subsetting="true" />
        <setting id="bulb_1_play_color" type="text" label="32043" visible="gt(-6,0) + eq(-4,2) + !eq(-14,1) + !eq(-14,3) + eq(-2,1)" default="BA2B2B" subsetting="true" />
        <setting id="bulb_1_play_effect" type="enum" label="32044" lvalues="32070|32071" visible="gt(-7,0) + gt(-5,0)" default="0" subsetting="true" />
        <setting id="bulb_1_play_duration" type="slider" label="32072" default="500" range="100,100,3000" visible="gt(-8,0) + eq(-3,1) + gt(-6,0)" option="int" subsetting="true" />

English/strings.xml
Code:
<string id="32214">White</string>
    <string id="32215">Color</string>
    <string id="32216">White temp</string>



RE: YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi) - Loïs - 2017-07-25

FUCK YEAH !
It works! I reconfigure everything from 0 with "play action: none", I'm a goat ...
Thanks DaLanik ! ;-)

PS :Now you have to code this natively on Windows so that it works everywhere and you are my god! hahaha ♥


RE: YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi) - User 325245 - 2017-07-25

(2017-07-25, 21:13)pronto89 Wrote: Hi, yes, setting white temperature on play/pause/stop rather than color values.
I have started making some changes but I never ever played with kodi addons so probably I'm wasting a lot of time.
This is the way I modified the settings panel, I did it for bulb1 only as fixing all the settings offset by hand just for testing is boring Smile

btw, is there a tool where you add a setting to an existing settings.xml and it adjusts automatically the settings visibility offset?

settings.xml
Code:
<setting label="32021" type="lsep" visible="gt(-1,0)" />
        <setting id="bulb_1_play_action" type="enum" label="32041" lvalues="32080|32081|32082" visible="gt(-2,0)" default="0" />
        <setting id="bulb_1_play_intensity" type="slider" label="32042" default="20" range="5,5,100" visible="gt(-3,0) + eq(-1,2)" option="int" subsetting="true" />
        <setting id="bulb_1_play_mode" type="enum" label="32214" default="White" lvalues="32214|32215" visible="gt(-4,0) + eq(-2,2)" option="int" subsetting="true" />
        <setting id="bulb_1_play_temp" type="slider" label="32216" default="2500" range="1700,100,3500" visible="gt(-5,0) + eq(-3,2) + eq(-1,0)" option="int" subsetting="true" />
        <setting id="bulb_1_play_color" type="text" label="32043" visible="gt(-6,0) + eq(-4,2) + !eq(-14,1) + !eq(-14,3) + eq(-2,1)" default="BA2B2B" subsetting="true" />
        <setting id="bulb_1_play_effect" type="enum" label="32044" lvalues="32070|32071" visible="gt(-7,0) + gt(-5,0)" default="0" subsetting="true" />
        <setting id="bulb_1_play_duration" type="slider" label="32072" default="500" range="100,100,3000" visible="gt(-8,0) + eq(-3,1) + gt(-6,0)" option="int" subsetting="true" />

English/strings.xml
Code:
<string id="32214">White</string>
    <string id="32215">Color</string>
    <string id="32216">White temp</string>

No there s no such tool as far as I know. It sure would help Smile Now you understand why settings in this addon is real horrorshow Smile

I'd have to think it through, this white color temp, never did anything with it.


RE: YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi) - User 325245 - 2017-07-25

(2017-07-25, 21:38)Loïs Wrote: FUCK YEAH !
It works! I reconfigure everything from 0 with "play action: none", I'm a goat ...
Thanks DaLanik ! ;-)

PS :Now you have to code this natively on Windows so that it works everywhere and you are my god! hahaha ♥

Cool Smile


RE: YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi) - doveman2 - 2017-07-28

(2017-07-24, 21:20)DaLanik Wrote: Can't say anything from log....

What part can't you access? Is it under the "IP Adresses" tab or under "On video play", "On video stop" etc??
I think everything's accessible on the "IP Addresses" tab but on all the others it's impossible to access everything below the dividing line. Also, I just enabled YeeMee (I disabled it to avoid problems while we try and get it working) and I got an error popup and now Kodi is locked up with the busy spinning animation, so I'll have to power-cycle it. I was finding this was happening before at random times actually, which was the main reason I disabled YeeMee to see if it was the cause.


YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi) - doveman2 - 2017-07-28

I checked and the problematic tabs are the three "on video" ones and "testing".


RE: YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi) - User 325245 - 2017-07-28

(2017-07-28, 02:45)doveman2 Wrote: I checked and the problematic tabs are the three "on video" ones and "testing".
Did you try to delete the settings file?

Sent from my S8+


RE: YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi) - Darknessrc - 2017-07-29

Hello guys and hello @DaLanik - Great work there!

I just wanted to try it out on my RPI3 with Kodi 17.3 (OSMC) but i receive an error on installing the addon from your repo.

Thats the log:

Code:
19:40:31.094 T:1414566896   ERROR: COMXImageFile::ReadFile http://kodi.lanik.org/_repo/service.yeemee/resources/screenshot-01.jpg m_image_size zero
19:40:31.096 T:1431344112   ERROR: COMXImageFile::ReadFile http://kodi.lanik.org/_repo/service.yeemee/resources/screenshot-02.jpg m_image_size zero
19:40:31.194 T:1591735280   ERROR: COMXImageFile::ReadFile http://kodi.lanik.org/_repo/service.yeemee/resources/screenshot-03.jpg m_image_size zero
19:40:31.194 T:1591735280  NOTICE: LoadJpeg: unable to load http://kodi.lanik.org/_repo/service.yeemee/resources/screenshot-03.jpg
19:40:31.395 T:1431344112   ERROR: COMXImageFile::ReadFile http://kodi.lanik.org/_repo/service.yeemee/resources/screenshot-02.jpg m_image_size zero
19:40:31.395 T:1431344112  NOTICE: LoadJpeg: unable to load http://kodi.lanik.org/_repo/service.yeemee/resources/screenshot-02.jpg
19:40:31.396 T:1414566896   ERROR: COMXImageFile::ReadFile http://kodi.lanik.org/_repo/service.yeemee/resources/screenshot-01.jpg m_image_size zero
19:40:31.396 T:1414566896  NOTICE: LoadJpeg: unable to load http://kodi.lanik.org/_repo/service.yeemee/resources/screenshot-01.jpg
19:40:31.407 T:1591735280   ERROR: ExtractFrame: Could not decode a frame
19:40:37.155 T:1414566896   ERROR: Previous line repeats 2 times.
19:40:37.155 T:1414566896   ERROR: COMXImageFile::ReadFile http://kodi.lanik.org/_repo/service.yeemee/resources/screenshot-03.jpg m_image_size zero
19:40:37.156 T:1591735280   ERROR: COMXImageFile::ReadFile http://kodi.lanik.org/_repo/service.yeemee/resources/screenshot-02.jpg m_image_size zero
19:40:37.243 T:1431344112   ERROR: COMXImageFile::ReadFile http://kodi.lanik.org/_repo/service.yeemee/resources/screenshot-01.jpg m_image_size zero
19:40:37.244 T:1431344112  NOTICE: LoadJpeg: unable to load http://kodi.lanik.org/_repo/service.yeemee/resources/screenshot-01.jpg
19:40:37.454 T:1591735280   ERROR: COMXImageFile::ReadFile http://kodi.lanik.org/_repo/service.yeemee/resources/screenshot-02.jpg m_image_size zero
19:40:37.455 T:1591735280  NOTICE: LoadJpeg: unable to load http://kodi.lanik.org/_repo/service.yeemee/resources/screenshot-02.jpg
19:40:37.458 T:1431344112   ERROR: ExtractFrame: Could not decode a frame
19:40:37.462 T:1414566896   ERROR: COMXImageFile::ReadFile http://kodi.lanik.org/_repo/service.yeemee/resources/screenshot-03.jpg m_image_size zero
19:40:37.462 T:1414566896  NOTICE: LoadJpeg: unable to load http://kodi.lanik.org/_repo/service.yeemee/resources/screenshot-03.jpg
19:40:37.563 T:1414566896   ERROR: ExtractFrame: Could not decode a frame
19:40:42.087 T:1574958064   ERROR: Previous line repeats 1 times.
19:40:42.087 T:1574958064   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ValueError'>
                                            Error Contents: need more than 1 value to unpack
                                            Traceback (most recent call last):
                                              File "/home/osmc/.kodi/addons/service.yeemee/service.py", line 1535, in <module>
                                                kodiVer, kodiBuild = xbmc.getInfoLabel('System.BuildVersion').split(' ', 1)
                                            ValueError: need more than 1 value to unpack
                                            -->End of Python script error report<--

If we get it to work i can test a lot.... I have two bulbs and one strip. Other stuff is on the way Wink


best regards


RE: YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi) - User 325245 - 2017-07-29

(2017-07-29, 19:44)Darknessrc Wrote: Hello guys and hello @DaLanik - Great work there!

I just wanted to try it out on my RPI3 with Kodi 17.3 (OSMC) but i receive an error on installing the addon from your repo.

Thats the log:

Code:
19:40:31.094 T:1414566896   ERROR: COMXImageFile::ReadFile http://kodi.lanik.org/_repo/service.yeemee/resources/screenshot-01.jpg m_image_size zero
19:40:31.096 T:1431344112   ERROR: COMXImageFile::ReadFile http://kodi.lanik.org/_repo/service.yeemee/resources/screenshot-02.jpg m_image_size zero
19:40:31.194 T:1591735280   ERROR: COMXImageFile::ReadFile http://kodi.lanik.org/_repo/service.yeemee/resources/screenshot-03.jpg m_image_size zero
19:40:31.194 T:1591735280  NOTICE: LoadJpeg: unable to load http://kodi.lanik.org/_repo/service.yeemee/resources/screenshot-03.jpg
19:40:31.395 T:1431344112   ERROR: COMXImageFile::ReadFile http://kodi.lanik.org/_repo/service.yeemee/resources/screenshot-02.jpg m_image_size zero
19:40:31.395 T:1431344112  NOTICE: LoadJpeg: unable to load http://kodi.lanik.org/_repo/service.yeemee/resources/screenshot-02.jpg
19:40:31.396 T:1414566896   ERROR: COMXImageFile::ReadFile http://kodi.lanik.org/_repo/service.yeemee/resources/screenshot-01.jpg m_image_size zero
19:40:31.396 T:1414566896  NOTICE: LoadJpeg: unable to load http://kodi.lanik.org/_repo/service.yeemee/resources/screenshot-01.jpg
19:40:31.407 T:1591735280   ERROR: ExtractFrame: Could not decode a frame
19:40:37.155 T:1414566896   ERROR: Previous line repeats 2 times.
19:40:37.155 T:1414566896   ERROR: COMXImageFile::ReadFile http://kodi.lanik.org/_repo/service.yeemee/resources/screenshot-03.jpg m_image_size zero
19:40:37.156 T:1591735280   ERROR: COMXImageFile::ReadFile http://kodi.lanik.org/_repo/service.yeemee/resources/screenshot-02.jpg m_image_size zero
19:40:37.243 T:1431344112   ERROR: COMXImageFile::ReadFile http://kodi.lanik.org/_repo/service.yeemee/resources/screenshot-01.jpg m_image_size zero
19:40:37.244 T:1431344112  NOTICE: LoadJpeg: unable to load http://kodi.lanik.org/_repo/service.yeemee/resources/screenshot-01.jpg
19:40:37.454 T:1591735280   ERROR: COMXImageFile::ReadFile http://kodi.lanik.org/_repo/service.yeemee/resources/screenshot-02.jpg m_image_size zero
19:40:37.455 T:1591735280  NOTICE: LoadJpeg: unable to load http://kodi.lanik.org/_repo/service.yeemee/resources/screenshot-02.jpg
19:40:37.458 T:1431344112   ERROR: ExtractFrame: Could not decode a frame
19:40:37.462 T:1414566896   ERROR: COMXImageFile::ReadFile http://kodi.lanik.org/_repo/service.yeemee/resources/screenshot-03.jpg m_image_size zero
19:40:37.462 T:1414566896  NOTICE: LoadJpeg: unable to load http://kodi.lanik.org/_repo/service.yeemee/resources/screenshot-03.jpg
19:40:37.563 T:1414566896   ERROR: ExtractFrame: Could not decode a frame
19:40:42.087 T:1574958064   ERROR: Previous line repeats 1 times.
19:40:42.087 T:1574958064   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ValueError'>
                                            Error Contents: need more than 1 value to unpack
                                            Traceback (most recent call last):
                                              File "/home/osmc/.kodi/addons/service.yeemee/service.py", line 1535, in <module>
                                                kodiVer, kodiBuild = xbmc.getInfoLabel('System.BuildVersion').split(' ', 1)
                                            ValueError: need more than 1 value to unpack
                                            -->End of Python script error report<--

If we get it to work i can test a lot.... I have two bulbs and one strip. Other stuff is on the way Wink


best regards
Hello, this seems on first glance communication error with repository...

Sent from my S8+


RE: YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi) - Darknessrc - 2017-07-29

Hello again,

well i have a internet connection working properly in kodi...
Everything working except installing your addon :/


Nevertheless i have the YeeMee icon in my addons and when i try to launch same error are throwing..
I think the "real" error lines showing the causing problem are the following.


Code:
20:58:50.050 T:1548714992   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ValueError'>
                                            Error Contents: need more than 1 value to unpack
                                            Traceback (most recent call last):
                                              File "/home/osmc/.kodi/addons/service.yeemee/standalone.py", line 22, in <module>
                                                from service import Yeelight
                                              File "/home/osmc/.kodi/addons/service.yeemee/service.py", line 1535, in <module>
                                                kodiVer, kodiBuild = xbmc.getInfoLabel('System.BuildVersion').split(' ', 1)
                                            ValueError: need more than 1 value to unpack
                                            -->End of Python script error report<--
20:59:10.167 T:1548714992 WARNING: CPythonInvoker(15): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version.
20:59:11.655 T:1548714992   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ValueError'>
                                            Error Contents: need more than 1 value to unpack
                                            Traceback (most recent call last):
                                              File "/home/osmc/.kodi/addons/service.yeemee/discover.py", line 17, in <module>
                                                from standalone import RepeatedTimer, OverlayText
                                              File "/home/osmc/.kodi/addons/service.yeemee/standalone.py", line 22, in <module>
                                                from service import Yeelight
                                              File "/home/osmc/.kodi/addons/service.yeemee/service.py", line 1535, in <module>
                                                kodiVer, kodiBuild = xbmc.getInfoLabel('System.BuildVersion').split(' ', 1)
                                            ValueError: need more than 1 value to unpack
                                            -->End of Python script error report<--

best regards


RE: YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi) - User 325245 - 2017-07-29

(2017-07-29, 20:37)Darknessrc Wrote: Hello again,

well i have a internet connection working properly in kodi...
Everything working except installing your addon :/


Nevertheless i have the YeeMee icon in my addons and when i try to launch same error are throwing..
I think the "real" error lines showing the causing problem are the following.


Code:
20:58:50.050 T:1548714992   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ValueError'>
                                            Error Contents: need more than 1 value to unpack
                                            Traceback (most recent call last):
                                              File "/home/osmc/.kodi/addons/service.yeemee/standalone.py", line 22, in <module>
                                                from service import Yeelight
                                              File "/home/osmc/.kodi/addons/service.yeemee/service.py", line 1535, in <module>
                                                kodiVer, kodiBuild = xbmc.getInfoLabel('System.BuildVersion').split(' ', 1)
                                            ValueError: need more than 1 value to unpack
                                            -->End of Python script error report<--
20:59:10.167 T:1548714992 WARNING: CPythonInvoker(15): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version.
20:59:11.655 T:1548714992   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ValueError'>
                                            Error Contents: need more than 1 value to unpack
                                            Traceback (most recent call last):
                                              File "/home/osmc/.kodi/addons/service.yeemee/discover.py", line 17, in <module>
                                                from standalone import RepeatedTimer, OverlayText
                                              File "/home/osmc/.kodi/addons/service.yeemee/standalone.py", line 22, in <module>
                                                from service import Yeelight
                                              File "/home/osmc/.kodi/addons/service.yeemee/service.py", line 1535, in <module>
                                                kodiVer, kodiBuild = xbmc.getInfoLabel('System.BuildVersion').split(' ', 1)
                                            ValueError: need more than 1 value to unpack
                                            -->End of Python script error report<--

best regards
Aha I have been told that libreelec doesn't have version number like other Kodis. Nothing i can do now... will be fixed next week i hope....

Sent from my S8+


RE: YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi) - User 325245 - 2017-07-29

(2017-07-29, 21:10)DaLanik Wrote:
(2017-07-29, 20:37)Darknessrc Wrote: Hello again,

well i have a internet connection working properly in kodi...
Everything working except installing your addon :/


Nevertheless i have the YeeMee icon in my addons and when i try to launch same error are throwing..
I think the "real" error lines showing the causing problem are the following.


Code:
20:58:50.050 T:1548714992   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ValueError'>
                                            Error Contents: need more than 1 value to unpack
                                            Traceback (most recent call last):
                                              File "/home/osmc/.kodi/addons/service.yeemee/standalone.py", line 22, in <module>
                                                from service import Yeelight
                                              File "/home/osmc/.kodi/addons/service.yeemee/service.py", line 1535, in <module>
                                                kodiVer, kodiBuild = xbmc.getInfoLabel('System.BuildVersion').split(' ', 1)
                                            ValueError: need more than 1 value to unpack
                                            -->End of Python script error report<--
20:59:10.167 T:1548714992 WARNING: CPythonInvoker(15): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version.
20:59:11.655 T:1548714992   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ValueError'>
                                            Error Contents: need more than 1 value to unpack
                                            Traceback (most recent call last):
                                              File "/home/osmc/.kodi/addons/service.yeemee/discover.py", line 17, in <module>
                                                from standalone import RepeatedTimer, OverlayText
                                              File "/home/osmc/.kodi/addons/service.yeemee/standalone.py", line 22, in <module>
                                                from service import Yeelight
                                              File "/home/osmc/.kodi/addons/service.yeemee/service.py", line 1535, in <module>
                                                kodiVer, kodiBuild = xbmc.getInfoLabel('System.BuildVersion').split(' ', 1)
                                            ValueError: need more than 1 value to unpack
                                            -->End of Python script error report<--

best regards
Aha I have been told that libreelec doesn't have version number like other Kodis. Nothing i can do now... will be fixed next week i hope....

Sent from my S8+
https://forum.kodi.tv/showthread.php?pid=2620858#pid2620858

Sent from my S8+