Matter increased polling frequency for local switches/occupancy (#19242)

This commit is contained in:
s-hadinger 2023-08-02 09:02:08 +02:00 committed by GitHub
parent 222b47627f
commit 58fce33312
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 7 additions and 6 deletions

View File

@ -18,6 +18,7 @@ All notable changes to this project will be documented in this file.
- Berry `mqtt.publish` now distinguishes between `string` and `bytes` - Berry `mqtt.publish` now distinguishes between `string` and `bytes`
- IRremoteESP8266 library from v2.8.5 to v2.8.6 - IRremoteESP8266 library from v2.8.5 to v2.8.6
- Reduced log level for TeleInfo - Reduced log level for TeleInfo
- Matter increased polling frequency for local switches/occupancy
### Fixed ### Fixed
- Initial battery level percentage (#19160) - Initial battery level percentage (#19160)

View File

@ -32,7 +32,7 @@ class Matter_Plugin_Sensor_Contact : Matter_Plugin_Device
static var ARG = "switch" # additional argument name (or empty if none) static var ARG = "switch" # additional argument name (or empty if none)
static var ARG_HINT = "Switch<x> number" static var ARG_HINT = "Switch<x> number"
static var ARG_TYPE = / x -> int(x) # function to convert argument to the right type static var ARG_TYPE = / x -> int(x) # function to convert argument to the right type
static var UPDATE_TIME = 5000 # update every 250ms static var UPDATE_TIME = 750 # update every 750ms
static var CLUSTERS = { static var CLUSTERS = {
0x0045: [0,0xFFFC,0xFFFD], # Boolean State p.70 - no writable 0x0045: [0,0xFFFC,0xFFFD], # Boolean State p.70 - no writable
} }

View File

@ -32,7 +32,7 @@ class Matter_Plugin_Sensor_Occupancy : Matter_Plugin_Device
static var ARG = "switch" # additional argument name (or empty if none) static var ARG = "switch" # additional argument name (or empty if none)
static var ARG_HINT = "Switch<x> number" static var ARG_HINT = "Switch<x> number"
static var ARG_TYPE = / x -> int(x) # function to convert argument to the right type static var ARG_TYPE = / x -> int(x) # function to convert argument to the right type
static var UPDATE_TIME = 5000 # update every 250ms static var UPDATE_TIME = 750 # update every 750ms
static var CLUSTERS = { static var CLUSTERS = {
0x0406: [0,1,2,0xFFFC,0xFFFD], # Occupancy Sensing p.105 - no writable 0x0406: [0,1,2,0xFFFC,0xFFFD], # Occupancy Sensing p.105 - no writable
} }

View File

@ -30,7 +30,7 @@ class Matter_Plugin_Sensor_OnOff : Matter_Plugin_Device
static var ARG = "switch" # additional argument name (or empty if none) static var ARG = "switch" # additional argument name (or empty if none)
static var ARG_HINT = "Switch<x> number" static var ARG_HINT = "Switch<x> number"
static var ARG_TYPE = / x -> int(x) # function to convert argument to the right type static var ARG_TYPE = / x -> int(x) # function to convert argument to the right type
static var UPDATE_TIME = 5000 # update every 250ms static var UPDATE_TIME = 750 # update every 750ms
static var CLUSTERS = { static var CLUSTERS = {
0x0006: [0,0xFFFC,0xFFFD], # On/Off 1.5 p.48 0x0006: [0,0xFFFC,0xFFFD], # On/Off 1.5 p.48
} }

View File

@ -258,7 +258,7 @@ be_local_class(Matter_Plugin_Sensor_Contact,
{ be_const_key_weak(shadow_contact, -1), be_const_var(1) }, { be_const_key_weak(shadow_contact, -1), be_const_var(1) },
{ be_const_key_weak(TYPE, -1), be_nested_str_weak(contact) }, { be_const_key_weak(TYPE, -1), be_nested_str_weak(contact) },
{ be_const_key_weak(ARG_TYPE, 5), be_const_static_closure(Matter_Plugin_Sensor_Contact__X3Clambda_X3E_closure) }, { be_const_key_weak(ARG_TYPE, 5), be_const_static_closure(Matter_Plugin_Sensor_Contact__X3Clambda_X3E_closure) },
{ be_const_key_weak(UPDATE_TIME, -1), be_const_int(5000) }, { be_const_key_weak(UPDATE_TIME, -1), be_const_int(750) },
{ be_const_key_weak(ARG_HINT, 1), be_nested_str_weak(Switch_X3Cx_X3E_X20number) }, { be_const_key_weak(ARG_HINT, 1), be_nested_str_weak(Switch_X3Cx_X3E_X20number) },
{ be_const_key_weak(NAME, -1), be_nested_str_weak(Contact) }, { be_const_key_weak(NAME, -1), be_nested_str_weak(Contact) },
{ be_const_key_weak(parse_configuration, 8), be_const_closure(Matter_Plugin_Sensor_Contact_parse_configuration_closure) }, { be_const_key_weak(parse_configuration, 8), be_const_closure(Matter_Plugin_Sensor_Contact_parse_configuration_closure) },

View File

@ -272,7 +272,7 @@ be_local_class(Matter_Plugin_Sensor_Occupancy,
{ be_const_key_weak(ARG_TYPE, -1), be_const_static_closure(Matter_Plugin_Sensor_Occupancy__X3Clambda_X3E_closure) }, { be_const_key_weak(ARG_TYPE, -1), be_const_static_closure(Matter_Plugin_Sensor_Occupancy__X3Clambda_X3E_closure) },
{ be_const_key_weak(TYPE, -1), be_nested_str_weak(occupancy) }, { be_const_key_weak(TYPE, -1), be_nested_str_weak(occupancy) },
{ be_const_key_weak(ARG_HINT, 1), be_nested_str_weak(Switch_X3Cx_X3E_X20number) }, { be_const_key_weak(ARG_HINT, 1), be_nested_str_weak(Switch_X3Cx_X3E_X20number) },
{ be_const_key_weak(UPDATE_TIME, -1), be_const_int(5000) }, { be_const_key_weak(UPDATE_TIME, -1), be_const_int(750) },
{ be_const_key_weak(parse_configuration, -1), be_const_closure(Matter_Plugin_Sensor_Occupancy_parse_configuration_closure) }, { be_const_key_weak(parse_configuration, -1), be_const_closure(Matter_Plugin_Sensor_Occupancy_parse_configuration_closure) },
{ be_const_key_weak(tasmota_switch_index, -1), be_const_var(0) }, { be_const_key_weak(tasmota_switch_index, -1), be_const_var(0) },
{ be_const_key_weak(shadow_occupancy, 8), be_const_var(1) }, { be_const_key_weak(shadow_occupancy, 8), be_const_var(1) },

View File

@ -245,7 +245,7 @@ be_local_class(Matter_Plugin_Sensor_OnOff,
{ be_const_key_weak(ARG_HINT, -1), be_nested_str_weak(Switch_X3Cx_X3E_X20number) }, { be_const_key_weak(ARG_HINT, -1), be_nested_str_weak(Switch_X3Cx_X3E_X20number) },
{ be_const_key_weak(TYPE, -1), be_nested_str_weak(onoff) }, { be_const_key_weak(TYPE, -1), be_nested_str_weak(onoff) },
{ be_const_key_weak(ARG_TYPE, 1), be_const_static_closure(Matter_Plugin_Sensor_OnOff__X3Clambda_X3E_closure) }, { be_const_key_weak(ARG_TYPE, 1), be_const_static_closure(Matter_Plugin_Sensor_OnOff__X3Clambda_X3E_closure) },
{ be_const_key_weak(UPDATE_TIME, -1), be_const_int(5000) }, { be_const_key_weak(UPDATE_TIME, -1), be_const_int(750) },
{ be_const_key_weak(update_shadow, -1), be_const_closure(Matter_Plugin_Sensor_OnOff_update_shadow_closure) }, { be_const_key_weak(update_shadow, -1), be_const_closure(Matter_Plugin_Sensor_OnOff_update_shadow_closure) },
{ be_const_key_weak(NAME, -1), be_nested_str_weak(OnOff_X20Sensor) }, { be_const_key_weak(NAME, -1), be_nested_str_weak(OnOff_X20Sensor) },
{ be_const_key_weak(parse_configuration, 5), be_const_closure(Matter_Plugin_Sensor_OnOff_parse_configuration_closure) }, { be_const_key_weak(parse_configuration, 5), be_const_closure(Matter_Plugin_Sensor_OnOff_parse_configuration_closure) },