Caspia
  • Introduction
  • Configuration
  • Running Caspia Application
  • Modules
  • Meadow Protocol
  • Services
Caspia
  • Docs »
  • caspia.hapbridge.links package
  • View page source

caspia.hapbridge.links package¶

Submodules¶

caspia.hapbridge.links.base module¶

class caspia.hapbridge.links.base.BooleanLink(meadow, hap, default=None)[source]¶

Bases: caspia.hapbridge.links.base.CharacteristicLink

map_hap_to_meadow(value, **kwargs)[source]¶
map_meadow_to_hap(value, **kwargs)[source]¶
async on_hap_update(value, **kwargs)¶
async on_meadow_update(value, **kwargs)¶
async reload()¶
async setup()¶
class caspia.hapbridge.links.base.CharacteristicLink(meadow, hap, default=None)[source]¶

Bases: object

map_hap_to_meadow(value, **kwargs)[source]¶
map_meadow_to_hap(value, **kwargs)[source]¶
async on_hap_update(value, **kwargs)[source]¶
async on_meadow_update(value, **kwargs)[source]¶
async reload()[source]¶
async setup()[source]¶
class caspia.hapbridge.links.base.FloatLink(meadow, hap, default=None)[source]¶

Bases: caspia.hapbridge.links.base.CharacteristicLink

map_hap_to_meadow(value, **kwargs)[source]¶
map_meadow_to_hap(value, **kwargs)[source]¶
async on_hap_update(value, **kwargs)¶
async on_meadow_update(value, **kwargs)¶
async reload()¶
async setup()¶
class caspia.hapbridge.links.base.Link(bridge, md_service)[source]¶

Bases: object

static all()[source]¶
property dependant_services¶
meadow_service_type = None¶
async update()[source]¶
class caspia.hapbridge.links.base.PercentageFloatLink(meadow, hap, default=None)[source]¶

Bases: caspia.hapbridge.links.base.CharacteristicLink

map_hap_to_meadow(value, **kwargs)[source]¶
map_meadow_to_hap(value, **kwargs)[source]¶
async on_hap_update(value, **kwargs)¶
async on_meadow_update(value, **kwargs)¶
async reload()¶
async setup()¶
class caspia.hapbridge.links.base.PercentageIntLink(meadow, hap, default=None)[source]¶

Bases: caspia.hapbridge.links.base.CharacteristicLink

map_hap_to_meadow(value, **kwargs)[source]¶
map_meadow_to_hap(value, **kwargs)[source]¶
async on_hap_update(value, **kwargs)¶
async on_meadow_update(value, **kwargs)¶
async reload()¶
async setup()¶

caspia.hapbridge.links.blinds module¶

class caspia.hapbridge.links.blinds.BlindsAccessory(identifier, include=())[source]¶

Bases: aiohap.model.accessory.Accessory

category = 14¶
covering¶

alias of aiohap.services.WindowCovering

find_characteristic(iid)¶
handle_notify(func)¶
info¶

alias of aiohap.services.AccessoryInformation

notify(aid, iid, value)¶
async serialize(context, loop)¶
property services¶
class caspia.hapbridge.links.blinds.BlindsLink(bridge, md_service)[source]¶

Bases: caspia.hapbridge.links.base.Link

static all()¶
property dependant_services¶
meadow_service_type = 'blinds'¶
async update()¶

caspia.hapbridge.links.fan module¶

class caspia.hapbridge.links.fan.FanAccessory(identifier, include=())[source]¶

Bases: aiohap.model.accessory.Accessory

category = 3¶
fan¶

alias of aiohap.services.Fan

find_characteristic(iid)¶
handle_notify(func)¶
info¶

alias of aiohap.services.AccessoryInformation

notify(aid, iid, value)¶
async serialize(context, loop)¶
property services¶
class caspia.hapbridge.links.fan.FanLink(bridge, md_service)[source]¶

Bases: caspia.hapbridge.links.base.Link

static all()¶
property dependant_services¶
meadow_service_type = 'fan'¶
async update()¶

caspia.hapbridge.links.humidity module¶

class caspia.hapbridge.links.humidity.HumiditySensorAccessory(identifier, include=())[source]¶

Bases: aiohap.model.accessory.Accessory

category = 10¶
find_characteristic(iid)¶
handle_notify(func)¶
humidity¶

alias of aiohap.services.HumiditySensor

info¶

alias of aiohap.services.AccessoryInformation

notify(aid, iid, value)¶
async serialize(context, loop)¶
property services¶
class caspia.hapbridge.links.humidity.HumiditySensorLink(bridge, md_service)[source]¶

Bases: caspia.hapbridge.links.base.Link

static all()¶
property dependant_services¶
meadow_service_type = 'humidity-sensor'¶
async update()¶

caspia.hapbridge.links.light module¶

class caspia.hapbridge.links.light.LightAccessory(identifier, include=())[source]¶

Bases: aiohap.model.accessory.Accessory

category = 5¶
find_characteristic(iid)¶
handle_notify(func)¶
info¶

alias of aiohap.services.AccessoryInformation

light¶

alias of aiohap.services.Lightbulb

notify(aid, iid, value)¶
async serialize(context, loop)¶
property services¶
class caspia.hapbridge.links.light.LightLink(bridge, md_service)[source]¶

Bases: caspia.hapbridge.links.base.Link

static all()¶
property dependant_services¶
meadow_service_type = 'light'¶
async update()¶

caspia.hapbridge.links.lock module¶

class caspia.hapbridge.links.lock.LockMechanismAccessory(identifier, include=())[source]¶

Bases: aiohap.model.accessory.Accessory

category = 6¶
find_characteristic(iid)¶
handle_notify(func)¶
info¶

alias of aiohap.services.AccessoryInformation

lock¶

alias of aiohap.services.LockMechanism

notify(aid, iid, value)¶
async serialize(context, loop)¶
property services¶
class caspia.hapbridge.links.lock.LockMechanismLink(bridge, md_service)[source]¶

Bases: caspia.hapbridge.links.base.Link

static all()¶
property dependant_services¶
meadow_service_type = 'lock-mechanism'¶
async update()¶

caspia.hapbridge.links.outlet module¶

class caspia.hapbridge.links.outlet.OutletAccessory(identifier, include=())[source]¶

Bases: aiohap.model.accessory.Accessory

category = 7¶
find_characteristic(iid)¶
handle_notify(func)¶
info¶

alias of aiohap.services.AccessoryInformation

notify(aid, iid, value)¶
outlet¶

alias of aiohap.services.Outlet

async serialize(context, loop)¶
property services¶
class caspia.hapbridge.links.outlet.OutletLink(bridge, md_service)[source]¶

Bases: caspia.hapbridge.links.base.Link

static all()¶
property dependant_services¶
meadow_service_type = 'outlet'¶
async update()¶

caspia.hapbridge.links.switch module¶

class caspia.hapbridge.links.switch.SwitchAccessory(identifier, include=())[source]¶

Bases: aiohap.model.accessory.Accessory

category = 8¶
find_characteristic(iid)¶
handle_notify(func)¶
info¶

alias of aiohap.services.AccessoryInformation

notify(aid, iid, value)¶
async serialize(context, loop)¶
property services¶
switch¶

alias of aiohap.services.Switch

class caspia.hapbridge.links.switch.SwitchLink(bridge, md_service)[source]¶

Bases: caspia.hapbridge.links.base.Link

static all()¶
property dependant_services¶
meadow_service_type = 'switch'¶
async update()¶

caspia.hapbridge.links.temperature module¶

class caspia.hapbridge.links.temperature.TemperatureSensorAccessory(identifier, include=())[source]¶

Bases: aiohap.model.accessory.Accessory

category = 10¶
find_characteristic(iid)¶
handle_notify(func)¶
info¶

alias of aiohap.services.AccessoryInformation

notify(aid, iid, value)¶
async serialize(context, loop)¶
property services¶
temp¶

alias of aiohap.services.TemperatureSensor

class caspia.hapbridge.links.temperature.TemperatureSensorLink(bridge, md_service)[source]¶

Bases: caspia.hapbridge.links.base.Link

static all()¶
property dependant_services¶
meadow_service_type = 'temperature-sensor'¶
async update()¶

caspia.hapbridge.links.thermostat module¶

class caspia.hapbridge.links.thermostat.ThermostatAccessory(identifier, include=())[source]¶

Bases: aiohap.model.accessory.Accessory

category = 9¶
find_characteristic(iid)¶
handle_notify(func)¶
info¶

alias of aiohap.services.AccessoryInformation

notify(aid, iid, value)¶
async serialize(context, loop)¶
property services¶
thermostat¶

alias of aiohap.services.Thermostat

class caspia.hapbridge.links.thermostat.ThermostatLink(bridge, md_service)[source]¶

Bases: caspia.hapbridge.links.base.Link

static all()¶
property dependant_services¶
meadow_service_type = 'thermostat'¶
async update()¶

Module contents¶


© Copyright 2017, Caspia

Built with Sphinx using a theme provided by Read the Docs.