Button (IM6001-BTP01)

This documentation was generated from: samjin_button_switch.json

AttributeValue
status Silver
product Button (IM6001-BTP01)
modelid button
manufacturername Samjin

1. ZHASwitch

Endpoint: /sensors

Top level attributes

AttributeDatatypeDescriptionAccess
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 "Samjin" R
modelid String "button" R
mode UInt32 Operational mode.

Default: 1

  • 0 — none
  • 1 — scenes
  • 2 — two_groups
  • 3 — color_temperature
  • 4 — dimmer
RW
modelid String "button" 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

AttributeDatatypeDescriptionAccess
battery UInt8 The current device battery level in 0–100 %.

Default: 0

R
on Bool When true the sensor is enabled in rules.

Default: true

RW
pending Array Pending tasks to configure the device. R
reachable Bool When true the device is assumed to be operational. R

State attributes

AttributeDatatypeDescriptionAccess
lastupdated ISO 8601 timestamp Timestamp when state was last updated. R
buttonevent UInt32 The last received button event. R

Example output

{
  "config": {
    "battery": 67,
    "on": true,
    "pending": [],
    "reachable": true
  },
  "ep": 1,
  "etag": "d1e74f93f14c016ab59e33df99c9656c",
  "lastseen": "2021-01-12T17:59Z",
  "manufacturername": "Samjin",
  "mode": 1,
  "modelid": "button",
  "name": "Button",
  "state": {
    "buttonevent": 1001,
    "lastupdated": "2021-01-11T19:30:44.544"
  },
  "type": "ZHASwitch",
  "uniqueid": "28:6d:97:00:01:06:41:79-01-0500"
}

2. ZHATemperature

Endpoint: /sensors

Top level attributes

AttributeDatatypeDescriptionAccess
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 "Samjin" R
modelid String "button" R
name String Name of the resource. RW
swversion String Firmware version of the device. R
type String "ZHATemperature" R
uniqueid String Unique identifier of the resource. R

Config attributes

AttributeDatatypeDescriptionAccess
battery UInt8 The current device battery level in 0–100 %.

Default: 0

R
offset Int16 Relative offset to the main measured value.

Default: 0

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

AttributeDatatypeDescriptionAccess
lastupdated ISO 8601 timestamp Timestamp when state was last updated. R
temperature Int16 The current temperature in °C × 100.

Default: 0

R

Example output

{
  "config": {
    "battery": 67,
    "offset": 0,
    "on": true,
    "reachable": true
  },
  "ep": 1,
  "etag": "d1e74f93f14c016ab59e33df99c9656c",
  "lastseen": "2021-01-12T17:59Z",
  "manufacturername": "Samjin",
  "modelid": "button",
  "name": "Temperature 118",
  "state": {
    "lastupdated": "2021-01-11T19:29:33.399",
    "temperature": 2771
  },
  "type": "ZHATemperature",
  "uniqueid": "28:6d:97:00:01:06:41:79-01-0402"
}