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 »

Does your device is powered ?
Are you sure that your phone or tablet isn't connected to the raam Links ?
How many playbulb device (hardware page) have you on domoticz ?
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 »

deennoo wrote:Does your device is powered ?
Are you sure that your phone or tablet isn't connected to the raam Links ?
How many playbulb device (hardware page) have you on domoticz ?
I have 5 PlayBulbs in Domoticz, not connected in app (removed it from iPhone, and they are not in bluetooth list as well)

I can use the bulbs normal thats the strange thing.

Activate Status: TRUE or FALSE it doesn't matter. Still got the errors:

All Mac adresses are correct.

Code: Select all

2017-05-14 15:43:02.188 (Buiten) Error getting status
2017-05-14 15:43:02.212 (Buiten) Error connecting device - is it up ? (btle error code : 1)
2017-05-14 15:43:06.969 (Muur Rechts) Error getting status
2017-05-14 15:43:06.992 (Muur Rechts) Error connecting device - is it up ? (btle error code : 1)
2017-05-14 15:43:12.264 (Muur Links) Error getting status
2017-05-14 15:43:12.288 (Muur Links) Error connecting device - is it up ? (btle error code : 1)
2017-05-14 15:43:17.068 (Raam Rechts) Error getting status
2017-05-14 15:43:17.092 (Raam Rechts) Error connecting device - is it up ? (btle error code : 1)
2017-05-14 15:43:26.111 Hardware Monitor: Fetching data (System sensors)
2017-05-14 15:43:38.225 (Raam Links) Error getting status
2017-05-14 15:43:38.250 (Raam Links) Error connecting device - is it up ? (btle error code : 1)
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 »

When the bulbs are switched on by domoticz, i still get the errors as well... Even when they are on.
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 »

i will check this

thk's
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 »

zaraki673 wrote:i will check this

thk's
great thanks and hope you will find out what it can be :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 »

I see many problems accure now with the bulbs. Seems bluetooth disconnect the connection. When a scene has to be start, first domoticz need to reconnect first and then the action.

Now i see that it don't connect anymore. I have to restart domoticz, sometimes restart OS at all. Then use rfkill unblock all to unblock bluetooth and then wait until domoticz connects all bulbs normal...

Can this be the problem of my earlier error?

Code: Select all

2017-05-28 09:08:55.439  (Raam Rechts) Calling message handler 'onHeartbeat'.
2017-05-28 09:08:55.479  (Raam Rechts) Error getting status
2017-05-28 09:08:55.503  (Raam Rechts) Error connecting device - is it up ? (btle error code : 1)
2017-05-28 09:08:55.654  (Muur Links) Calling message handler 'onHeartbeat'.
2017-05-28 09:08:55.707  (Muur Links) Error getting status
2017-05-28 09:08:55.731  (Muur Links) Error connecting device - is it up ? (btle error code : 1)
2017-05-28 09:08:55.832  (Muur Rechts) Calling message handler 'onHeartbeat'.
2017-05-28 09:08:55.887  (Muur Rechts) Error getting status
2017-05-28 09:08:55.912  (Muur Rechts) Error connecting device - is it up ? (btle error code : 1)
2017-05-28 09:08:56.012  (Buiten) Calling message handler 'onHeartbeat'.
2017-05-28 09:08:56.075  (Buiten) Error getting status
2017-05-28 09:08:56.099  (Buiten) Error connecting device - is it up ? (btle error code : 1)
2017-05-28 09:08:56.199  (Raam Links) Calling message handler 'onHeartbeat'.
2017-05-28 09:08:56.262  (Raam Links) Error getting status
2017-05-28 09:08:56.287  (Raam Links) Error connecting device - is it up ? (btle error code : 1)
Is there a way to hold the connection alive... so it never disconnect again? Im having : Activate Status: True on.
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 »

To be sure it is not the config or some other problems. I created a second config , full clear install Domoticz, and put only the bluetooth bulb in. The error of BTLE ERROR still there. So a clear install didn't solve the problem as well...

(EDIT) 16:17: Did also al full clear install Rasbian, Domoticz, and got same errors even more:

mei 29 16:11:11 RPi3 domoticz[656]: Error: Domoticz received fatal signal 11 !...
mei 29 16:11:11 RPi3 domoticz[656]: Error: /home/pi/domoticz/domoticz() [0x1c7df4]
mei 29 16:11:11 RPi3 domoticz[656]: Error: /home/pi/domoticz/domoticz(_Z14signal_handleri+0x58) [0x1c7eac]
mei 29 16:11:11 RPi3 domoticz[656]: Error: /lib/arm-linux-gnueabihf/libc.so.6(__default_sa_restorer_v2+0) [0x76a9b180]
mei 29 16:11:11 RPi3 domoticz[656]: Error: /home/pi/domoticz/domoticz(_ZStplIcSt11char_traitsIcESaIcEESbIT_T0_T1_EPKS3_RKS6_+0x28) [0x1c49e0]
mei 29 16:11:11 RPi3 domoticz[656]: Error: /home/pi/domoticz/domoticz() [0x48153c]

When i want change something about the setting of a bulb in hardware section
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 »

Domoticz has change something so the script won't work in latest beta, check Python framework breaking change - advance warning

https://github.com/domoticz/domoticz/pull/1571

http://www.domoticz.com/forum/viewtopic ... 4&p=135840

Verzonden vanaf mijn iPhone met Tapatalk Pro
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 »

any news for a updated version with new python script? :roll:
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 »

code updated ;)
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 »

Tried it with latest beta update but whole plugin is not visible.
I will try later again. Have 2 versions on RPi

1) - Domoticz version installed by: sudo curl -L install.domoticz.com | sudo bash
2) - Domoticz version installed by: git clone https://github.com/domoticz/domoticz.git dev-domoticz

The plugin not work with option 1 updated to beta
Have to backup everything to switch to beta with option 2 and try.
Now running 3.5876 perfectly, so don't wanna break it down.
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 »

Plugin work. But when you shutdown Domoticz it gives errors:

Code: Select all

2017-06-07 10:37:23.176  Error: (Raam Rechts) 'onStop' failed 'BrokenPipeError'.
2017-06-07 10:37:23.176  Error: (Raam Rechts) ----> Line 399 in /home/pi/dev-domoticz/plugins/Mipow/plugin.py, function onStop
2017-06-07 10:37:23.176  Error: (Raam Rechts) ----> Line 165 in /home/pi/dev-domoticz/plugins/Mipow/plugin.py, function onStop
2017-06-07 10:37:23.176  Error: (Raam Rechts) ----> Line 577 in /home/pi/dev-domoticz/plugins/Mipow/plugin.py, function disconnect
2017-06-07 10:37:23.176  Error: (Raam Rechts) ----> Line 416 in /usr/lib/python3.4/bluepy/btle.py, function disconnect
2017-06-07 10:37:23.177  Error: (Raam Rechts) ----> Line 268 in /usr/lib/python3.4/bluepy/btle.py, function _writeCmd
Exception ignored in: <module 'threading' from '/usr/lib/python3.4/threading.py'>
Traceback (most recent call last):
  File "/usr/lib/python3.4/threading.py", line 1292, in _shutdown
    t = _pickSomeNonDaemonThread()
  File "/usr/lib/python3.4/threading.py", line 1299, in _pickSomeNonDaemonThread
    for t in enumerate():
  File "/usr/lib/python3.4/threading.py", line 1269, in enumerate
    return list(_active.values()) + list(_limbo.values())
TypeError: bad argument type for built-in operation
2017-06-07 10:37:23.521  (Raam Rechts) Exiting work loop...
2017-06-07 10:37:23.522  (Raam Rechts) Stopped.
2017-06-07 10:37:23.541  Error: (Raam Links) 'onStop' failed 'BrokenPipeError'.
2017-06-07 10:37:23.542  Error: (Raam Links) ----> Line 399 in /home/pi/dev-domoticz/plugins/Mipow/plugin.py, function onStop
2017-06-07 10:37:23.542  Error: (Raam Links) ----> Line 165 in /home/pi/dev-domoticz/plugins/Mipow/plugin.py, function onStop
2017-06-07 10:37:23.542  Error: (Raam Links) ----> Line 577 in /home/pi/dev-domoticz/plugins/Mipow/plugin.py, function disconnect
2017-06-07 10:37:23.542  Error: (Raam Links) ----> Line 416 in /usr/lib/python3.4/bluepy/btle.py, function disconnect
2017-06-07 10:37:23.542  Error: (Raam Links) ----> Line 268 in /usr/lib/python3.4/bluepy/btle.py, function _writeCmd
Exception ignored in: <module 'threading' from '/usr/lib/python3.4/threading.py'>
Traceback (most recent call last):
  File "/usr/lib/python3.4/threading.py", line 1292, in _shutdown
    t = _pickSomeNonDaemonThread()
  File "/usr/lib/python3.4/threading.py", line 1299, in _pickSomeNonDaemonThread
    for t in enumerate():
  File "/usr/lib/python3.4/threading.py", line 1269, in enumerate
    return list(_active.values()) + list(_limbo.values())
TypeError: bad argument type for built-in operation
2017-06-07 10:37:23.771  (Raam Links) Exiting work loop...
2017-06-07 10:37:23.771  (Raam Links) Stopped.
2017-06-07 10:37:23.809  Error: (Muur Links) 'onStop' failed 'BrokenPipeError'.
2017-06-07 10:37:23.809  Error: (Muur Links) ----> Line 399 in /home/pi/dev-domoticz/plugins/Mipow/plugin.py, function onStop
2017-06-07 10:37:23.809  Error: (Muur Links) ----> Line 165 in /home/pi/dev-domoticz/plugins/Mipow/plugin.py, function onStop
2017-06-07 10:37:23.809  Error: (Muur Links) ----> Line 577 in /home/pi/dev-domoticz/plugins/Mipow/plugin.py, function disconnect
2017-06-07 10:37:23.809  Error: (Muur Links) ----> Line 416 in /usr/lib/python3.4/bluepy/btle.py, function disconnect
2017-06-07 10:37:23.809  Error: (Muur Links) ----> Line 268 in /usr/lib/python3.4/bluepy/btle.py, function _writeCmd
Exception ignored in: <module 'threading' from '/usr/lib/python3.4/threading.py'>
Traceback (most recent call last):
  File "/usr/lib/python3.4/threading.py", line 1292, in _shutdown
    t = _pickSomeNonDaemonThread()
  File "/usr/lib/python3.4/threading.py", line 1299, in _pickSomeNonDaemonThread
    for t in enumerate():
  File "/usr/lib/python3.4/threading.py", line 1269, in enumerate
    return list(_active.values()) + list(_limbo.values())
TypeError: bad argument type for built-in operation
2017-06-07 10:37:23.998  (Muur Links) Exiting work loop...
2017-06-07 10:37:23.999  (Muur Links) Stopped.
2017-06-07 10:37:24.013  Error: (Muur Rechts) 'onStop' failed 'BrokenPipeError'.
2017-06-07 10:37:24.013  Error: (Muur Rechts) ----> Line 399 in /home/pi/dev-domoticz/plugins/Mipow/plugin.py, function onStop
2017-06-07 10:37:24.013  Error: (Muur Rechts) ----> Line 165 in /home/pi/dev-domoticz/plugins/Mipow/plugin.py, function onStop
2017-06-07 10:37:24.013  Error: (Muur Rechts) ----> Line 577 in /home/pi/dev-domoticz/plugins/Mipow/plugin.py, function disconnect
2017-06-07 10:37:24.013  Error: (Muur Rechts) ----> Line 416 in /usr/lib/python3.4/bluepy/btle.py, function disconnect
2017-06-07 10:37:24.013  Error: (Muur Rechts) ----> Line 268 in /usr/lib/python3.4/bluepy/btle.py, function _writeCmd
Exception ignored in: <module 'threading' from '/usr/lib/python3.4/threading.py'>
Traceback (most recent call last):
  File "/usr/lib/python3.4/threading.py", line 1292, in _shutdown
    t = _pickSomeNonDaemonThread()
  File "/usr/lib/python3.4/threading.py", line 1299, in _pickSomeNonDaemonThread
    for t in enumerate():
  File "/usr/lib/python3.4/threading.py", line 1269, in enumerate
    return list(_active.values()) + list(_limbo.values())
TypeError: bad argument type for built-in operation
2017-06-07 10:37:24.232  (Muur Rechts) Exiting work loop...
2017-06-07 10:37:24.233  (Muur Rechts) Stopped.
2017-06-07 10:37:24.274  Error: (Buiten) 'onStop' failed 'BrokenPipeError'.
2017-06-07 10:37:24.274  Error: (Buiten) ----> Line 399 in /home/pi/dev-domoticz/plugins/Mipow/plugin.py, function onStop
2017-06-07 10:37:24.274  Error: (Buiten) ----> Line 165 in /home/pi/dev-domoticz/plugins/Mipow/plugin.py, function onStop
2017-06-07 10:37:24.274  Error: (Buiten) ----> Line 577 in /home/pi/dev-domoticz/plugins/Mipow/plugin.py, function disconnect
2017-06-07 10:37:24.274  Error: (Buiten) ----> Line 416 in /usr/lib/python3.4/bluepy/btle.py, function disconnect
2017-06-07 10:37:24.274  Error: (Buiten) ----> Line 268 in /usr/lib/python3.4/bluepy/btle.py, function _writeCmd
Exception ignored in: <module 'threading' from '/usr/lib/python3.4/threading.py'>
Traceback (most recent call last):
  File "/usr/lib/python3.4/threading.py", line 1292, in _shutdown
    t = _pickSomeNonDaemonThread()
  File "/usr/lib/python3.4/threading.py", line 1299, in _pickSomeNonDaemonThread
    for t in enumerate():
  File "/usr/lib/python3.4/threading.py", line 1269, in enumerate
    return list(_active.values()) + list(_limbo.values())
TypeError: bad argument type for built-in operation
2017-06-07 10:37:24.464  (Buiten) Exiting work loop...
2017-06-07 10:37:24.464  (Buiten) Stopped.
2017-06-07 10:37:24.496  Error: (Hal) 'onStop' failed 'BrokenPipeError'.
2017-06-07 10:37:24.496  Error: (Hal) ----> Line 399 in /home/pi/dev-domoticz/plugins/Mipow/plugin.py, function onStop
2017-06-07 10:37:24.496  Error: (Hal) ----> Line 165 in /home/pi/dev-domoticz/plugins/Mipow/plugin.py, function onStop
2017-06-07 10:37:24.496  Error: (Hal) ----> Line 577 in /home/pi/dev-domoticz/plugins/Mipow/plugin.py, function disconnect
2017-06-07 10:37:24.496  Error: (Hal) ----> Line 416 in /usr/lib/python3.4/bluepy/btle.py, function disconnect
2017-06-07 10:37:24.497  Error: (Hal) ----> Line 268 in /usr/lib/python3.4/bluepy/btle.py, function _writeCmd
Exception ignored in: <module 'threading' from '/usr/lib/python3.4/threading.py'>
Traceback (most recent call last):
  File "/usr/lib/python3.4/threading.py", line 1292, in _shutdown
    t = _pickSomeNonDaemonThread()
  File "/usr/lib/python3.4/threading.py", line 1299, in _pickSomeNonDaemonThread
    for t in enumerate():
  File "/usr/lib/python3.4/threading.py", line 1269, in enumerate
    return list(_active.values()) + list(_limbo.values())
TypeError: bad argument type for built-in operation
And those errors are still there also:

Code: Select all

jun 07 10:56:16 raspberrypi domoticz[2261]: (Raam Rechts) Error getting status
jun 07 10:56:16 raspberrypi domoticz[2261]: (Raam Rechts) Error connecting device - is it up ? (btle error code : 1)
jun 07 10:56:16 raspberrypi domoticz[2261]: (Raam Links) Error getting status
jun 07 10:56:16 raspberrypi domoticz[2261]: (Raam Links) Error connecting device - is it up ? (btle error code : 1)
jun 07 10:56:16 raspberrypi domoticz[2261]: (Muur Links) Error getting status
jun 07 10:56:16 raspberrypi domoticz[2261]: (Muur Links) Error connecting device - is it up ? (btle error code : 1)
jun 07 10:56:17 raspberrypi domoticz[2261]: (Muur Rechts) Error getting status
jun 07 10:56:17 raspberrypi domoticz[2261]: (Muur Rechts) Error connecting device - is it up ? (btle error code : 1)
jun 07 10:56:17 raspberrypi domoticz[2261]: (Buiten) Error getting status
jun 07 10:56:17 raspberrypi domoticz[2261]: (Buiten) Error connecting device - is it up ? (btle error code : 1)
jun 07 10:56:17 raspberrypi domoticz[2261]: (Hal) Error getting status
jun 07 10:56:17 raspberrypi domoticz[2261]: (Hal) Error connecting device - is it up ? (btle error code : 1)
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 »

ok, thk's

will publish a new version this night
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 »

Did some test in Domoticz 3.7681 with colotpicker-dev plugin

Removed all hardware of Mipow
updated the plugin
start domoticz, add spot again.
But it doesn’t work.
Did some test in Domoticz 3.7681 with rugby plugin

Removed all hardware of Mipow
updated the plugin
start domoticz, add spot again.
does work correct. only see the errors: (Hal) Error connecting device - is it up ? (btle error code : 1)
When i stop domoticz i get this error:

Code: Select all

2017-06-08 08:35:45.746 Error: (Hal) 'onStop' failed 'BrokenPipeError'.
2017-06-08 08:35:45.746 Error: (Hal) ----> Line 399 in /home/pi/dev-domoticz/plugins/Mipow/plugin.py, function onStop
2017-06-08 08:35:45.746 Error: (Hal) ----> Line 165 in /home/pi/dev-domoticz/plugins/Mipow/plugin.py, function onStop
2017-06-08 08:35:45.746 Error: (Hal) ----> Line 574 in /home/pi/dev-domoticz/plugins/Mipow/plugin.py, function disconnect
2017-06-08 08:35:45.746 Error: (Hal) ----> Line 416 in /usr/lib/python3.4/bluepy/btle.py, function disconnect
2017-06-08 08:35:45.746 Error: (Hal) ----> Line 268 in /usr/lib/python3.4/bluepy/btle.py, function _writeCmd
Exception ignored in: <module 'threading' from '/usr/lib/python3.4/threading.py'>
Traceback (most recent call last):
File "/usr/lib/python3.4/threading.py", line 1292, in _shutdown
t = _pickSomeNonDaemonThread()
File "/usr/lib/python3.4/threading.py", line 1299, in _pickSomeNonDaemonThread
for t in enumerate():
File "/usr/lib/python3.4/threading.py", line 1269, in enumerate
return list(_active.values()) + list(_limbo.values())
TypeError: bad argument type for built-in operation
2017-06-08 08:35:45.956 (Hal) Exiting work loop...
2017-06-08 08:35:45.957 (Hal) Stopped.
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 »

oki, this error should be a handles code error (for rgb), for colorpicker i will check again :(
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 »

zaraki673 wrote:oki, this error should be a handles code error (for rgb), for colorpicker i will check again :(
Ok. let me know when you updated it, then i gonna test it :)

Thanks already for the scripting :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 »

any news ? :P
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 »

Are there more people who using the Mipow LED Bulbs ?

Wondering how many people use them. I have almost replace all bulbs with Mipow :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 »

Hi All,

In latest stable Domoticz v.3.8153 the latest plugin from GitHub v1.0.2 when i add all the bulbs everything work great.
All bulbs are doing what expected. Until when you do a restart of Domoticz. You get several errors sometimes with error lines sometimes not.

The Colorpicker version of v.1.0.2 its working correct. All bulbs start and domoticz won't crash. Only you can't use the colorpicker in Scenes etc. So not the best solution to use at moment.

Code: Select all

Segmentation fault

Code: Select all

2017-09-09 13:00:18.745  Error: Domoticz received fatal signal 11 while backtracing !...
2017-09-09 13:00:18.746  Error:   /home/pi/domoticz/domoticz() [0x1cdc48]
2017-09-09 13:00:18.747  Error:   /home/pi/domoticz/domoticz(_Z14signal_handleri+0x58) [0x1cdd00]
2017-09-09 13:00:18.747  Error:   /lib/arm-linux-gnueabihf/libc.so.6(__default_sa_restorer_v2+0) [0x76ab7180]
2017-09-09 15:21:21.439  Error:   /lib/arm-linux-gnueabihf/libc.so.6(gsignal+0x38) [0x76a6bf70]

Code: Select all

2017-09-09 15:21:21.437  Error: Domoticz received fatal signal 6 !...
2017-09-09 15:21:21.439  Error:   /home/pi/domoticz/domoticz() [0x1cdc48]
2017-09-09 15:21:21.439  Error:   /home/pi/domoticz/domoticz(_Z14signal_handleri+0x58) [0x1cdd00]
2017-09-09 15:21:21.439  Error:   /lib/arm-linux-gnueabihf/libc.so.6(__default_sa_restorer_v2+0) [0x76a6d180]
2017-09-09 15:21:21.439  Error:   /lib/arm-linux-gnueabihf/libc.so.6(gsignal+0x38) [0x76a6bf70]

Code: Select all

2017-09-10 16:49:19.346  Error:   /home/pi/domoticz/domoticz(_ZN7Plugins7CPlugin5StartEv+0xbb0) [0x497d5c]
2017-09-10 16:49:19.346  Error:   /home/pi/domoticz/domoticz(_ZN7Plugins13StartCallback7ProcessEv+0x14) [0x49ab6c]
2017-09-10 16:49:19.346  Error:   /home/pi/domoticz/domoticz(_ZN7Plugins13CPluginSystem7Do_WorkEv+0x2b4) [0x49bfac]
2017-09-10 16:49:19.346  Error:   /home/pi/domoticz/domoticz() [0x5b6730]

Code: Select all

2017-09-12 14:29:12.772  Error: (Raam Links) 'onStop' failed 'BrokenPipeError'.
2017-09-12 14:29:12.772  Error: (Raam Links) ----> Line 394 in /home/pi/domoticz/plugins/mipow-rgb/plugin.py, function onStop
2017-09-12 14:29:12.772  Error: (Raam Links) ----> Line 172 in /home/pi/domoticz/plugins/mipow-rgb/plugin.py, function onStop
2017-09-12 14:29:12.772  Error: (Raam Links) ----> Line 559 in /home/pi/domoticz/plugins/mipow-rgb/plugin.py, function disconnect
2017-09-12 14:29:12.772  Error: (Raam Links) ----> Line 416 in /usr/lib/python3.4/bluepy/btle.py, function disconnect
2017-09-12 14:29:12.772  Error: (Raam Links) ----> Line 268 in /usr/lib/python3.4/bluepy/btle.py, function _writeCmd
Exception ignored in: <module 'threading' from '/usr/lib/python3.4/threading.py'>
Traceback (most recent call last):
  File "/usr/lib/python3.4/threading.py", line 1292, in _shutdown
    t = _pickSomeNonDaemonThread()
  File "/usr/lib/python3.4/threading.py", line 1299, in _pickSomeNonDaemonThread
    for t in enumerate():
  File "/usr/lib/python3.4/threading.py", line 1269, in enumerate
    return list(_active.values()) + list(_limbo.values())
TypeError: bad argument type for built-in operation

Code: Select all

2017-09-16 07:46:51.909  Error: (Hal) 'onStop' failed 'BrokenPipeError'.
2017-09-16 07:46:51.909  Error: (Hal) ----> Line 397 in /home/pi/domoticz/plugins/MipowTEST/plugin.py, function onStop
2017-09-16 07:46:51.910  Error: (Hal) ----> Line 175 in /home/pi/domoticz/plugins/MipowTEST/plugin.py, function onStop
2017-09-16 07:46:51.910  Error: (Hal) ----> Line 562 in /home/pi/domoticz/plugins/MipowTEST/plugin.py, function disconnect
2017-09-16 07:46:51.910  Error: (Hal) ----> Line 416 in /usr/lib/python3.4/bluepy/btle.py, function disconnect
2017-09-16 07:46:51.910  Error: (Hal) ----> Line 268 in /usr/lib/python3.4/bluepy/btle.py, function _writeCmd
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
joostnl
Posts: 68
Joined: Wednesday 03 February 2016 19:22
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by joostnl »

I am trying to use your plugin, only after instalaltion i get this warning in my log:

2017-09-28 19:05:25.366 Error: PluginList: Parsing '/home/pi/domoticz/plugins/Mipow/', 'Error document empty.' at line 0 column 0 in XML ''.

I also cannot connect my playbulb with the BAD app from Mipow tried 2 phones... I can find it with bluetooth on my phone and raspberry..

Can it be I use python 3.5? (i had to change the commands from the wiki to python3.5)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest