xs1_api_client.device.sensor package

Module contents

class xs1_api_client.device.sensor.XS1Sensor(state, api)[source]

Bases: xs1_api_client.device.XS1Device

Represents a XS1 Sensor

set_name(name: str)[source]

Sets a new name for this device. Keep in mind that there are some limitations for a device name.

Parameters:name – the new name to set
Returns:the new name of the sensor
set_value(value) → None[source]

Sets a value for this sensor This should only be used for debugging purpose! :param value: new value to set

update() → None[source]

Updates the state of this sensor