Page 2 of 4
Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted
Posted: Wednesday 12 April 2017 1:01
by deennoo
If you have some Time and knowledge you can search which Handle are use to drive color and effect
I can give you à Small how to, that easy to do but long.
Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted
Posted: Wednesday 12 April 2017 9:19
by poudenes
I have some knowledge to do some tests, my biggest issue i can't program

. So if you tell me how to do it, then i will test it.
Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted
Posted: Wednesday 12 April 2017 10:13
by deennoo
ok i think that we just need to have some value, i send you mp for this
Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted
Posted: Friday 14 April 2017 22:00
by Mediacj
zaraki673 wrote:Hi Mediacj,
have you this issue on every heartbeat ? or just one time ?
i think it's just an init error in my code, i will see that ASAP

I managed to get them working without your great software with the gatttool, but I had to change the address for handle color from 0x0016(in your plugin.py) to 00x0019 in gattool to let it work. So there seems a shift of 3.
Domoticz: 3.7243
Python: Python 2.7.9 (python -V)
but also Python 3.4.2 (python3 -V)
Bulb: Playbulb Candle
Firmware: BTL300_v6
Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted
Posted: Friday 14 April 2017 22:40
by zaraki673
I just update RGBW plugin with this informations, thank's
https://github.com/zaraki673/MiPow-Play ... /plugin.py
can you try ?
Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted
Posted: Friday 14 April 2017 22:55
by Mediacj
Thanks! I also changed the address in plugin.py but that didn't help for the connection errors, this is what I get now with your new version:
Code: Select all
2017-04-14 22:55:03.615 (Playbulb) Initialized version 1.0.1, author 'zaraki673'
2017-04-14 22:55:03.616 (Playbulb) Debug log level set to: 'true'.
2017-04-14 22:55:03.618 (Playbulb) Error connecting device - is it up ?
2017-04-14 22:55:03.618 (Playbulb) 'Mode3':'0'
2017-04-14 22:55:03.618 (Playbulb) 'Mode1':'8'
2017-04-14 22:55:03.618 (Playbulb) 'Name':'Playbulb'
2017-04-14 22:55:03.618 (Playbulb) 'Mode6':'Debug'
2017-04-14 22:55:03.618 (Playbulb) 'Mode2':'0'
2017-04-14 22:55:03.618 (Playbulb) 'HomeFolder':'/home/jan/domoticz/plugins/mipow/'
2017-04-14 22:55:03.618 (Playbulb) 'Address':'ED:C6:4B:11:AC:E6'
2017-04-14 22:55:03.618 (Playbulb) 'Port':'0'
2017-04-14 22:55:03.618 (Playbulb) 'HardwareID':'27'
2017-04-14 22:55:03.618 (Playbulb) 'Key':'MiPow'
2017-04-14 22:55:03.618 (Playbulb) 'Author':'zaraki673'
2017-04-14 22:55:03.618 (Playbulb) 'Version':'1.0.1'
2017-04-14 22:55:03.618 (Playbulb) Device count: 8
2017-04-14 22:52:52.671 (Playbulb) Calling message handler 'onHeartbeat'.
2017-04-14 22:52:52.671 (Playbulb) Error getting status
2017-04-14 22:52:52.674 (Playbulb) Error connecting device - is it up ?
UPDATE: I have it working now on my Raspberry Zero W, but not under Ubuntu 16 server which is my main system. I thought they both had the same problems. But your last version works fine on my Raspberry Zero W.
Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted
Posted: Friday 14 April 2017 23:33
by zaraki673
the plugin can't connect to your candle when you see this message, so you should :
- check hci you have configure, (hci0, hci1 or hci2) you can check device available when running hcitool dev
- check mac address
- check if your candle is on
- check nothing other is connect (don't know if some playbulb can have multiple connection at the same time)
Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted
Posted: Saturday 15 April 2017 0:07
by Mediacj
zaraki673 wrote:the plugin can't connect to your candle when you see this message, so you should :
- check hci you have configure, (hci0, hci1 or hci2) you can check device available when running hcitool dev
- check mac address
- check if your candle is on
- check nothing other is connect (don't know if some playbulb can have multiple connection at the same time)
Thx for your respond but I have done that already
It is hci0 I have the correct mac address and it is on, under gatttool it works with these parameters. And I switch it off and on and disconnect the bluetooth connection before I go back to Domoticz.
But it works under Rasp Zero W now, only thing is when I switch the playbulb effect to off the candle is switched off, so I can't set it to no effect.
Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted
Posted: Saturday 15 April 2017 0:46
by zaraki673
downoad it again, you will have btle error code in log now, then we will see where error is

Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted
Posted: Saturday 15 April 2017 1:53
by Mediacj
Done that! And now it works just recompiled bluez etc. because I got a exception error on it. To be more specific, this was the solution, it seems that there is a problem under Ubuntu with the compiling of Bluez:
Code: Select all
cd "/usr/local/lib/python3.5/dist-packages/bluepy-1.0.5-py3.5.egg/bluepy/"
sudo make
One thing I had to remove a extra ':' in your source on line 572 (::) because it gave a error in the Domoticz log when starting.
Many thanks for your help!
Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted
Posted: Saturday 15 April 2017 2:02
by zaraki673
Mediacj wrote:Done that! And now it works just reinstalled bluez etc. because I got a exception error on it.
One thing I had to remove a extra ':' in your source on line 572 (::) because it gave a error in the Domoticz log when starting.
Many thanks for your help!
Thank's I remove it

Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted
Posted: Wednesday 19 April 2017 12:25
by poudenes
Using the latest plugin.py with my Sphere - Spot (fw:BTL203M_V1.6) work so nice!!!
Hope the development will go on so we get less switched and a color picker multi color switch like Philips Hue

Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted
Posted: Thursday 20 April 2017 8:48
by zaraki673
Hi, sorry, i'm working on another plugin , i will try to update this one soon

Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted
Posted: Thursday 20 April 2017 12:46
by poudenes
That would be great !!! Im open to test the plugin.

Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted
Posted: Monday 24 April 2017 14:38
by poudenes
Maybe to excited.. Any news or update for the PlayBlub plugin?

Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted
Posted: Tuesday 25 April 2017 9:33
by deennoo
poudenes wrote:Maybe to excited.. Any news or update for the PlayBlub plugin?

dev is working on another plugin who need more time in developement (RFP1000 : USB key for 433 and 868 devices), surely he will came back to this soon, but he need to finish rfp1000 first
Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted
Posted: Friday 28 April 2017 18:49
by poudenes
Ok

i'll will wait
deennoo wrote:
dev is working on another plugin who need more time in developement (RFP1000 : USB key for 433 and 868 devices), surely he will came back to this soon, but he need to finish rfp1000 first
Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted
Posted: Saturday 06 May 2017 8:55
by poudenes
Hi There all,
Any idea when this plugin will updated? change all color switches into a color selector?
Also have 4 new bulbs "Smart" with FM BT_201 they work with settings of sphere/smart
Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted
Posted: Tuesday 09 May 2017 23:01
by deennoo
poudenes wrote:
Also have 4 new bulbs "Smart" with FM BT_201 they work with settings of sphere/smart
thx for feedback i add them !
Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted
Posted: Sunday 14 May 2017 11:41
by poudenes
2017-05-14 11:40:23.171 (Raam Links) Calling message handler 'onHeartbeat'.
2017-05-14 11:40:23.241 (Raam Links) Error getting status
2017-05-14 11:40:23.253 (Raam Links) Error connecting device - is it up ? (btle error code : 1)
I see this msg for all my MiPow Bulbs. They are working. Can do everything with it inside Domoticz. But get this error as well
But what can i do to solve this?