bluetooth-gatt-parser
bluetooth-gatt-parser copied to clipboard
Support for Soma blinds
Support added for Soma blinds with gatt files.
Examples:
Number FrontRoomBlindsRight_Battery "Front room blinds - Right - Battery [%.0f %]" {channel="bluetooth:ble:C1037491056C:180F-2A19-level"}
Switch FrontRoomBlindsRight_Connected "Front room blinds - Right - Connected" {channel="bluetooth:ble:C1037491056C:connected"}
Switch FrontRoomBlindsRight_Online "Front room blinds - Right - Online" {channel="bluetooth:ble:C1037491056C:online"}
Number FrontRoomBlindsRight_Position "Front room blinds - Right - Position [%.0f %]" {channel="bluetooth:ble:C1037491056C:1861-1525-position"}
Number FrontRoomBlindsRight_Target "Front room blinds - Right - Target" {channel="bluetooth:ble:C1037491056C:1861-1526-target"}
Number FrontRoomBlindsRight_MotorControl "Front room blinds - Right - Motor" {channel="bluetooth:ble:C1037491056C:1861-1530-target"}
Number FrontRoomBlindsRight_RSSI "Front room blinds - Right - RSSI" {channel="bluetooth:ble:C1037491056C:rssi"}
Hi @CrispinP, you are nearly there. The build fails because 'type' attribute does not match to file name:
type="org.bluetooth.characteristic.somablind"
I'd suggest to name it (files and 'type' attribute) like
com.somasmarthome.blind.<char_name/or service_name>
This is just to prevent a big mess when ppl start to contribute more...
Ok, I'll get this changed asap and resubmit them. #FirstTimeOnGitHub :)