{"action":"created","issue":{"url":"https://api.github.com/repos/sputnikdev/bluetooth-gatt-parser/issues/8","repository_url":"https://api.github.com/repos/sputnikdev/bluetooth-gatt-parser","labels_url":"https://api.github.com/repos/sputnikdev/bluetooth-gatt-parser/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/sputnikdev/bluetooth-gatt-parser/issues/8/comments","events_url":"https://api.github.com/repos/sputnikdev/bluetooth-gatt-parser/issues/8/events","html_url":"https://github.com/sputnikdev/bluetooth-gatt-parser/issues/8","id":357845948,"node_id":"MDU6SXNzdWUzNTc4NDU5NDg=","number":8,"title":"Soma blinds ","user":{"login":"CrispinP","id":27884877,"node_id":"MDQ6VXNlcjI3ODg0ODc3","avatar_url":"https://avatars1.githubusercontent.com/u/27884877?v=4","gravatar_id":"","url":"https://api.github.com/users/CrispinP","html_url":"https://github.com/CrispinP","followers_url":"https://api.github.com/users/CrispinP/followers","following_url":"https://api.github.com/users/CrispinP/following{/other_user}","gists_url":"https://api.github.com/users/CrispinP/gists{/gist_id}","starred_url":"https://api.github.com/users/CrispinP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CrispinP/subscriptions","organizations_url":"https://api.github.com/users/CrispinP/orgs","repos_url":"https://api.github.com/users/CrispinP/repos","events_url":"https://api.github.com/users/CrispinP/events{/privacy}","received_events_url":"https://api.github.com/users/CrispinP/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-09-06T22:06:58Z","updated_at":"2018-09-12T05:59:45Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nedit: I removed the weird copy/paste stuff above :)\r\n\r\nCould someone help with the gatt files? The binding is picking up the Soma Blinds but does not seem to be using the gatt files and showing the rest of the characteristics\r\n\r\nI’ve got it in a folder which has access by openhab user. Folder is alongside the items and things folders.\r\n\r\norg.bluetooth.characteristic.blind_position.xml\r\n\r\n```\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?><!--Copyright 2011 Bluetooth SIG, Inc. All rights reserved.-->\r\n<Characteristic xsi:noNamespaceSchemaLocation=\"http://schemas.bluetooth.org/Documents/characteristic.xsd\"\r\n                xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" name=\"Blind Position\"\r\n                type=\"org.bluetooth.characteristic.blind_position\" uuid=\"1525\" last-modified=\"2011-12-05\"\r\n                approved=\"No\">\r\n    <InformativeText>\r\n        <Abstract>\r\n\t\t\tPosition of blinds\r\n        </Abstract>\r\n    </InformativeText>\r\n    <Value>\r\n        <Field name=\"Position\">\r\n            <Requirement>Mandatory</Requirement>\r\n            <Format>uint8</Format>\r\n            <Unit>org.bluetooth.unit.percentage</Unit>\r\n            <Minimum>0</Minimum>\r\n            <Maximum>100</Maximum>\r\n            <Enumerations>\r\n                <Reserved start=\"101\" end=\"255\"/>\r\n            </Enumerations>\r\n        </Field>\r\n    </Value>\r\n</Characteristic>\r\n\r\n```\r\norg.bluetooth.service.blind_position.xml\r\n\r\n```\r\n<Service xsi:noNamespaceSchemaLocation=\"http://schemas.bluetooth.org/Documents/service.xsd\"\r\n         xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" name=\"Soma Blinds\"\r\n         type=\"org.bluetooth.service.blind_position\" uuid=\"1861\" last-modified=\"2018-09-06\">\r\n<InformativeText>\r\n    <Abstract>\r\n        Soma Blinds control\r\n    </Abstract>\r\n    <Summary>\r\n        Controller for Soma Blinds\r\n    </Summary>\r\n</InformativeText>\r\n<Dependencies>\r\n    <Dependency>This service has no dependencies on other GATT-based services.</Dependency>\r\n</Dependencies>\r\n<GATTRequirements>\r\n    <Requirement subProcedure=\"Write Characteristic Value\">Mandatory</Requirement>\r\n    <Requirement subProcedure=\"Notification\">Mandatory</Requirement>\r\n    <Requirement subProcedure=\"Read Characteristic Descriptors\">Mandatory</Requirement>\r\n    <Requirement subProcedure=\"Write Characteristic Descriptors\">Mandatory</Requirement>\r\n</GATTRequirements>\r\n<Transports>\r\n    <Classic>false</Classic>\r\n    <LowEnergy>true</LowEnergy>\r\n</Transports>\r\n<ErrorCodes>\r\n</ErrorCodes>\r\n<Characteristics>\r\n    <Characteristic name=\"Blind Position\"\r\n                    type=\"org.bluetooth.characteristic.blind_position\">\r\n        <InformativeText>Blind control\r\n        </InformativeText>\r\n        <Requirement>Mandatory</Requirement>\r\n        <Properties>\r\n            <Read>Excluded</Read>\r\n            <Write>Excluded</Write>\r\n            <WriteWithoutResponse>Excluded</WriteWithoutResponse>\r\n            <SignedWrite>Excluded</SignedWrite>\r\n            <ReliableWrite>Excluded</ReliableWrite>\r\n            <Notify>Excluded</Notify>\r\n            <Indicate>Mandatory</Indicate>\r\n            <WritableAuxiliaries>Excluded</WritableAuxiliaries>\r\n            <Broadcast>Excluded</Broadcast>\r\n        </Properties>\r\n    </Characteristic>\r\n</Characteristics>\r\n</Service>\r\n\r\n```\r\nThe blinds have 4 characteristics - I’ve just tried to get the one working thus far.\r\nfrom a python file I currently use control.py -\r\n\r\n# battery\r\nBATTERY_SERVICE_UUID \t\t\t\t\t= \"0000180f-0000-1000-8000-00805f9b34fb\".lower()\r\nBATTERY_CHARACTERISTIC_UUID \t\t\t= \"00002a19-0000-1000-8000-00805f9b34fb\".lower()\r\n\r\n# motor control\r\nMOTOR_SERVICE_UUID \t\t\t\t\t\t= \"00001861-B87F-490C-92CB-11BA5EA5167C\".lower()\r\nMOTOR_STATE_CHARACTERISTIC_UUID \t\t= \"00001525-B87F-490C-92CB-11BA5EA5167C\".lower()\r\nMOTOR_CONTROL_CHARACTERISTIC_UUID \t\t= \"00001530-B87F-490C-92CB-11BA5EA5167C\".lower()\r\nMOTOR_TARGET_CHARACTERISTIC_UUID \t\t= \"00001526-B87F-490C-92CB-11BA5EA5167C\".lower()\r\nMOTOR_MOVE_UP = 69\r\nMOTOR_MOVE_DOWN = 96\r\n\r\nOriginal py file is here https://github.com/paolotremadio/SOMA-Smart-Shades-HTTP-API\r\n\r\nThanks \r\n"},"comment":{"url":"https://api.github.com/repos/sputnikdev/bluetooth-gatt-parser/issues/comments/420522116","html_url":"https://github.com/sputnikdev/bluetooth-gatt-parser/issues/8#issuecomment-420522116","issue_url":"https://api.github.com/repos/sputnikdev/bluetooth-gatt-parser/issues/8","id":420522116,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDUyMjExNg==","user":{"login":"CrispinP","id":27884877,"node_id":"MDQ6VXNlcjI3ODg0ODc3","avatar_url":"https://avatars1.githubusercontent.com/u/27884877?v=4","gravatar_id":"","url":"https://api.github.com/users/CrispinP","html_url":"https://github.com/CrispinP","followers_url":"https://api.github.com/users/CrispinP/followers","following_url":"https://api.github.com/users/CrispinP/following{/other_user}","gists_url":"https://api.github.com/users/CrispinP/gists{/gist_id}","starred_url":"https://api.github.com/users/CrispinP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CrispinP/subscriptions","organizations_url":"https://api.github.com/users/CrispinP/orgs","repos_url":"https://api.github.com/users/CrispinP/repos","events_url":"https://api.github.com/users/CrispinP/events{/privacy}","received_events_url":"https://api.github.com/users/CrispinP/received_events","type":"User","site_admin":false},"created_at":"2018-09-12T05:59:45Z","updated_at":"2018-09-12T05:59:45Z","author_association":"NONE","body":"Ok, I changed the location to be the same as yours (remove any doubt). I chmod 777 it as well. \r\nI then double-checked, changed and saved the binding settings. I see this in the log:\r\n\r\n> \r\n06:56:15.274 [INFO ] [smarthome.event.InboxRemovedEvent    ] - Discovery Result with UID 'bluetooth:adapter:B827EB5EF917' has been removed.\r\n06:56:15.293 [WARN ] [oth.manager.impl.BluetoothManagerImpl] - Disposing Bluetooth manager: 1301051\r\n06:56:15.422 [WARN ] [.impl.AbstractBluetoothObjectGovernor] - Disposing governor: /B8:27:EB:5E:F9:17/F3:95:30:3E:DD:4A\r\n06:56:15.526 [WARN ] [.impl.AbstractBluetoothObjectGovernor] - Disposing governor: /B8:27:EB:5E:F9:17/C1:03:74:91:05:6C\r\n06:56:15.633 [WARN ] [.impl.AbstractBluetoothObjectGovernor] - Disposing governor: /B8:27:EB:5E:F9:17\r\n06:56:15.748 [INFO ] [spec.BluetoothGattSpecificationReader] - Reading services and characteristics from folder: /home/pi/.bluetooth_smart\r\n06:56:15.897 [INFO ] [spec.BluetoothGattSpecificationReader] - Reading services from folder: /home/pi/.bluetooth_smart/service\r\n06:56:16.194 [INFO ] [spec.BluetoothGattSpecificationReader] - Reading characteristics from folder: /home/pi/.bluetooth_smart/characteristic\r\n\r\n\r\nSo it is reading the directory. Should it be listing the services and characteristics listed in there?\r\nAre my files mal-formed?\r\n\r\n\r\nThanks for the help!"}}
{"actor":{"display_login":"CrispinP"}}