caspia.gateway.services.sensors.humidity package¶
Submodules¶
caspia.gateway.services.sensors.humidity.scd30 module¶
-
class
caspia.gateway.services.sensors.humidity.scd30.SCD30HumiditySensor(config, network, storage)[source]¶ Bases:
caspia.gateway.services.base.GatewayService,caspia.meadow.services.sensors.humidity.HumiditySensorBase-
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>, 'humidity': <Characteristic <class 'caspia.meadow.services.base.ServiceMeta'>:humidity>}¶
-
property
dependant_components¶
-
detach()¶
-
get_node()¶
-
static
get_subclass(stype, mixin=None)¶
-
humidity¶
-
property
is_updated_periodically¶
-
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)¶
-
optional= {}¶
-
async
published()¶
-
serialize()¶ Return serialized version (most likely dict) if possible or None.
-
type= 'humidity-sensor'¶
-
property
caspia.gateway.services.sensors.humidity.service module¶
-
class
caspia.gateway.services.sensors.humidity.service.HumiditySensor(config, network, storage)[source]¶ Bases:
caspia.gateway.services.base.GatewayService,caspia.meadow.services.sensors.humidity.HumiditySensorBase-
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>, 'humidity': <Characteristic <class 'caspia.meadow.services.base.ServiceMeta'>:humidity>}¶
-
abstract
configure()¶
-
abstract property
dependant_components¶
-
detach()¶
-
get_node()¶
-
static
get_subclass(stype, mixin=None)¶
-
humidity¶
-
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= 'humidity-sensor'¶
-
property
caspia.gateway.services.sensors.humidity.sht2x module¶
-
class
caspia.gateway.services.sensors.humidity.sht2x.SHT2XHumiditySensor(config, network, storage)[source]¶ Bases:
caspia.gateway.services.base.GatewayService,caspia.meadow.services.sensors.humidity.HumiditySensorBase-
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>, 'humidity': <Characteristic <class 'caspia.meadow.services.base.ServiceMeta'>:humidity>}¶
-
property
dependant_components¶
-
detach()¶
-
get_node()¶
-
static
get_subclass(stype, mixin=None)¶
-
humidity¶
-
property
is_updated_periodically¶
-
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)¶
-
optional= {}¶
-
async
published()¶
-
serialize()¶ Return serialized version (most likely dict) if possible or None.
-
type= 'humidity-sensor'¶
-
property