Zigbee lua objects
Objects shortlist
Node
Node description.
{
_id = 1,
manufacturer_id = "Ezlo",
model_id = "Ezlo plug",
security = 0,
is_reachable = 1,
is_battery_powered = 1,
last_update_time = 1591107772,
reachable_state_timeout = 3600,
endpoints = {
{
_id = 1,
profileId = 260,
clusters = {
{
_id = 1,
version = 1,
...
},
{
_id = 2,
version = 1,
...
},
}
},
{
_id = 2,
clusters = {
...
}
},
...
}
}
field |
type |
description |
_id |
int |
|
manufacturer_id |
string |
|
model_id |
string |
|
security |
bool |
|
is_reachable |
bool |
|
is_battery_powered |
bool |
|
last_update_time |
bool |
Timepoint, when device sent data to hub last time |
reachable_state_timeout |
bool |
Duration between device reachable state recheck in seconds |
endpoints |
table |
|
version |
int |
Not implemented |
Endpoint
Default
Default endpoint structure
{
_id = 1,
profile_id = 0104,
device_id = 1,
clusters = {...}
}
field |
type |
description |
_id |
int |
endpoint identifier |
profile_id |
int |
profile identifier |
device_id |
int |
device identifier |
clusters |
table |
endpoint clusters |
Cluster
Default
Default cluster structure
{
_id = 50,
endpoint_id = 1,
name = "on_off",
data_holder = "server",
attributes = {...},
commands = {...},
version = 1,
}
field |
type |
description |
_id |
int |
cluster identifier |
endpoint_id |
int |
endpoint identifier |
name |
string |
cluster name |
data_holder |
string |
|
attributes |
table |
cluster attributes |
commands |
table |
cluster commands |
version |
int |
cluster version (Not implemented) |
Supported cluster names |
basic |
power_configuration |
on_off |
level_control |
thermostat |
fan_control |
color_control |
illuminance_measurement |
temperature_measurement |
relative_humidity |
electrical_measurement |
ias_zone |
ias_ace |
Attribute
Default
Default attribute structure
{
_id = 0,
cluster_id = 50,
name = "on_off",
type = "uint8_t",
is_mfg_specific = false,
mfg_code = 1,
value = "1",
formatted_value = "1",
version = 1,
}
field |
type |
description |
_id |
int |
attribute identifier |
name |
string |
attribute name |
type |
string |
attribute value type |
is_mfg_specific |
bool |
is attribute manufacturer specific |
mfg_code |
int |
attribute manufacturer code |
cluster_id |
int |
attribute cluster ID |
value |
string |
attribute value |
formatted_value |
string or table |
attribute formatted value for LUA scripts |
version |
int |
attribute version (Not implemented) |
Command
Default
Default command structure
{
_id = 0,
cluster_id = 50,
name = "Arm",
type = "generated",
is_mfg_specific = false,
mfg_code = 1,
version = 1
}
field |
type |
description |
_id |
int |
command identifier |
name |
string |
command name |
type |
string |
command type( generated or received ) |
is_mfg_specific |
bool |
is command manufacturer specific |
mfg_code |
int |
command manufacturer code |
cluster_id |
int |
command cluster ID |
version |
int |
command version (Not implemented) |