Power switch (S2-R (5602))¶
This documentation was generated from: s2r_5602.json
Attribute | Value |
---|---|
status | Gold |
product | Power switch (S2-R (5602)) |
modelid | S2-R (5602) |
manufacturername | ubisys |
1. On/Off output¶
Endpoint: /lights
Top level attributes¶
Attribute | Datatype | Description | Access |
---|---|---|---|
id | String | Identifier of the resource, unique within an endpoint. | R |
lastannounced | ISO 8601 timestamp | Timestamp of the last power-cyle or rejoin. | R |
lastseen | ISO 8601 timestamp | Timestamp of the last communication. | R |
manufacturername | String | "ubisys" | R |
modelid | String | "S2-R (5602)" | R |
name | String | Name of the resource. | RW |
swversion | String | Firmware version of the device. | R |
type | String | "On/Off output" | R |
uniqueid | String | Unique identifier of the resource. | R |
State attributes¶
Attribute | Datatype | Description | Access |
---|---|---|---|
alert | String | The currently active alert effect. Default: none
|
RW |
on | Bool | True when device is on; false when off. | RW |
reachable | Bool | When true the device is assumed to be operational. | R |
2. On/Off output¶
Endpoint: /lights
Top level attributes¶
Attribute | Datatype | Description | Access |
---|---|---|---|
id | String | Identifier of the resource, unique within an endpoint. | R |
lastannounced | ISO 8601 timestamp | Timestamp of the last power-cyle or rejoin. | R |
lastseen | ISO 8601 timestamp | Timestamp of the last communication. | R |
manufacturername | String | "ubisys" | R |
modelid | String | "S2-R (5602)" | R |
name | String | Name of the resource. | RW |
swversion | String | Firmware version of the device. | R |
type | String | "On/Off output" | R |
uniqueid | String | Unique identifier of the resource. | R |
State attributes¶
Attribute | Datatype | Description | Access |
---|---|---|---|
alert | String | The currently active alert effect. Default: none
|
RW |
on | Bool | True when device is on; false when off. | RW |
reachable | Bool | When true the device is assumed to be operational. | R |
3. ZHASwitch¶
Endpoint: /sensors
Top level attributes¶
Attribute | Datatype | Description | Access |
---|---|---|---|
id | String | Identifier of the resource, unique within an endpoint. | R |
lastannounced | ISO 8601 timestamp | Timestamp of the last power-cyle or rejoin. | R |
lastseen | ISO 8601 timestamp | Timestamp of the last communication. | R |
manufacturername | String | "ubisys" | R |
modelid | String | "S2-R (5602)" | R |
name | String | Name of the resource. | RW |
swversion | String | Firmware version of the device. | R |
type | String | "ZHASwitch" | R |
uniqueid | String | Unique identifier of the resource. | R |
Config attributes¶
Attribute | Datatype | Description | Access |
---|---|---|---|
group | String | comma seperated list of groups which a device controls. Default: auto,auto |
RW |
mode | String | Mode of the device. Default: momentary
|
RW |
on | Bool | When true the sensor is enabled in rules. Default: true |
RW |
reachable | Bool | When true the device is assumed to be operational. | R |
State attributes¶
Attribute | Datatype | Description | Access |
---|---|---|---|
buttonevent | UInt32 | The last received button event. | R |
lastupdated | ISO 8601 timestamp | Timestamp when state was last updated. | R |
4. ZHAPower¶
Endpoint: /sensors
Top level attributes¶
Attribute | Datatype | Description | Access |
---|---|---|---|
id | String | Identifier of the resource, unique within an endpoint. | R |
lastannounced | ISO 8601 timestamp | Timestamp of the last power-cyle or rejoin. | R |
lastseen | ISO 8601 timestamp | Timestamp of the last communication. | R |
manufacturername | String | "ubisys" | R |
modelid | String | "S2-R (5602)" | R |
name | String | Name of the resource. | RW |
swversion | String | Firmware version of the device. | R |
type | String | "ZHAPower" | R |
uniqueid | String | Unique identifier of the resource. | R |
Config attributes¶
Attribute | Datatype | Description | Access |
---|---|---|---|
on | Bool | When true the sensor is enabled in rules. Default: true |
RW |
reachable | Bool | When true the device is assumed to be operational. | R |
State attributes¶
Attribute | Datatype | Description | Access |
---|---|---|---|
current | UInt16 | The measured current (in mA). Default: 0 |
RW |
lastupdated | ISO 8601 timestamp | Timestamp when state was last updated. | R |
power | Int16 | The measured power (in W). Default: 0 |
RW |
voltage | UInt16 | The measured voltage (in V). Default: 0 |
RW |
5. ZHAConsumption¶
Endpoint: /sensors
Top level attributes¶
Attribute | Datatype | Description | Access |
---|---|---|---|
id | String | Identifier of the resource, unique within an endpoint. | R |
lastannounced | ISO 8601 timestamp | Timestamp of the last power-cyle or rejoin. | R |
lastseen | ISO 8601 timestamp | Timestamp of the last communication. | R |
manufacturername | String | "ubisys" | R |
modelid | String | "S2-R (5602)" | R |
name | String | Name of the resource. | RW |
swversion | String | Firmware version of the device. | R |
type | String | "ZHAConsumption" | R |
uniqueid | String | Unique identifier of the resource. | R |
Config attributes¶
Attribute | Datatype | Description | Access |
---|---|---|---|
on | Bool | When true the sensor is enabled in rules. Default: true |
RW |
reachable | Bool | When true the device is assumed to be operational. | R |
State attributes¶
Attribute | Datatype | Description | Access |
---|---|---|---|
consumption | UInt64 | The measured consumption (in Wh). Default: 0 |
RW |
lastupdated | ISO 8601 timestamp | Timestamp when state was last updated. | R |
power | Int16 | The measured power (in W). Default: 0 |
RW |