Kodi Community Forum

Full Version: YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi Lanik,
i'm really sorry to bore you, but i've got a problem since yesterday. Yeemee doesn't find my bulbs anymore.
It continously launch an error message like : "unable to find any Bulds, check connection...", but my bulbs are well connected, and developper mode is activated.
I even tried ton enter ths static IP of my bulbs, but nothing seems to work.
Can you help me please?
Can you control your bulbs from Yeelight app? I am afraid this is Local network problem, I can't help you much. Take a look at the adresses of the bulbs on your router. Then try to enter manually. If it doesn't work probably something with LAN. Are you on same network? Same SSID? 2.4Ghz?

Debug Log would be helpful.
Yes! It  was a local problem. 
Everything works fine 😁😀
Thx for your work 👍👍

Hi there

Updated to newest plugin to try to get ambi working.
As soon as i enable it it now says "Yeemee erroor" then "Buffering .. PLease wait" comes up and never goes away
which makes kodi unresponsive so i have to kill the process.
I have deleted the plug in and retried and it still does the same thing.

https://pastebin.com/8Srf6y3x
(2018-01-25, 23:53)thekow Wrote: [ -> ]Hi there

Updated to newest plugin to try to get ambi working.
As soon as i enable it it now says "Yeemee erroor" then "Buffering .. PLease wait" comes up and never goes away
which makes kodi unresponsive so i have to kill the process.
I have deleted the plug in and retried and it still does the same thing.

https://pastebin.com/8Srf6y3x
 try the new test version
v4.24 (TEST REPO):

- Added ceiling4 (Yeelight JIAOYUE 650) lamp
- Rare Libreelec Linux time format bug fix
- Rare lat-lng bug fixed
- Get sunset-sunrise rare bug fixed
- Another small bug fix for date-time
- Another bug fix for date-time
Hi there.

Just waiting for test repo to update. It's only showing 4.23 as available. 
Then i will try the 4.24.
New error Sad
Still freezes "Buffering please wait"

Maybe we can mod the script for now to ignore the time bit? How would we block that out.

18:34:23 T:2313157440  NOTICE: YEEMEE >> STARTED VERSION 4.24 on Kodi 16
18:34:23 T:2313157440  NOTICE: YEEMEE >> ERROR GETTING LOCATION: Expecting value: line 1 column 1 (char 0)
18:34:23 T:2313157440  NOTICE: YEEMEE >> COULD NOT GET CURRENT LAT-LON, USING SAVED: 50.1167, 14.5
18:34:23 T:2313157440  NOTICE: YEEMEE >> GOT TIMEZONE OFFSET: 10:00:00
18:34:24 T:2313157440   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: unsupported operand type(s) for +=: 'datetime.time' and 'datetime.timedelta'
                                            Traceback (most recent call last):
                                              File "/home/super/.kodi/addons/service.yeemee/service.py", line 2015, in <module>
                                                Sunrise, Sunset, civilTW, nauticTW = byLoc()
                                              File "/home/super/.kodi/addons/service.yeemee/service.py", line 489, in byLoc
                                                datetime_sunrise += utc_offset
                                            TypeError: unsupported operand type(s) for +=: 'datetime.time' and 'datetime.timedelta'
                                            -->End of Python script error report<--
It is too integrated everywhere Smile hold on, I'll solve it. Damn, I thought the worst thing in python is strings vs unicode, now I am struggling with time, datetime and delta.... Smile
OK cool I'll wait and test again... maybe my python is too old?
In test REPO:

v4.25
ok will see if its arrived yet Smile

EDIT: Same thing?

20:55:42 T:2124950336  NOTICE: YEEMEE >> STARTED VERSION 4.25 on Kodi 16
20:55:43 T:2124950336  NOTICE: YEEMEE >> ERROR GETTING LOCATION: Expecting value: line 1 column 1 (char 0)
20:55:43 T:2124950336  NOTICE: YEEMEE >> COULD NOT GET CURRENT LAT-LON, USING SAVED: 50.1167, 14.5
20:55:43 T:2124950336  NOTICE: YEEMEE >> GOT TIMEZONE OFFSET: 10:00:00
20:55:50 T:2124950336   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: unsupported operand type(s) for +: 'datetime.time' and 'datetime.timedelta'
                                            Traceback (most recent call last):
                                              File "/home/super/.kodi/addons/service.yeemee/service.py", line 2015, in <module>
                                                Sunrise, Sunset, civilTW, nauticTW = byLoc()
                                              File "/home/super/.kodi/addons/service.yeemee/service.py", line 489, in byLoc
                                                datetime_sunrise = (datetime_sunrise + utc_offset).time()
                                            TypeError: unsupported operand type(s) for +: 'datetime.time' and 'datetime.timedelta'
                                            -->End of Python script error report<--
Damn, it just works for me....
I googled this error on stack over flow and they suggested this. Any help?
 
datetime.time objects do not support addition

You could compute it like this:

==
Code:
import datetime as dt
now = dt.datetime.now()

delta = dt.timedelta(hours = 12)
t = now.time()
print(t)
# 12:39:11.039864
print((dt.datetime.combine(dt.date(1,1,1),t) + delta).time())
# 00:39:11.039864
 
Im not sure why it's not working for me. Maybe old python. Maybe old ubuntu. Who knows.
I'll chuck it on a newer server see if it works.

Thanks for trying though.

also just read this . 
datetime.datetime and datetime.date support subtraction, but datetime.time does not. Try using datetime.datetime