salt.modules.bluez

Support for Bluetooth (using Bluez in Linux)

salt.modules.bluez.address()

Get the many addresses of the Bluetooth adapter

CLI Example:

salt '*' bluetooth.address
salt.modules.bluez.pair(address, key)

Pair the bluetooth adapter with a device

CLI Example:

salt '*' bluetooth.pair DE:AD:BE:EF:CA:FE 1234

Where DE:AD:BE:EF:CA:FE is the address of the device to pair with, and 1234 is the passphrase.

salt.modules.bluez.scan()

Scan for bluetooth devices in the area

CLI Example:

salt '*' bluetooth.scan
salt.modules.bluez.start()

Start the bluetooth service.

CLI Example:

salt '*' bluetooth.start
salt.modules.bluez.stop()

Stop the bluetooth service.

CLI Example:

salt '*' bluetooth.stop
salt.modules.bluez.unpair(address)

Unpair the bluetooth adapter from a device

CLI Example:

salt '*' bluetooth.unpair DE:AD:BE:EF:CA:FE

Where DE:AD:BE:EF:CA:FE is the address of the device to unpair.

salt.modules.bluez.version()

Return Bluez version from bluetoothd -v

CLI Example:

salt '*' bluetoothd.version

Parent topic

Previous topic

salt.modules.augeas_cfg

Next topic

salt.modules.brew