Type of events:
{
event = "module_reset"
status = "started"
}
fields | type | description |
---|---|---|
event | string | type of an event |
status | string | actual event status |
{
event = "include_invoked"
}
fields | type | description |
---|---|---|
event | string | type of an event |
{
event = "include_started"
}
fields | type | description |
---|---|---|
event | string | type of an event |
{
event = "include_finished"
}
fields | type | description |
---|---|---|
event | string | type of an event |
{
event = "include_finished_error"
}
fields | type | description |
---|---|---|
event | string | type of an event |
{
event = "include_finished_timeout"
}
fields | type | description |
---|---|---|
event | string | type of an event |
{
event = "include_device_progress"
progress = 50
}
fields | type | description |
---|---|---|
event | string | type of an event |
value | int | progress in percents (0-100) |
{
event = "rediscover_device_progress",
node_id = 2,
progress = 50,
status = "in_progress"
}
fields | type | required | description |
---|---|---|---|
event | string | + | type of an event |
node_id | int | + | a unique id of a ZWave device within a Zwave network |
progress | int | – | progress value in percents |
status | status | + | actual rediscovering status “started”, “in_progress”, “failed”, “finished” |
{
event = "exclude_invoked"
}
fields | type | description |
---|---|---|
event | string | type of an event |
{
event = "exclude_started"
}
fields | type | description |
---|---|---|
event | string | type of an event |
{
event = "exclude_finished"
}
fields | type | description |
---|---|---|
event | string | type of an event |
{
event = "exclude_finished_error"
}
fields | type | description |
---|---|---|
event | string | type of an event |
{
event = "exclude_finished_timeout"
}
fields | type | description |
---|---|---|
event | string | type of an event |
{
event = "learn_invoked"
}
fields | type | description |
---|---|---|
event | string | type of an event |
{
event = "learn_started"
}
fields | type | description |
---|---|---|
event | string | type of an event |
learn_show_key – gets sent to show a controller dsk key to pass authentication on a remote(including) side. This event gets sent only if remote controller didn’t choose an mode (authentication modes). This event is initiated by the start_learn method.
{
event = "learn_show_key"
}
fields | type | description |
---|---|---|
event | string | type of an event |
key | array of ints | a dsk key as an array of ints containing representation of two-byte values |
{
event = "learn_progress"
}
fields | type | description |
---|---|---|
event | string | type of an event |
devices | int | amount of devices in a network we’re learning |
current | int | index of a current including device |
{
event = "learn_finished"
}
fields | type | description |
---|---|---|
event | string | type of an event |
{
event = "learn_finished_error"
}
fields | type | description |
---|---|---|
event | string | type of an event |
{
event = "learn_finished_timeout"
}
fields | type | description |
---|---|---|
event | string | type of an event |
{
event = "action_busy",
action_type = "include_starting"
}
fields | type | description |
---|---|---|
event | string | type of an event |
action_type | string | actual action, which is running |
{
event = "reconstruct_started"
}
fields | type | description |
---|---|---|
event | string | type of an event |
{
event = "reconstruct_finished"
}
<div class="table-responsive">
<table class="table table_shortcode">
<thead>
<tr>
<th>fields</th>
<th>type</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>event</strong></td>
<td>string</td>
<td>type of an event</td>
</tr>
</tbody>
</table>
</div>
{
event = "reconstruct_finished_error"
}
fields | type | description |
---|---|---|
event | string | type of an event |
{
event = "reconstruct_progress_error",
node_id = 5
}
fields | type | description |
---|---|---|
event | string | type of an event |
node_id | int | Id of device for which we cannot reconstruct a network |
{
event = "reconstruct_progress"
devices = 10,
current = 5,
}
fields | type | description |
---|---|---|
event | string | type of an event |
devices | int | amount of devices in a network |
current | int | index of a current device which reconstruct network |
{
event = "sis_node_updated"
}
fields | type | description |
---|---|---|
event | string | type of an event |
{
event = "barrier_signal_value_updated",
node_id = 1,
class_id = 102,
channel_id = 0,
signal_name = "audible_notification",
value = 1
}
fields | type | description |
---|---|---|
event | string | type of an event |
node_id | int | a unique id of a ZWave device within a Zwave network |
class_id | int | ZWave command class id (always 102 for this type of event) |
channel_id | int | channel id |
signal_name | string | name of signal |
value | int | 0 or 0xFF (identifies, whether signal is enabled) |
{
event = "binary_sensor_value_updated",
node_id = 1,
class_id = 48,
channel_id = 0,
value = 1,
sensor_type = 5
}
fields | type | description |
---|---|---|
event | string | type of an event |
node_id | int | a unique id of a ZWave device within a Zwave network |
class_id | int | ZWave command class id (always 48 for this type of event) |
channel_id | int | channel id |
value | uint | 0 or 1 (meaning depends on sensor type) |
sensor_type | uint | binary sensor type according to ZWave specification |
configuration_value_updated – result of configuration value request (see request_configuration_value api)
{
event = "configuration_value_updated",
node_id = 1,
class_id = 48,
channel_id = 0,
parameter_num = 1,
parameter_size = 2,
value = 1
}
fields | type | description |
---|---|---|
event | string | type of an event |
node_id | int | a unique id of a ZWave device within a Zwave network |
class_id | int | ZWave command class id (always 112 for this type of event) |
channel_id | int | channel id |
parameter_num | uint | configuration parameter number |
parameter_size | uint | configuration parameter value size |
value | uint | value of configuration parameter |
configuration_request_status_updated – status of the set_configuration_value request
{
event = "configuration_request_status_updated",
node_id = 1,
parameter_num = 1,
status = "synced"
}
fields | type | description |
---|---|---|
event | string | type of an event |
node_id | int | a unique id of a ZWave device within a Zwave network |
parameter_num | uint | configuration parameter number |
status | string | value of configuration parameter |
{
event = "door_lock_state_updated",
node_id = 1,
channel_id = 0,
door_mode = "unsecured",
door_condition = {
latch_state = "latch_open",
bolt_state = "bolt_unlocked",
door_state = "door_open"
}
}
fields | type | required | description |
---|---|---|---|
event | string | + | type of an event |
node_id | int | + | a unique id of a ZWave device within a Zwave network |
channel_id | int | + | channel id |
door_lock_mode | string | + | actual door lock mode |
lock_timeout | int | – | time in seconds before the doorlock will automatically be changed to “secured” mode |
target_door_lock_mode | string | – | following door lock mode (4+ cc version) |
target_door_lock_mode_timeout | string | – | time in seconds before the doorlock will automatically be changed to target_door_lock_mode (4+ cc version) |
enabled_inside_door_handle_ids | array of int | + | list of inside handle ids (1 .. 4) that can be locked locally |
enabled_outside_door_handle_ids | array of int | + | list of outside handle ids (1 .. 4) that can be locked locally |
door_condition.latch_state | string | + | actual latch state |
door_condition.bolt_state | string | + | actual bolt state |
door_condition.door_state | string | + | actual door state |
{
event = "door_lock_configuration_updated",
node_id = 1,
channel_id = 0,
configuration = {
inside_handle_ids = { 1 },
outside_handle_ids = { 1 },
lock_timeout = 20,
auto_relock_timeout = 30,
hold_and_release_timeout = 40,
twist_assist_enabled = true,
block_to_block_enabled = true
}
}
fields | type | description |
---|---|---|
event | string | type of an event |
node_id | int | a unique id of a ZWave device within a Zwave network |
channel_id | int | channel id |
value | table |
configuration table |
{
event = "multilevel_sensor_value_updated",
node_id = 1,
class_id = 49,
channel_id = 0,
value = 10,
scale = "lux",
sensor_type = "illuminance"
}
fields | type | description |
---|---|---|
event | string | type of an event |
node_id | int | a unique id of a ZWave device within a Zwave network |
class_id | int | ZWave command class id (always 49 for this type of event) |
channel_id | int | channel id |
value | float | value |
scale | string | value scale (one of supported for current item value type) |
sensor_type | string | multilevel sensor type according to ZWave specification |
{
event = "node_added",
node_id = 2
}
fields | type | description |
---|---|---|
event | string | type of an event |
node_id | int | a unique id of a ZWave device within a Zwave network |
{
event = "reachable_state_updated",
node_id = 2,
value = true
}
fields | type | description |
---|---|---|
event | string | type of an event |
node_id | int | a unique id of a ZWave device within a Zwave network |
value | bool | true if ZWave device is reachable, false otherwise |
{
event = "s2_select_authentication_modes",
modes = { "accessControl", "authenticated", "unauthenticated" }
}
fields | type | description |
---|---|---|
event | string | type of an event |
modes | table | an array of available authentication modes |
Mode | description |
---|---|
accessControl | S2 Access Control |
authenticated | S2 Authenticated |
unauthenticated | S2 Unauthenticated |
s0 | S0 |
clientSide | Client-side authentication |
{
event = "s2_show_device_side_key",
key = { 58975, 37056 }
}
fields | type | description |
---|---|---|
event | string | type of an event |
key | table | an array of 2 items device specific key |
{
event = "s2_request_device_specific_key",
key = { 58975, 37056, 29754, 11588, 18902, 12511, 34338 }
}
fields | type | description |
---|---|---|
event | string | type of an event |
key | table | an array of 7 items device specific key (public part) |
node_removed – gets sent if a ZWave device has been excluded from hub network
{
event = "node_removed",
node_id = 2,
manufacturedId = 134,
productId = 2,
productType = 10
}
fields | type | description |
---|---|---|
event | string | type of an event |
node_id | int | |
manufacturedId | int | |
productId | int | |
productType | int |
{
event = "unknown_node_removed"
}
fields | type | description |
---|---|---|
event | string | type of an event |
{
event = "value_updated",
node_id = 2,
class_id = 37,
channel_id = 0,
value = 0
}
{
event = "value_updated",
node_id = 2,
class_id = 37,
channel_id = 0,
value = 10,
target_value = 20,
target_duration = 15000
}
fields | type | required | description |
event | string | + | type of an event |
node_id | int | + | a unique id of a ZWave device within a Zwave network |
class_id | int | + | class_id + channel_id construct a unique id of a pcp for a ZWave device |
channel_id | int | + | |
value | int | + | |
target_value | int | – | following value |
target_duration | int | – | expected duration in milliseconds to reaching following value |
{
event = "token_value_updated",
node_id = 2,
class_id = 37,
channel_id = 0,
value = "token"
}
fields | type | description |
---|---|---|
event | string | type of an event |
node_id | int | a unique id of a ZWave device within a Zwave network |
class_id | int | class_id + channel_id construct a unique id of a pcp for a ZWave device |
channel_id | int | channel id |
value | string | token value |
{
event = "user_code_updated",
node_id = 2,
channel_id = 0,
supported_users_count = 250,
user_polling_status = "polling",
user_code_ranges = {
{
user_code = "11111",
user_status = "enabled",
user_id = 1
},
{
user_code = "",
user_status = "available",
user_id = 2,
last_user_id = 250
}
}
}
fields | type | description |
---|---|---|
event | string | type of an event |
node_id | int | a unique id of a ZWave device within a Zwave network |
channel_id | int | ccommand class id |
supported_users_count | int | user id’s count (from 1 to supported_users_count) |
user_polling_status | string | actual user polling status |
user_code_ranges | array of ranges (tables) | array of user code ranges. |
User Code Range
fields | type | required | description |
---|---|---|---|
user_code | string | + | |
user_status | string | + | actual user id status |
user_id | int | + | user id (from 1 to number of supported users) |
last_user_id | int | – | last user id in range. If last_user_id is not nil actual user code slots in range [user_id; last_user_id] have the save status and code. As usual the range can contain more 1 element only if status == “available” |
master_code_updated – result of master code request (see request_master_code api)
{
event = "master_code_updated",
node_id = 2,
channel_id = 0,
value = "1111"
}
fields | type | description |
---|---|---|
event | string | type of an event |
node_id | int | a unique id of a ZWave device within a Zwave network |
channel_id | int | channel id |
value | string | master code |
user_codes_keypad_mode_updated – result of user codes keypad mode request (see request_user_codes_keypad_mode api)
{
event = "user_codes_keypad_mode_updated",
node_id = 2,
channel_id = 0,
value = "normal"
}
fields | type | description |
---|---|---|
event | string | type of an event |
node_id | int | a unique id of a ZWave device within a Zwave network |
channel_id | int | channel id |
value | string | keypad mode |
user_codes_checksum_updated – result of user codes checksum request (see request_user_codes_checksum api)
{
event = "user_codes_checksum_updated",
node_id = 2,
channel_id = 0,
value = 33971
}
fields | type | description |
---|---|---|
event | string | type of an event |
node_id | int | a unique id of a ZWave device within a Zwave network |
channel_id | int | channel id |
value | int | checksum of all user code ids, codes and statuses (16 bit). The checksum must be calculated using the CRC-CCITT polynomium using initialization value equal to 0x1D0F and 0x1021 (normal representation). |
{
event = "thermostat_setpoint_value_updated",
node_id = 2,
class_id = 67,
channel_id = 0,
type = 1,
scale = 0,
value = 11
}
fields | type | description |
---|---|---|
event | string | type of an event |
node_id | int | a unique id of a ZWave device within a Zwave network |
class_id | int | class_id + channel_id construct a unique id of a pcp for a ZWave device |
channel_id | int | |
type | int | type of an setpoint |
scale | int | temperature scale |
value | int | actual setpoint value |
{
event = "thermostat_operating_state_value_updated",
node_id = 2,
class_id = 66,
channel_id = 0,
value = "heating"
}
fields | type | description |
---|---|---|
event | string | type of an event |
node_id | int | a unique id of a ZWave device within a Zwave network |
class_id | int | class_id + channel_id construct a unique id of a pcp for a ZWave device |
channel_id | int | |
value | string | actual operating state |
{
event = "thermostat_setback_value_updated",
node_id = 2,
channel_id = 0,
override_type = "no_override",
mode = "frost_protection"
}
{
event = "thermostat_setback_value_updated",
node_id = 2,
channel_id = 0,
override_type = "temporary_override",
mode = "custom_value",
value = 1.4
}
fields | type | required | description |
---|---|---|---|
event | string | + | type of an event |
node_id | int | + | a unique id of a ZWave device within a Zwave network |
channel_id | int | + | |
override_type | string | + | actual override type |
mode | string | + | actual mode |
value | float | – | value is not required for modes “frost_protection” and “energy_saving_mode”. Min: -12.8, max: 12.0 for mode “custom_value”. If mode is “unknown” value advertises actual number state of setback (see zwave specification). |
{
event = "float_value_updated",
node_id = 2,
class_id = 37,
channel_id = 0,
type = "electric",
scale = "volt",
value = 0,
precision = 3
}
fields | type | description |
---|---|---|
event | string | type of an event |
node_id | int | a unique id of a ZWave device within a Zwave network |
class_id | int | class_id + channel_id construct a unique id of a pcp for a ZWave device |
channel_id | int | |
type | string | type of metering physical unit |
scale | string | a measurement unit |
value | int | |
precision | int | a number of decimal places of the value |
{
event = "rgb_value_updated",
node_id = 2,
channel_id = 0,
colors = {
red = 120,
blue = 0,
green = 200
},
target_colors = { }
target_durations = { }
}
{
event = "rgb_value_updated",
node_id = 2,
channel_id = 0,
colors = {
red = 120,
blue = 0,
green = 200
},
target_colors = {
red = 255,
blue = 0,
green = 200
},
target_durations = {
red = 20
}
}
fields | type | description |
---|---|---|
event | string | type of an event |
node_id | int | a unique id of a ZWave device within a Zwave network |
channel_id | int | |
colors | table (string to int) | table of color components ( String Color Component to Value [0; 255] ) |
target_colors | table (string to int) | table of target color components ( String Color Component to Value [0; 255] ) |
target_durations | table (string to int) | table of target durations for each component ( String Color Component to Seconds ) |
button_state_updated – gets sent if a pcp button state has been changed
{
event = "button_state_updated",
node_id = 2,
class_id = 37,
channel_id = 0,
button_id = 1,
value = "press_1_time"
}
fields | type | description |
---|---|---|
event | string | type of an event |
node_id | int | a unique id of a ZWave device within a Zwave network |
class_id | int | class_id + channel_id construct a unique id of a pcp for a ZWave device |
channel_id | int | channel id |
button_id | int | button id |
value | string | button state |
{
event = "association_updated",
node_id = 2,
class_id = 58,
channel_id = 0,
group_id = 1,
group_nodes = [ {node_id = 1, endpoint_id = 0} ]
}
fields | type | description |
---|---|---|
event | string | type of an event |
node_id | int | a unique id of a ZWave device within a Zwave network |
class_id | int | class_id + channel_id construct a unique id of a pcp for a ZWave device |
channel_id | int | channel id |
group_id | int | id of association group |
group_nodes | table | array of endpoints in group(node_id and endpoint_id for each endpoint) |
{
event = "scene_activated",
node_id = 2,
class_id = 43,
channel_id = 0,
scene_id = 1
}
fields | type | description |
---|---|---|
event | string | type of an event |
node_id | int | a unique id of a ZWave device within a Zwave network |
class_id | int | class_id + channel_id construct a unique id of a pcp for a ZWave device |
channel_id | int | channel id |
scene_id | int | scene id |
example: (event_handling.lua)
local params = ...
if params.event == "node_added" then
print( "we got a node_added event for a " .. params.node_id .. " device" )
elseif params.event == "value_updated" then
print( "we got a value_updated event, pcp: " .. to_string( params.class_id ) + to_string( params.channel_id ) )
end
{
event = "hail",
node_id = 2,
class_id = 130
}
fields | type | description |
---|---|---|
event | string | type of an event |
node_id | int | a unique id of a ZWave device within a Zwave network |
class_id | int | class_id + channel_id construct a unique id of a pcp for a ZWave device |
{
event = "alarm_sensor_value_updated",
node_id = 2,
class_id = 156,
channel_id = 0,
sensor_type = "water_alarm",
value = 255,
delay = 0
}
fields | type | description |
---|---|---|
event | string | type of an event |
node_id | int | a unique id of a ZWave device within a Zwave network |
class_id | int | class_id + channel_id construct a unique id of a pcp for a ZWave device |
channel_id | int | |
sensor_type | string | One of alarm sensor types |
value | int | alarm sensor value. 0 – no alarm; 255 – alarm; 1-100 – severity in percents. |
delay | int | indicates time in seconds the remote alarm must be active since last received report |
{
event = "week_day_entry_lock_schedule_updated",
node_id = 2,
class_id = 78,
channel_id = 0,
value =
{
weekDay = "monday",
startHour = 11,
startMinute = 20,
stopHour = 14,
stopMinute = 10
}
}
fields | type | description |
---|---|---|
event | string | type of an event |
node_id | int | a unique id of a ZWave device within a Zwave network |
class_id | int | |
channel_id | int | |
user_id | int | id of user ( see user code cc for details ) |
slot_id | int | |
value | table | object of type, optional |
{
event = "daily_repeating_entry_lock_schedule_updated",
node_id = 2,
class_id = 78,
channel_id = 0,
user_id = 3,
slot_id = 1,
value =
{
weekDays = { "monday", "friday" },
startHour = 11,
startMinute = 20,
durationHour = 14,
durationMinute = 50
}
}
fields | type | description |
---|---|---|
event | string | type of an event |
node_id | int | a unique id of a ZWave device within a Zwave network |
class_id | int | |
channel_id | int | |
user_id | int | id of user ( see user code cc for details ) |
slot_id | int | |
value | table | object of type, optional |
{
event = "year_day_entry_lock_schedule_updated",
node_id = 2,
class_id = 78,
channel_id = 0,
user_id = 3,
slot_id = 1,
value =
{
startYear = 2019,
startMonth = 1,
startDay = 10,
startHour = 23,
startMinute = 1,
stopYear = 2019,
stopMonth = 2,
stopDay = 10,
stopHour = 23,
stopMinute = 1
}
}
fields | type | description |
---|---|---|
event | string | type of an event |
node_id | int | a unique id of a ZWave device within a Zwave network |
class_id | int | |
channel_id | int | |
user_id | int | id of user ( see user code cc for details ) |
slot_id | int | |
value | table | object of type, optional |
{
event = "sound_switch_configuration_updated",
node_id = 2,
class_id = 78,
channel_id = 0,
default_tone_id = 1,
volume = 100
}
fields | type | description |
---|---|---|
event | string | type of an event |
node_id | int | a unique id of a ZWave device within a Zwave network |
class_id | int | |
channel_id | int | |
default_tone_id | int | |
volume | int |
{
event = "sound_switch_tone_play_updated",
node_id = 2,
class_id = 78,
channel_id = 0,
tone_id = 1,
volume = 100
}
fields | type | description |
---|---|---|
event | string | type of an event |
node_id | int | a unique id of a ZWave device within a Zwave network |
class_id | int | |
channel_id | int | |
tone_id | int | |
volume | int |
{
event = "node_firmware_download_status",
node_id = 2,
image = "image.bin",
checksum = "checksum.sha1",
status = "started",
progress = 0
}
fields | type | required | description |
---|---|---|---|
event | string | + | type of an event |
node_id | int | + | a unique id of a ZWave device within a Zwave network |
image | string | + | image file name |
checksum | string | – | checksum file name |
progress | int | – | progress value in percents |
status | string | + | actual downloading status “started”, “in_progress”, “failed”, “finished” |
error | string | – | error description |
{
event = "node_firmware_update_status",
node_id = 2,
target = 0,
status = "finished",
progress = 100
}
{ event = "node_firmware_update_status", node_id = 42, status = "started" }
{ event = "node_firmware_update_status", node_id = 42, status = "started", target = 0 }
{ event = "node_firmware_update_status", node_id = 42, status = "in_progress", progress = 50, target = 0 }
{ event = "node_firmware_update_status", node_id = 42, status = "finished", target = 0 }
{ event = "node_firmware_update_status", node_id = 42, status = "started", target = 1 }
{ event = "node_firmware_update_status", node_id = 42, status = "in_progress", progress = 50, target = 1 }
{ event = "node_firmware_update_status", node_id = 42, status = "finished", target = 1 }
{ event = "node_firmware_update_status", node_id = 42, status = "finished" }
fields | type | required | description |
---|---|---|---|
event | string | + | type of an event |
node_id | int | + | a unique id of a ZWave device within a Zwave network |
target | int | – | firmware target |
progress | int | – | progress value in percents |
status | string | + | actual downloading status “started”, “in_progress”, “failed”, “finished”, “waiting_for_node_restart”, “node_restarted” |
error | string | – | error description |
{
event = "node_check_status",
node_id = 5,
status = "started"
}
fields | type | description |
---|---|---|
event | string | type of an event |
node_id | int | a unique id of a ZWave device within a Zwave network |
status | string | actual event status |
{
event = "anti_theft_state_updated",
node_id = 2,
class_id = 93,
channel_id = 0,
lock_info = {
restricted = false,
hint = "A0B80210",
manufacturer_id = 98,
zwave_alliance_locking_id = 1001
}
}
{
event = "anti_theft_state_updated",
node_id = 2,
class_id = 126,
channel_id = 0
}
fields | type | required | description |
---|---|---|---|
event | string | + | type of an event |
node_id | int | + | An unique id of a ZWave device within a Zwave network |
class_id | int | + | Id of Anti-theft CC or Anti-theft Unlock CC |
channel_id | int | + | |
lock_info | table | – | Actual lock info. Nil value means device is not locked |