PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

deennoo
Posts: 784
Joined: Wednesday 10 December 2014 13:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted

Post 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.
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted

Post 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.
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
deennoo
Posts: 784
Joined: Wednesday 10 December 2014 13:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted

Post by deennoo »

ok i think that we just need to have some value, i send you mp for this
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
User avatar
Mediacj
Posts: 74
Joined: Wednesday 11 February 2015 16:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted

Post 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
zaraki673
Posts: 32
Joined: Thursday 19 January 2017 23:46
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted

Post by zaraki673 »

I just update RGBW plugin with this informations, thank's
https://github.com/zaraki673/MiPow-Play ... /plugin.py
can you try ?
User avatar
Mediacj
Posts: 74
Joined: Wednesday 11 February 2015 16:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted

Post by Mediacj »

zaraki673 wrote:I just update RGBW plugin with this informations, thank's
https://github.com/zaraki673/MiPow-Play ... /plugin.py
can you try ?
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.
zaraki673
Posts: 32
Joined: Thursday 19 January 2017 23:46
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted

Post 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)
User avatar
Mediacj
Posts: 74
Joined: Wednesday 11 February 2015 16:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted

Post 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.
zaraki673
Posts: 32
Joined: Thursday 19 January 2017 23:46
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted

Post by zaraki673 »

downoad it again, you will have btle error code in log now, then we will see where error is :D
User avatar
Mediacj
Posts: 74
Joined: Wednesday 11 February 2015 16:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted

Post 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!
Last edited by Mediacj on Saturday 15 April 2017 2:09, edited 1 time in total.
zaraki673
Posts: 32
Joined: Thursday 19 January 2017 23:46
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted

Post 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 :D
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted

Post 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 :D
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
zaraki673
Posts: 32
Joined: Thursday 19 January 2017 23:46
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted

Post by zaraki673 »

Hi, sorry, i'm working on another plugin , i will try to update this one soon ;)
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted

Post by poudenes »

That would be great !!! Im open to test the plugin. :D
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted

Post by poudenes »

Maybe to excited.. Any news or update for the PlayBlub plugin? :D
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
deennoo
Posts: 784
Joined: Wednesday 10 December 2014 13:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted

Post by deennoo »

poudenes wrote:Maybe to excited.. Any news or update for the PlayBlub plugin? :D
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
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted

Post 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
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted

Post 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
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
deennoo
Posts: 784
Joined: Wednesday 10 December 2014 13:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted

Post 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 !
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: PlayBlub (Bluetooth Bulb) Python Plugin - Beta tester Wanted

Post 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?
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest