All Projects β†’ TionAPI β†’ tion_python

TionAPI / tion_python

Licence: LGPL-3.0 license
Python module for Tion

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to tion python

Core
🏑 Open source home automation that puts local control and privacy first.
Stars: ✭ 48,265 (+94537.25%)
Mutual labels:  home-automation, internet-of-things
Entity Controller
Entity and lighting controller for managing devices via timers, scripts, and sun-based time restrictions.
Stars: ✭ 156 (+205.88%)
Mutual labels:  home-automation, internet-of-things
Ha Floorplan
Floorplan for Home Assistant
Stars: ✭ 1,626 (+3088.24%)
Mutual labels:  home-automation, internet-of-things
Rpieasy
Easy MultiSensor device based on Raspberry PI
Stars: ✭ 85 (+66.67%)
Mutual labels:  home-automation, internet-of-things
Home Assistant
Home-Assistant-Config
Stars: ✭ 182 (+256.86%)
Mutual labels:  home-automation, internet-of-things
Psmqtt
Utility reporting system health and status via MQTT
Stars: ✭ 95 (+86.27%)
Mutual labels:  home-automation, internet-of-things
Openhab Ios
The repository of the iOS client
Stars: ✭ 141 (+176.47%)
Mutual labels:  home-automation, internet-of-things
Homeassistant
Example Home Assistant Configs
Stars: ✭ 846 (+1558.82%)
Mutual labels:  home-automation, internet-of-things
Broadlink Mqtt
MQTT client to control BroadLink devices
Stars: ✭ 169 (+231.37%)
Mutual labels:  home-automation, internet-of-things
Homeassistant
Example Home Assistant Configs
Stars: ✭ 168 (+229.41%)
Mutual labels:  home-automation, internet-of-things
Pysmartthings
A python library for interacting with the SmartThings cloud API build with asyncio and aiohttp.
Stars: ✭ 51 (+0%)
Mutual labels:  home-automation, internet-of-things
Netdisco
πŸ”Ž Python library to scan local network for services and devices.
Stars: ✭ 240 (+370.59%)
Mutual labels:  home-automation, internet-of-things
Home Assistant Config
🏠 My Home Assistant configuration, a bit different that others :) Be sure to 🌟 this repository for updates!
Stars: ✭ 1,050 (+1958.82%)
Mutual labels:  home-automation, internet-of-things
Home Assistant Js Websocket
🚑 JavaScript websocket client for Home Assistant
Stars: ✭ 100 (+96.08%)
Mutual labels:  home-automation, internet-of-things
Smarthome
Eclipse SmartHomeβ„’ project
Stars: ✭ 867 (+1600%)
Mutual labels:  home-automation, internet-of-things
Ha Tts Bluetooth Speaker
TTS Bluetooth Speaker for Home Assistant
Stars: ✭ 140 (+174.51%)
Mutual labels:  home-automation, internet-of-things
Coapnet
CoAPnet is a high performance .NET library for CoAP based communication. It provides a CoAP client and a CoAP server. It also has DTLS support out of the box.
Stars: ✭ 23 (-54.9%)
Mutual labels:  home-automation, internet-of-things
Home Assistant Config
Home Assistant config files, rewritten to use the latest features, 100+ documented automations, automatically generated ToC 🏠 πŸ€–
Stars: ✭ 926 (+1715.69%)
Mutual labels:  home-automation, internet-of-things
Home assistant files
Here are my Home Assistant configuration files
Stars: ✭ 159 (+211.76%)
Mutual labels:  home-automation, internet-of-things
Blynk Server
Blynk is an Internet of Things Platform aimed to simplify building mobile and web applications for the Internet of Things. Easily connect 400+ hardware models like Arduino, ESP8266, ESP32, Raspberry Pi and similar MCUs and drag-n-drop IOT mobile apps for iOS and Android in 5 minutes
Stars: ✭ 8 (-84.31%)
Mutual labels:  home-automation, internet-of-things

CI tests

About

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

Installation

pip3 install tion-btle

Usage

Use class according to the breezer type. For example for Tion S3 you should use

from tion_btle import S3 as Breezer

Documentation

Few notes about asyncio

get, set, pair, connect and disconnect methods are async. Use it in async loop:

init

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)

get

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

All models

  • state -- current breezer state (on/off)
  • heater -- current heater status (on/off)
  • heating -- is breezer heating right now (on/off). For example, if the output temerature is 25 and target temperature 21, then heater may be ON, but heating will be OFF
  • sound -- current sound mode (on/off)
  • mode -- current air source (depend on model: outside/recirculation for all plus mixed for S3)
  • out_temp -- air temperature at the outlet of the device
  • in_temp -- air temperature at the inlet to the device
  • heater_temp -- target temperature for device
  • fan_speed -- current fan speed (1..6)
  • filter_remain
  • time -- time when parameters were taken. May be different from the current time. Depends on breezer time for S3
  • request_error_code -- error code for the request (0 if all goes well)
  • code -- response code (200 if all goes well)
  • model -- breezer model (S3/Lite)

S3

This parameters are available only for S3:

  • productivity -- current flow in m^3/h
  • fw_version -- breezer firmware version
  • timer -- timer state (on/off)

Lite

This parameters are available only for Lite:

  • device_work_time
  • electronic_work_time
  • electronic_temp
  • co2_auto_control -- co2 auto control status (on/off). When breezer is used with MagicAir
  • filter_change_required -- is filter change required (on/off)
  • light -- light state (on/off)

set

Use set({parameter1: value, parameter2: value, ...}) to set breezer parameters that may be changed. It depends on the breezer model.

await device.set({
    'fan_speed': 4,
    'heater_temp': 21, 
    'heater': 'on' 
})

All models

  • state -- current breezer state (on/off)
  • heater -- current heater status (on/off)
  • sound -- current sound mode (on/off)
  • mode -- current air source (depend on model: outside/recirculation for all plus mixed for S3)
  • heater_temp -- target temperature for the device
  • fan_speed -- current fan speed (1..6)

Lite

This parameters may be set only for Tion Lite

  • light -- light state (on/off)
  • co2_auto_control -- co2 auto control status (on/off). When breezer is used with MagicAir

pair

To pair device turn breezer to pairing mode and call

await device.pair()
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].