This module will allow you to control your Tion S3 or Tion Lite breezer via bluetooth.
If you want to use MagicAir API please follow https://github.com/airens/tion
pip3 install tion-btle
Use class according to the breezer type. For example for Tion S3 you should use
from tion_btle import S3 as Breezer
get
, set
, pair
, connect
and disconnect
methods are async. Use it in async loop:
You must provide device's MAC-address to the constructor
from tion_btle import S3 as Breezer
mac: str=str("XX:XX:XX:XX:XX:XX")
device = Breezer(mac)
Use get()
function to get current state of the breezer.
It will return json with all available attributes.
print(await device.get())
Result will depend on the breezer model