Bluetooth comet blue - Auth./Pin error

Hi all,

I’m currently running openHAB 2.3.0-1 (Release Build) on my raspi2 and are connected via a bluetooth dongle to my Comet Blue bluetooth radiator thermostat.
I can read , with openhab, all parameters which don’t require the PIN but for those where a Pin is required I alsways get an error message like you can see below.
With Gatttool it is no problem to read all parameter after writing Pin to the correct handle.

There is an option to enter a PIN under
Configuration - Things - Edit - Comet Blue
but I’m not able to find the correct string there at least for the Standard PIN 0.

Can someone let me know/explain how to enter the Pin there?

Many thank in advance!!!

Device pin code definition in the following format: characteristic UUID=pin code. For example:

decimal number: 0000eee3-0000-1000-8000-00805f9b34fb=7638516547981525249
hex array: 0000eee3-0000-1000-8000-00805f9b34fb=[01, c1, 61, 6d, 54, 76, 01, 6a]

2018-11-22 10:08:01.937 [WARN ] [handler.AutomaticPinCodeAuthProvider] - Could not find ‘Pin Code’ field
2018-11-22 10:08:01.954 [WARN ] [handler.AutomaticPinCodeAuthProvider] - Could not find ‘Auth Status’ field
2018-11-22 10:08:01.969 [WARN ] [handler.AutomaticPinCodeAuthProvider] - Pin code value is not found. Authentication won’t be performed. tinyb:/00 :1A:7D:DA:71:13/3C:A3:08:01:AB:74/47e9ee00-47e9-11e4-8939-164230d1df67/47e9ee30-47e9-11e4-8939-164230d1df67

Here’s issue on github for added support with some basic instructions that might help. https://github.com/sputnikdev/eclipse-smarthome-bluetooth-binding/issues/14

Hi,
i went to this github several times - but I was still not able to find the right solution :frowning:

Have you tried creating an XML file per the link?

many thanks for your help - I use the following xml

[20:35:36] openhabian@openHABianPi:/home/pi/.bluetooth_smart$ ls * -la
characteristic:
total 100
drwxr-xr-x 2 openhab openhabian 4096 Nov 20 17:45 .
drwxrwxrwx 4 openhab root 4096 Nov 20 17:45 …
-rw-r–r-- 1 openhab openhabian 1027 Nov 19 16:02 org.eurotronic.cometblue.characteristic.battery_level.xml
-rw-r–r-- 1 openhab openhabian 789 Nov 19 16:02 org.eurotronic.cometblue.characteristic.datetime.xml
-rw-r–r-- 1 openhab openhabian 1129 Nov 19 16:02 org.eurotronic.cometblue.characteristic.holiday1.xml
-rw-r–r-- 1 openhab openhabian 1129 Nov 19 16:02 org.eurotronic.cometblue.characteristic.holiday2.xml
-rw-r–r-- 1 openhab openhabian 1129 Nov 19 16:02 org.eurotronic.cometblue.characteristic.holiday3.xml
-rw-r–r-- 1 openhab openhabian 1129 Nov 19 16:02 org.eurotronic.cometblue.characteristic.holiday4.xml
-rw-r–r-- 1 openhab openhabian 1129 Nov 19 16:02 org.eurotronic.cometblue.characteristic.holiday5.xml
-rw-r–r-- 1 openhab openhabian 1129 Nov 19 16:02 org.eurotronic.cometblue.characteristic.holiday6.xml
-rw-r–r-- 1 openhab openhabian 1129 Nov 19 16:02 org.eurotronic.cometblue.characteristic.holiday7.xml
-rw-r–r-- 1 openhab openhabian 1129 Nov 19 16:02 org.eurotronic.cometblue.characteristic.holiday8.xml
-rw-r–r-- 1 openhab openhabian 1171 Nov 19 16:02 org.eurotronic.cometblue.characteristic.lcd_timeout.xml
-rw-r–r-- 1 openhab openhabian 1070 Nov 19 16:02 org.eurotronic.cometblue.characteristic.pin_code.xml
-rw-r–r-- 1 openhab openhabian 1106 Nov 19 16:02 org.eurotronic.cometblue.characteristic.program_friday.xml
-rw-r–r-- 1 openhab openhabian 1106 Nov 19 16:02 org.eurotronic.cometblue.characteristic.program_monday.xml
-rw-r–r-- 1 openhab openhabian 1114 Nov 19 16:02 org.eurotronic.cometblue.characteristic.program_saturday.xml
-rw-r–r-- 1 openhab openhabian 1106 Nov 19 16:02 org.eurotronic.cometblue.characteristic.program_sunday.xml
-rw-r–r-- 1 openhab openhabian 1114 Nov 19 16:02 org.eurotronic.cometblue.characteristic.program_thursday.xml
-rw-r–r-- 1 openhab openhabian 1110 Nov 19 16:02 org.eurotronic.cometblue.characteristic.program_tuesday.xml
-rw-r–r-- 1 openhab openhabian 1118 Nov 19 16:02 org.eurotronic.cometblue.characteristic.program_wednesday.xml
-rw-r–r-- 1 openhab openhabian 5385 Nov 19 16:02 org.eurotronic.cometblue.characteristic.temperatures.xml
-rw-r–r-- 1 openhab openhabian 4270 Nov 19 16:02 org.eurotronic.cometblue.characteristic.valve_status.xml

service:
total 16
drwxr-xr-x 2 openhab openhabian 4096 Nov 20 17:45 .
drwxrwxrwx 4 openhab root 4096 Nov 20 17:45 …
-rw-r–r-- 1 openhab openhabian 4725 Nov 19 16:02 org.eurotronic.cometblue.service.xml

Your OH logs are good, no warn or error?

When I “turn on” channels requires Pin for read I receive the following WARN:

2018-11-23 08:42:47.283 [WARN ] [handler.AutomaticPinCodeAuthProvider] - Could not find ‘Pin Code’ field
2018-11-23 08:42:47.305 [WARN ] [handler.AutomaticPinCodeAuthProvider] - Could not find ‘Auth Status’ field
2018-11-23 08:42:47.321 [WARN ] [handler.AutomaticPinCodeAuthProvider] - Pin code value is not found. Authentication won’t be performed. tinyb:/00:1A:7D:DA:71:13/3C:A3:08:01:AB:74/47e9ee00-47e9-11e4-8939-164230d1df67/47e9ee30-47e9-11e4-8939-164230d1df67
2018-11-23 08:42:51.507 [INFO ] [tooth.handler.BluetoothDeviceHandler] - Building channels for services: 3
2018-11-23 08:43:00.720 [WARN ] [impl.AbstractBluetoothObjectGovernor] - Error occurred while interacting (read) with native object: /00:1A:7D:DA:71:13/3C:A3:08:01:AB:74/47e9ee00-47e9-11e4-8939-164230d1df67/47e9ee2c-47e9-11e4-8939-164230d1df67 : GDBus.Error:org.bluez.Error.NotPermitted: Read not permitted
2018-11-23 08:43:03.432 [WARN ] [anager.impl.CompletableFutureService] - Bluetooth error happened while competing a future: /XX:XX:XX:XX:XX:XX/3C:A3:08:01:AB:74/47e9ee00-47e9-11e4-8939-164230d1df67/47e9ee2c-47e9-11e4-8939-164230d1df67 : Error occurred while interacting (read) with native object: /00:1A:7D:DA:71:13/3C:A3:08:01:AB:74/47e9ee00-47e9-11e4-8939-164230d1df67/47e9ee2c-47e9-11e4-8939-164230d1df67 : GDBus.Error:org.bluez.Error.NotPermitted: Read not permitted
2018-11-23 08:43:03.473 [WARN ] [anager.impl.CompletableFutureService] - Error occurred while completing (silently) futures: Error occurred while interacting (read) with native object: /00:1A:7D:DA:71:13/3C:A3:08:01:AB:74/47e9ee00-47e9-11e4-8939-164230d1df67/47e9ee2c-47e9-11e4-8939-164230d1df67 : GDBus.Error:org.bluez.Error.NotPermitted: Read not permitted