<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.domoticz.com/index.php?action=history&amp;feed=atom&amp;title=Plugins%2FPlayBulb</id>
	<title>Plugins/PlayBulb - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.domoticz.com/index.php?action=history&amp;feed=atom&amp;title=Plugins%2FPlayBulb"/>
	<link rel="alternate" type="text/html" href="https://wiki.domoticz.com/index.php?title=Plugins/PlayBulb&amp;action=history"/>
	<updated>2026-09-18T22:43:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://wiki.domoticz.com/index.php?title=Plugins/PlayBulb&amp;diff=14725&amp;oldid=prev</id>
		<title>Walter vl at 15:41, 29 December 2020</title>
		<link rel="alternate" type="text/html" href="https://wiki.domoticz.com/index.php?title=Plugins/PlayBulb&amp;diff=14725&amp;oldid=prev"/>
		<updated>2020-12-29T15:41:47Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This Plugin goal is to drive Playbulb / Mipow Bluetooth Bulbs via Domoticz, using BTLE connection (using usb BTLE dongle or RPI3 BTLE Feature) : &lt;br /&gt;
http://www.playbulb.com/en/index.html&lt;br /&gt;
&lt;br /&gt;
This Plugin Support : &lt;br /&gt;
&lt;br /&gt;
- Garden (fw : BTL400M_1.9)&lt;br /&gt;
- Candle (fw : BTL300_v5 et 6)&lt;br /&gt;
- Rainbow (fw: BTL300_V5)&lt;br /&gt;
- Color (fw : BTL100c_v6)&lt;br /&gt;
- Comet&lt;br /&gt;
- Smart&lt;br /&gt;
- Sphere&lt;br /&gt;
- Spot (fw:BTL203M_V1.6)&lt;br /&gt;
- Solar&lt;br /&gt;
&lt;br /&gt;
You can find your FW version using Plybulb X Android or iOS APP, after connecting to the bulb and going to config page&lt;br /&gt;
&lt;br /&gt;
[[File:playbulbappfw.png]]&lt;br /&gt;
&lt;br /&gt;
You need to get bulb Bt Mac adresse, For this on a ssh connection run : &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
sudo hcitool lescan &amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then a list of btle device in range of your Dongle will appear, just pic the one you need, playbulb device give there name easily, here for a garden :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
71:9A:4B:15:AC:E6 PLAYBULB garden&lt;br /&gt;
71:9A:4B:15:AC:E6 (unknown)&lt;br /&gt;
71:9A:4B:15:AC:E6 PLAYBULB garden&lt;br /&gt;
71:9A:4B:15:AC:E6 (unknown)&lt;br /&gt;
71:9A:4B:15:AC:E6 PLAYBULB garden&lt;br /&gt;
71:9A:4B:15:AC:E6 (unknown)&lt;br /&gt;
A4:C1:38:65:0D:01 uaz6wGda&lt;br /&gt;
A4:C1:38:65:0D:01 (unknown)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Don&amp;#039;t forget to disconnect your phone from the bulb once all information is getting, bulb doesn&amp;#039;t allow 2 connections on the same time.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then you have to install python environnement for Domoticz : &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get install python3-pip libglib2.0-dev&lt;br /&gt;
&lt;br /&gt;
pip3 install bluepy&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
then as bluepy isn&amp;#039;t on working dir for Domoticz, copy it&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
sudo cp -r /usr/local/lib/python3.4/dist-packages/bluepy/ /usr/lib/python3.4/&lt;br /&gt;
&lt;br /&gt;
or &lt;br /&gt;
&lt;br /&gt;
sudo ln -s /usr/local/lib/python3.4/dist-packages/bluepy /usr/lib/python3.4/bluepy&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create a Mipow dir :&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
mkdir /home/user/domoticz/plugin/mipow where user is the user name used for domoticz  &lt;br /&gt;
&lt;br /&gt;
that mean for a rpi user with raspbian : /home/pi/domoticz/plugins/Mipow&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
and paste plugin.py for this zip file : https://github.com/zaraki673/MiPow-PlayBulb/&lt;br /&gt;
&lt;br /&gt;
Finally restart domoticz : &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
sudo service domoticz.sh restart&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Goes to Hardware, create a new and search for Mipow/playbulb&lt;br /&gt;
&lt;br /&gt;
[[File:playbulbhardware.png]]&lt;br /&gt;
&lt;br /&gt;
- Input your Device MAC Adresse, &lt;br /&gt;
- Choose your Bulb &lt;br /&gt;
- Your HCI device (which dongle have to be use to connect domoticz to your bulb)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You have 2 more option : &lt;br /&gt;
&lt;br /&gt;
Activate Status: who keep connection between Domoticz and the bulb: &lt;br /&gt;
- set on False, you can controle bul with booth Domoticz and Mobile APP, &lt;br /&gt;
- set on True give exclusivity to Domoticz.&lt;br /&gt;
&lt;br /&gt;
Debug : show debug info on Domoticz Log.&lt;br /&gt;
&lt;br /&gt;
Device will be created on not used device tab, just add it by cliking the the green arrow.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then Enjoy ! [[File:playbulbwidget.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
My bulb FW isn&amp;#039;t on the list, can&amp;#039;t controle it ? yes you can ! (need more works on it)&lt;br /&gt;
&lt;br /&gt;
Let&amp;#039;s speak about it on this topic : http://www.domoticz.com/forum/viewtopic.php?f=28&amp;amp;t=16843&lt;br /&gt;
[[Category:Plugins]]&lt;/div&gt;</summary>
		<author><name>Walter vl</name></author>
	</entry>
</feed>