Skip to content

Add Battery level sensor readout for satisfyer devices #787

@MaxMustermann31

Description

@MaxMustermann31

All satisfyer devices I tested expose a default bluetooth battery level service on 0000180f-0000-1000-8000-00805f9b34fb.

Adding

          {
            "feature-type": "Battery",
            "description": "Battery Level",
            "sensor": {
              "value-range": [
                [
                  0,
                  100
                ]
              ],
              "messages": [
                "SensorReadCmd"
              ]
            }
          }

to the features section (or for devices with more than one vibrator, to the respective override section) and

              "0000180f-0000-1000-8000-00805f9b34fb": {
                "rxblebattery": "00002a19-0000-1000-8000-00805f9b34fb"
              },

to the services section of the device configuration json worked fine to get the battery level readout working,

Metadata

Metadata

Labels

FeaturesNew things to add to the project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions