caspia.gateway.services.sensors.carbondioxide package

Submodules

caspia.gateway.services.sensors.carbondioxide.s300 module

class caspia.gateway.services.sensors.carbondioxide.s300.S300CarbonDioxideSensor(config, network, storage)[source]

Bases: caspia.gateway.services.base.GatewayService, caspia.meadow.services.sensors.carbondioxide.CarbonDioxideSensorBase

property all_observables
attach(connection)
property attached
auto_discovery = False
characteristic_cached_read(characteristic)
characteristic_cached_write(characteristic, value_and_meta)
async characteristic_read(characteristic, **kwargs)
characteristic_subscribe(characteristic, on_value, on_error=None)
async characteristic_write(characteristic, value, **kwargs)
characteristics = {'$metadata': <Characteristic <class 'caspia.meadow.services.base.ServiceMeta'>:$metadata>, 'level': <Characteristic <class 'caspia.meadow.services.base.ServiceMeta'>:level>}
configure()[source]
property dependant_components
detach()
get_node()
static get_subclass(stype, mixin=None)
property is_updated_periodically
level
async level_read(**kwargs)[source]
load_definition(spec)

Update characteristics of this instance based on serialized specs.

Parameters

spec – Dict most likely going to be coming from meadow - from some gateway informing us about its services and their characteristics.

metadata
async notify(characteristic, value, if_changed=False, extra=None)
on(name, *args, **kwargs)
async on_component_event(component, event)[source]
optional = {}
async published()
serialize()

Return serialized version (most likely dict) if possible or None.

type = 'carbon-dioxide-sensor'

caspia.gateway.services.sensors.carbondioxide.scd30 module

class caspia.gateway.services.sensors.carbondioxide.scd30.SCD30CarbonDioxideSensor(config, network, storage)[source]

Bases: caspia.gateway.services.base.GatewayService, caspia.meadow.services.sensors.carbondioxide.CarbonDioxideSensorBase

property all_observables
attach(connection)
property attached
auto_discovery = False
characteristic_cached_read(characteristic)
characteristic_cached_write(characteristic, value_and_meta)
async characteristic_read(characteristic, **kwargs)
characteristic_subscribe(characteristic, on_value, on_error=None)
async characteristic_write(characteristic, value, **kwargs)
characteristics = {'$metadata': <Characteristic <class 'caspia.meadow.services.base.ServiceMeta'>:$metadata>, 'level': <Characteristic <class 'caspia.meadow.services.base.ServiceMeta'>:level>, 'self_calibration_enabled': <Characteristic <class 'caspia.gateway.services.base.GatewayServiceMeta'>:self_calibration_enabled>}
configure()[source]
property dependant_components
detach()
get_node()
static get_subclass(stype, mixin=None)
property is_updated_periodically
level
async level_read(**kwargs)[source]
load_definition(spec)

Update characteristics of this instance based on serialized specs.

Parameters

spec – Dict most likely going to be coming from meadow - from some gateway informing us about its services and their characteristics.

metadata
async notify(characteristic, value, if_changed=False, extra=None)
on(name, *args, **kwargs)
async on_component_event(component, event)[source]
optional = {}
async published()
self_calibration_enabled
async self_calibration_enabled_write(value, **kwargs)[source]
serialize()

Return serialized version (most likely dict) if possible or None.

type = 'carbon-dioxide-sensor'

caspia.gateway.services.sensors.carbondioxide.service module

class caspia.gateway.services.sensors.carbondioxide.service.CarbonDioxideSensor(config, network, storage)[source]

Bases: caspia.gateway.services.base.GatewayService, caspia.meadow.services.sensors.carbondioxide.CarbonDioxideSensorBase

property all_observables
attach(connection)
property attached
auto_discovery = True
characteristic_cached_read(characteristic)
characteristic_cached_write(characteristic, value_and_meta)
async characteristic_read(characteristic, **kwargs)
characteristic_subscribe(characteristic, on_value, on_error=None)
async characteristic_write(characteristic, value, **kwargs)
characteristics = {'$metadata': <Characteristic <class 'caspia.meadow.services.base.ServiceMeta'>:$metadata>, 'level': <Characteristic <class 'caspia.meadow.services.base.ServiceMeta'>:level>}
abstract configure()
abstract property dependant_components
detach()
get_node()
static get_subclass(stype, mixin=None)
level
load_definition(spec)

Update characteristics of this instance based on serialized specs.

Parameters

spec – Dict most likely going to be coming from meadow - from some gateway informing us about its services and their characteristics.

metadata
async notify(characteristic, value, if_changed=False, extra=None)
on(name, *args, **kwargs)
async on_component_event(component, event)
optional = {}
async published()
serialize()

Return serialized version (most likely dict) if possible or None.

type = 'carbon-dioxide-sensor'

Module contents