Hi again,
That was easy
. I got an error in the update process because it refused to override my config file. I decided to delete the current version and start all over again. Something strange happened, it worked!
So I tried another reboot and it didn't worked anymore. In the log everything seems fine, the process is running correct.
What it doesn't do is switch the switch that is created. I renamed it but that should be the problem I think? This is the content of the log file:
2017-12-15 11:25:26 - INFO - Ok hci0 interface Up n running !
2017-12-15 11:25:28 - DEBUG - new bt socket
2017-12-15 11:25:28 - DEBUG - Connected to bluetooth device hci0
2017-12-15 11:25:35 - INFO - ed:6a:79:4d:7f:76 RSSI -74 - NUT1
2017-12-15 11:25:35 - INFO - ed:6a:79:4d:7f:76 RSSI -78 - NUT1
2017-12-15 11:25:43 - INFO - ed:6a:79:4d:7f:76 RSSI -69 - NUT1
2017-12-15 11:25:47 - INFO - ed:6a:79:4d:7f:76 RSSI -78 - NUT1
2017-12-15 11:26:03 - INFO - ed:6a:79:4d:7f:76 RSSI -75 - NUT1
2017-12-15 11:26:07 - INFO - ed:6a:79:4d:7f:76 RSSI -75 - NUT1
2017-12-15 11:26:15 - INFO - ed:6a:79:4d:7f:76 RSSI -78 - NUT1
2017-12-15 11:26:23 - INFO - ed:6a:79:4d:7f:76 RSSI -69 - NUT1
2017-12-15 11:26:30 - INFO - ed:6a:79:4d:7f:76 RSSI -75 - NUT1
2017-12-15 11:26:34 - INFO - ed:6a:79:4d:7f:76 RSSI -70 - NUT1
2017-12-15 11:26:38 - INFO - ed:6a:79:4d:7f:76 RSSI -78 - NUT1
2017-12-15 11:26:42 - INFO - ed:6a:79:4d:7f:76 RSSI -75 - NUT1
2017-12-15 11:26:46 - INFO - ed:6a:79:4d:7f:76 RSSI -69 - NUT1
2017-12-15 11:26:50 - INFO - ed:6a:79:4d:7f:76 RSSI -79 - NUT1
2017-12-15 11:26:53 - INFO - ed:6a:79:4d:7f:76 RSSI -75 - NUT1
2017-12-15 11:26:57 - INFO - ed:6a:79:4d:7f:76 RSSI -69 - NUT1
I doesn't grow any further than this.
This is the log when I start the process in terminal:
pi@raspberrypi:~/domoticz/plugins/bt-presence $ sudo ./ble_scanner.py
2017-12-15 11:37:05 - INFO - Ok hci0 interface Up n running !
2017-12-15 11:37:07 - DEBUG - new bt socket
2017-12-15 11:37:07 - DEBUG - Connected to bluetooth device hci0
2017-12-15 11:37:15 - INFO - ed:6a:79:4d:7f:76 RSSI -78 - NUT1
2017-12-15 11:37:19 - INFO - ed:6a:79:4d:7f:76 RSSI -74 - NUT1
2017-12-15 11:37:27 - INFO - ed:6a:79:4d:7f:76 RSSI -74 - NUT1
2017-12-15 11:37:30 - INFO - ed:6a:79:4d:7f:76 RSSI -74 - NUT1
2017-12-15 11:37:38 - INFO - ed:6a:79:4d:7f:76 RSSI -80 - NUT1
2017-12-15 11:37:42 - INFO - ed:6a:79:4d:7f:76 RSSI -69 - NUT1
2017-12-15 11:37:50 - INFO - ed:6a:79:4d:7f:76 RSSI -74 - NUT1
2017-12-15 11:37:54 - INFO - ed:6a:79:4d:7f:76 RSSI -69 - NUT1
2017-12-15 11:37:57 - INFO - ed:6a:79:4d:7f:76 RSSI -78 - NUT1
2017-12-15 11:38:01 - INFO - ed:6a:79:4d:7f:76 RSSI -75 - NUT1
2017-12-15 11:38:05 - INFO - ed:6a:79:4d:7f:76 RSSI -69 - NUT1
2017-12-15 11:38:09 - INFO - ed:6a:79:4d:7f:76 RSSI -78 - NUT1
2017-12-15 11:38:13 - INFO - ed:6a:79:4d:7f:76 RSSI -75 - NUT1
2017-12-15 11:38:17 - INFO - ed:6a:79:4d:7f:76 RSSI -69 - NUT1
2017-12-15 11:38:21 - INFO - ed:6a:79:4d:7f:76 RSSI -78 - NUT1
2017-12-15 11:38:24 - INFO - ed:6a:79:4d:7f:76 RSSI -75 - NUT1
2017-12-15 11:38:28 - INFO - ed:6a:79:4d:7f:76 RSSI -69 - NUT1
2017-12-15 11:38:32 - INFO - ed:6a:79:4d:7f:76 RSSI -79 - NUT1
2017-12-15 11:38:36 - INFO - ed:6a:79:4d:7f:76 RSSI -75 - NUT1
2017-12-15 11:38:40 - INFO - ed:6a:79:4d:7f:76 RSSI -69 - NUT1
2017-12-15 11:38:44 - INFO - ed:6a:79:4d:7f:76 RSSI -78 - NUT1
2017-12-15 11:38:48 - INFO - ed:6a:79:4d:7f:76 RSSI -74 - NUT1
2017-12-15 11:38:51 - INFO - ed:6a:79:4d:7f:76 RSSI -80 - NUT1
2017-12-15 11:38:55 - INFO - ed:6a:79:4d:7f:76 RSSI -80 - NUT1
2017-12-15 11:38:59 - INFO - ed:6a:79:4d:7f:76 RSSI -74 - NUT1
This turns my switch on and doesn't stop.
I hope this helps to find a solution.
Thanks once more!
Rob