Fix matter lights (#24126)

* matter: add FeatureMap to Light 1

* matter: add missing attributes to Light 2

* matter: fix datatype of attributes on Light 3
This commit is contained in:
Andreas Schultz 2025-11-16 20:20:34 +01:00 committed by GitHub
parent 4614ab3ed3
commit 7b223bedc4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 313 additions and 274 deletions

View File

@ -47,6 +47,7 @@ class Matter_Plugin
# static var TYPES = { <device_type>: <revision> } # needs to be defined for each endpoint
# `FEATURE_MAPS` contains any non-zero value per cluster, if not present default to `0`
static var FEATURE_MAPS = { # feature map per cluster
0x0008: 0x03, # Level Control: On/Off + Lighting
0x0031: 0x04, # Put Eth for now which should work for any on-network
# 0x0046: 0x04, # LITS: LongIdleTimeSupport
0x0102: 1 + 4, # Lift + PA_LF

View File

@ -35,7 +35,7 @@ class Matter_Plugin_Light2 : Matter_Plugin_Light1
# 0x0005: inherited # Scenes 1.4 p.30 - no writable
# 0x0006: inherited # On/Off 1.5 p.48
# 0x0008: inherited # Level Control 1.6 p.57
0x0300: [7,8,0xF,0x400B,0x400C], # Color Control 3.2 p.111
0x0300: [7,8,0xF,0x10,0x4001,0x400A,0x400B,0x400C], # Color Control 3.2 p.111
})
static var UPDATE_COMMANDS = matter.UC_LIST(_class, "CT")
static var TYPES = { 0x010C: 2 } # Color Temperature Light
@ -135,15 +135,23 @@ class Matter_Plugin_Light2 : Matter_Plugin_Light1
if cluster == 0x0300 # ========== Color Control 3.2 p.111 ==========
self.update_shadow_lazy()
if attribute == 0x0007 # ---------- ColorTemperatureMireds / u2 ----------
return tlv_solo.set_or_nil(TLV.U1, self.shadow_ct) # if `nil` it is replaced with TLV.NULL
return tlv_solo.set_or_nil(TLV.U2, self.shadow_ct) # if `nil` it is replaced with TLV.NULL
elif attribute == 0x0008 # ---------- ColorMode / u1 ----------
return tlv_solo.set(TLV.U1, 2)# 2 = ColorTemperatureMireds
return tlv_solo.set(TLV.U1, 2) # 2 = ColorTemperatureMireds
elif attribute == 0x000F # ---------- Options / u1 ----------
return tlv_solo.set(TLV.U1, 0)
elif attribute == 0x4001 # ---------- EnhancedColorMode / u1 ----------
return tlv_solo.set(TLV.U1, 2) # 2 = ColorTemperatureMireds
elif attribute == 0x400A # ---------- ColorCapabilities / map2 ----------
return tlv_solo.set(TLV.U2, 0x10) # CT
elif attribute == 0x400B # ---------- ColorTempPhysicalMinMireds / u2 ----------
return tlv_solo.set(TLV.U1, self.ct_min)
return tlv_solo.set(TLV.U2, self.ct_min)
elif attribute == 0x400C # ---------- ColorTempPhysicalMaxMireds / u2 ----------
return tlv_solo.set(TLV.U1, self.ct_max)
return tlv_solo.set(TLV.U2, self.ct_max)
# Defined Primaries Information Attribute Set
elif attribute == 0x0010 # ---------- NumberOfPrimaries / u1 ----------
return tlv_solo.set(TLV.U1, 0)
elif attribute == 0xFFFC # ---------- FeatureMap / map32 ----------
return tlv_solo.set(TLV.U4, 0x10) # CT

View File

@ -150,7 +150,7 @@ class Matter_Plugin_Light3 : Matter_Plugin_Light1
elif attribute == 0x0001 # ---------- CurrentSaturation / u2 ----------
return tlv_solo.set_or_nil(TLV.U1, self.shadow_sat)
elif attribute == 0x0007 # ---------- ColorTemperatureMireds / u2 ----------
return tlv_solo.set(TLV.U1, 0)
return tlv_solo.set(TLV.U2, 0)
elif attribute == 0x0008 # ---------- ColorMode / u1 ----------
return tlv_solo.set(TLV.U1, 0)# 0 = CurrentHue and CurrentSaturation
elif attribute == 0x000F # ---------- Options / u1 ----------
@ -158,7 +158,7 @@ class Matter_Plugin_Light3 : Matter_Plugin_Light1
elif attribute == 0x4001 # ---------- EnhancedColorMode / u1 ----------
return tlv_solo.set(TLV.U1, 0)
elif attribute == 0x400A # ---------- ColorCapabilities / map2 ----------
return tlv_solo.set(TLV.U1, 0x01) # HS
return tlv_solo.set(TLV.U2, 0x01) # HS
# Defined Primaries Information Attribute Set
elif attribute == 0x0010 # ---------- NumberOfPrimaries / u1 ----------

View File

@ -1430,10 +1430,11 @@ be_local_class(Matter_Plugin,
{ be_const_key_weak(endpoint, 6), be_const_var(2) },
{ be_const_key_weak(get_endpoint, -1), be_const_closure(class_Matter_Plugin_get_endpoint_closure) },
{ be_const_key_weak(FEATURE_MAPS, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, {
be_const_map( * be_nested_map(3,
be_const_map( * be_nested_map(4,
( (struct bmapnode*) &(const bmapnode[]) {
{ be_const_key_int(258, -1), be_const_int(5) },
{ be_const_key_int(49, 2), be_const_int(4) },
{ be_const_key_int(8, -1), be_const_int(3) },
{ be_const_key_int(49, -1), be_const_int(4) },
{ be_const_key_int(258, 3), be_const_int(5) },
{ be_const_key_int(514, -1), be_const_int(2) },
})) ) } )) },
{ be_const_key_weak(ARG, -1), be_nested_str_weak() },

View File

@ -3,8 +3,8 @@
* Generated code, don't edit *
\********************************************************************/
#include "be_constobj.h"
// compact class 'Matter_Plugin_Light2' ktab size: 52, total: 91 (saved 312 bytes)
static const bvalue be_ktab_class_Matter_Plugin_Light2[52] = {
// compact class 'Matter_Plugin_Light2' ktab size: 53, total: 92 (saved 312 bytes)
static const bvalue be_ktab_class_Matter_Plugin_Light2[53] = {
/* K0 */ be_nested_str_weak(find),
/* K1 */ be_nested_str_weak(CT),
/* K2 */ be_nested_str_weak(set_ct),
@ -15,48 +15,49 @@ static const bvalue be_ktab_class_Matter_Plugin_Light2[52] = {
/* K7 */ be_nested_str_weak(attribute),
/* K8 */ be_nested_str_weak(update_shadow_lazy),
/* K9 */ be_nested_str_weak(set_or_nil),
/* K10 */ be_nested_str_weak(U1),
/* K10 */ be_nested_str_weak(U2),
/* K11 */ be_nested_str_weak(shadow_ct),
/* K12 */ be_nested_str_weak(set),
/* K13 */ be_const_int(2),
/* K14 */ be_const_int(0),
/* K15 */ be_nested_str_weak(ct_min),
/* K16 */ be_nested_str_weak(ct_max),
/* K17 */ be_nested_str_weak(U4),
/* K18 */ be_nested_str_weak(read_attribute),
/* K19 */ be_nested_str_weak(VIRTUAL),
/* K20 */ be_nested_str_weak(BRIDGE),
/* K21 */ be_nested_str_weak(light),
/* K22 */ be_nested_str_weak(update_ct_minmax),
/* K23 */ be_nested_str_weak(update_shadow),
/* K24 */ be_nested_str_weak(get),
/* K25 */ be_nested_str_weak(light_index),
/* K26 */ be_nested_str_weak(ct),
/* K27 */ be_nested_str_weak(attribute_updated),
/* K28 */ be_nested_str_weak(call_remote_sync),
/* K29 */ be_nested_str_weak(parse_status),
/* K30 */ be_nested_str_weak(),
/* K31 */ be_const_int(1000000),
/* K32 */ be_nested_str_weak(_X25iK),
/* K33 */ be_nested_str_weak(_X26_X239898_X3B_X20),
/* K34 */ be_nested_str_weak(webserver),
/* K35 */ be_nested_str_weak(web_values_prefix),
/* K36 */ be_nested_str_weak(content_send),
/* K37 */ be_nested_str_weak(_X25s_X20_X25s_X20_X25s),
/* K38 */ be_nested_str_weak(web_value_onoff),
/* K39 */ be_nested_str_weak(shadow_onoff),
/* K40 */ be_nested_str_weak(web_value_dimmer),
/* K41 */ be_nested_str_weak(web_value_ct),
/* K42 */ be_nested_str_weak(init),
/* K43 */ be_const_int(1),
/* K44 */ be_nested_str_weak(command),
/* K45 */ be_nested_str_weak(findsubval),
/* K46 */ be_nested_str_weak(log),
/* K47 */ be_nested_str_weak(ct_X3A),
/* K48 */ be_nested_str_weak(publish_command),
/* K49 */ be_nested_str_weak(invoke_request),
/* K50 */ be_nested_str_weak(tasmota),
/* K51 */ be_nested_str_weak(get_option),
/* K13 */ be_nested_str_weak(U1),
/* K14 */ be_const_int(2),
/* K15 */ be_const_int(0),
/* K16 */ be_nested_str_weak(ct_min),
/* K17 */ be_nested_str_weak(ct_max),
/* K18 */ be_nested_str_weak(U4),
/* K19 */ be_nested_str_weak(read_attribute),
/* K20 */ be_nested_str_weak(VIRTUAL),
/* K21 */ be_nested_str_weak(BRIDGE),
/* K22 */ be_nested_str_weak(light),
/* K23 */ be_nested_str_weak(update_ct_minmax),
/* K24 */ be_nested_str_weak(update_shadow),
/* K25 */ be_nested_str_weak(get),
/* K26 */ be_nested_str_weak(light_index),
/* K27 */ be_nested_str_weak(ct),
/* K28 */ be_nested_str_weak(attribute_updated),
/* K29 */ be_nested_str_weak(call_remote_sync),
/* K30 */ be_nested_str_weak(parse_status),
/* K31 */ be_nested_str_weak(),
/* K32 */ be_const_int(1000000),
/* K33 */ be_nested_str_weak(_X25iK),
/* K34 */ be_nested_str_weak(_X26_X239898_X3B_X20),
/* K35 */ be_nested_str_weak(webserver),
/* K36 */ be_nested_str_weak(web_values_prefix),
/* K37 */ be_nested_str_weak(content_send),
/* K38 */ be_nested_str_weak(_X25s_X20_X25s_X20_X25s),
/* K39 */ be_nested_str_weak(web_value_onoff),
/* K40 */ be_nested_str_weak(shadow_onoff),
/* K41 */ be_nested_str_weak(web_value_dimmer),
/* K42 */ be_nested_str_weak(web_value_ct),
/* K43 */ be_nested_str_weak(init),
/* K44 */ be_const_int(1),
/* K45 */ be_nested_str_weak(command),
/* K46 */ be_nested_str_weak(findsubval),
/* K47 */ be_nested_str_weak(log),
/* K48 */ be_nested_str_weak(ct_X3A),
/* K49 */ be_nested_str_weak(publish_command),
/* K50 */ be_nested_str_weak(invoke_request),
/* K51 */ be_nested_str_weak(tasmota),
/* K52 */ be_nested_str_weak(get_option),
};
@ -119,14 +120,14 @@ be_local_closure(class_Matter_Plugin_Light2_read_attribute, /* name */
&be_ktab_class_Matter_Plugin_Light2, /* shared constants */
be_str_weak(read_attribute),
&be_const_str_solidified,
( &(const binstruction[71]) { /* code */
( &(const binstruction[98]) { /* code */
0xB8120800, // 0000 GETNGBL R4 K4
0x88100905, // 0001 GETMBR R4 R4 K5
0x88140506, // 0002 GETMBR R5 R2 K6
0x88180507, // 0003 GETMBR R6 R2 K7
0x541E02FF, // 0004 LDINT R7 768
0x1C1C0A07, // 0005 EQ R7 R5 R7
0x781E0036, // 0006 JMPF R7 #003E
0x781E0051, // 0006 JMPF R7 #0059
0x8C1C0108, // 0007 GETMET R7 R0 K8
0x7C1C0200, // 0008 CALL R7 1
0x541E0006, // 0009 LDINT R7 7
@ -137,60 +138,87 @@ be_local_closure(class_Matter_Plugin_Light2_read_attribute, /* name */
0x8828010B, // 000E GETMBR R10 R0 K11
0x7C1C0600, // 000F CALL R7 3
0x80040E00, // 0010 RET 1 R7
0x7002002B, // 0011 JMP #003E
0x70020046, // 0011 JMP #0059
0x541E0007, // 0012 LDINT R7 8
0x1C1C0C07, // 0013 EQ R7 R6 R7
0x781E0005, // 0014 JMPF R7 #001B
0x8C1C070C, // 0015 GETMET R7 R3 K12
0x8824090A, // 0016 GETMBR R9 R4 K10
0x5828000D, // 0017 LDCONST R10 K13
0x8824090D, // 0016 GETMBR R9 R4 K13
0x5828000E, // 0017 LDCONST R10 K14
0x7C1C0600, // 0018 CALL R7 3
0x80040E00, // 0019 RET 1 R7
0x70020022, // 001A JMP #003E
0x7002003D, // 001A JMP #0059
0x541E000E, // 001B LDINT R7 15
0x1C1C0C07, // 001C EQ R7 R6 R7
0x781E0005, // 001D JMPF R7 #0024
0x8C1C070C, // 001E GETMET R7 R3 K12
0x8824090A, // 001F GETMBR R9 R4 K10
0x5828000E, // 0020 LDCONST R10 K14
0x8824090D, // 001F GETMBR R9 R4 K13
0x5828000F, // 0020 LDCONST R10 K15
0x7C1C0600, // 0021 CALL R7 3
0x80040E00, // 0022 RET 1 R7
0x70020019, // 0023 JMP #003E
0x541E400A, // 0024 LDINT R7 16395
0x70020034, // 0023 JMP #0059
0x541E4000, // 0024 LDINT R7 16385
0x1C1C0C07, // 0025 EQ R7 R6 R7
0x781E0005, // 0026 JMPF R7 #002D
0x8C1C070C, // 0027 GETMET R7 R3 K12
0x8824090A, // 0028 GETMBR R9 R4 K10
0x8828010F, // 0029 GETMBR R10 R0 K15
0x8824090D, // 0028 GETMBR R9 R4 K13
0x5828000E, // 0029 LDCONST R10 K14
0x7C1C0600, // 002A CALL R7 3
0x80040E00, // 002B RET 1 R7
0x70020010, // 002C JMP #003E
0x541E400B, // 002D LDINT R7 16396
0x7002002B, // 002C JMP #0059
0x541E4009, // 002D LDINT R7 16394
0x1C1C0C07, // 002E EQ R7 R6 R7
0x781E0005, // 002F JMPF R7 #0036
0x8C1C070C, // 0030 GETMET R7 R3 K12
0x8824090A, // 0031 GETMBR R9 R4 K10
0x88280110, // 0032 GETMBR R10 R0 K16
0x542A000F, // 0032 LDINT R10 16
0x7C1C0600, // 0033 CALL R7 3
0x80040E00, // 0034 RET 1 R7
0x70020007, // 0035 JMP #003E
0x541EFFFB, // 0036 LDINT R7 65532
0x70020022, // 0035 JMP #0059
0x541E400A, // 0036 LDINT R7 16395
0x1C1C0C07, // 0037 EQ R7 R6 R7
0x781E0004, // 0038 JMPF R7 #003E
0x781E0005, // 0038 JMPF R7 #003F
0x8C1C070C, // 0039 GETMET R7 R3 K12
0x88240911, // 003A GETMBR R9 R4 K17
0x542A000F, // 003B LDINT R10 16
0x8824090A, // 003A GETMBR R9 R4 K10
0x88280110, // 003B GETMBR R10 R0 K16
0x7C1C0600, // 003C CALL R7 3
0x80040E00, // 003D RET 1 R7
0x601C0003, // 003E GETGBL R7 G3
0x5C200000, // 003F MOVE R8 R0
0x7C1C0200, // 0040 CALL R7 1
0x8C1C0F12, // 0041 GETMET R7 R7 K18
0x5C240200, // 0042 MOVE R9 R1
0x5C280400, // 0043 MOVE R10 R2
0x5C2C0600, // 0044 MOVE R11 R3
0x7C1C0800, // 0045 CALL R7 4
0x70020019, // 003E JMP #0059
0x541E400B, // 003F LDINT R7 16396
0x1C1C0C07, // 0040 EQ R7 R6 R7
0x781E0005, // 0041 JMPF R7 #0048
0x8C1C070C, // 0042 GETMET R7 R3 K12
0x8824090A, // 0043 GETMBR R9 R4 K10
0x88280111, // 0044 GETMBR R10 R0 K17
0x7C1C0600, // 0045 CALL R7 3
0x80040E00, // 0046 RET 1 R7
0x70020010, // 0047 JMP #0059
0x541E000F, // 0048 LDINT R7 16
0x1C1C0C07, // 0049 EQ R7 R6 R7
0x781E0005, // 004A JMPF R7 #0051
0x8C1C070C, // 004B GETMET R7 R3 K12
0x8824090D, // 004C GETMBR R9 R4 K13
0x5828000F, // 004D LDCONST R10 K15
0x7C1C0600, // 004E CALL R7 3
0x80040E00, // 004F RET 1 R7
0x70020007, // 0050 JMP #0059
0x541EFFFB, // 0051 LDINT R7 65532
0x1C1C0C07, // 0052 EQ R7 R6 R7
0x781E0004, // 0053 JMPF R7 #0059
0x8C1C070C, // 0054 GETMET R7 R3 K12
0x88240912, // 0055 GETMBR R9 R4 K18
0x542A000F, // 0056 LDINT R10 16
0x7C1C0600, // 0057 CALL R7 3
0x80040E00, // 0058 RET 1 R7
0x601C0003, // 0059 GETGBL R7 G3
0x5C200000, // 005A MOVE R8 R0
0x7C1C0200, // 005B CALL R7 1
0x8C1C0F13, // 005C GETMET R7 R7 K19
0x5C240200, // 005D MOVE R9 R1
0x5C280400, // 005E MOVE R10 R2
0x5C2C0600, // 005F MOVE R11 R3
0x7C1C0800, // 0060 CALL R7 4
0x80040E00, // 0061 RET 1 R7
})
)
);
@ -214,26 +242,26 @@ be_local_closure(class_Matter_Plugin_Light2_update_shadow, /* name */
be_str_weak(update_shadow),
&be_const_str_solidified,
( &(const binstruction[41]) { /* code */
0x88040113, // 0000 GETMBR R1 R0 K19
0x88040114, // 0000 GETMBR R1 R0 K20
0x74060020, // 0001 JMPT R1 #0023
0x88040114, // 0002 GETMBR R1 R0 K20
0x88040115, // 0002 GETMBR R1 R0 K21
0x7406001E, // 0003 JMPT R1 #0023
0xA4062A00, // 0004 IMPORT R1 K21
0x8C080116, // 0005 GETMET R2 R0 K22
0xA4062C00, // 0004 IMPORT R1 K22
0x8C080117, // 0005 GETMET R2 R0 K23
0x7C080200, // 0006 CALL R2 1
0x60080003, // 0007 GETGBL R2 G3
0x5C0C0000, // 0008 MOVE R3 R0
0x7C080200, // 0009 CALL R2 1
0x8C080517, // 000A GETMET R2 R2 K23
0x8C080518, // 000A GETMET R2 R2 K24
0x7C080200, // 000B CALL R2 1
0x8C080318, // 000C GETMET R2 R1 K24
0x88100119, // 000D GETMBR R4 R0 K25
0x8C080319, // 000C GETMET R2 R1 K25
0x8810011A, // 000D GETMBR R4 R0 K26
0x7C080400, // 000E CALL R2 2
0x4C0C0000, // 000F LDNIL R3
0x200C0403, // 0010 NE R3 R2 R3
0x780E000F, // 0011 JMPF R3 #0022
0x8C0C0500, // 0012 GETMET R3 R2 K0
0x5814001A, // 0013 LDCONST R5 K26
0x5814001B, // 0013 LDCONST R5 K27
0x4C180000, // 0014 LDNIL R6
0x7C0C0600, // 0015 CALL R3 3
0x4C100000, // 0016 LDNIL R4
@ -243,7 +271,7 @@ be_local_closure(class_Matter_Plugin_Light2_update_shadow, /* name */
0x8810010B, // 001A GETMBR R4 R0 K11
0x20100604, // 001B NE R4 R3 R4
0x78120004, // 001C JMPF R4 #0022
0x8C10011B, // 001D GETMET R4 R0 K27
0x8C10011C, // 001D GETMET R4 R0 K28
0x541A02FF, // 001E LDINT R6 768
0x541E0006, // 001F LDINT R7 7
0x7C100600, // 0020 CALL R4 3
@ -252,7 +280,7 @@ be_local_closure(class_Matter_Plugin_Light2_update_shadow, /* name */
0x60040003, // 0023 GETGBL R1 G3
0x5C080000, // 0024 MOVE R2 R0
0x7C040200, // 0025 CALL R1 1
0x8C040317, // 0026 GETMET R1 R1 K23
0x8C040318, // 0026 GETMET R1 R1 K24
0x7C040200, // 0027 CALL R1 1
0x80000000, // 0028 RET 0
})
@ -278,17 +306,17 @@ be_local_closure(class_Matter_Plugin_Light2_set_ct, /* name */
be_str_weak(set_ct),
&be_const_str_solidified,
( &(const binstruction[45]) { /* code */
0x8808010F, // 0000 GETMBR R2 R0 K15
0x88080110, // 0000 GETMBR R2 R0 K16
0x14080202, // 0001 LT R2 R1 R2
0x780A0000, // 0002 JMPF R2 #0004
0x8804010F, // 0003 GETMBR R1 R0 K15
0x88080110, // 0004 GETMBR R2 R0 K16
0x88040110, // 0003 GETMBR R1 R0 K16
0x88080111, // 0004 GETMBR R2 R0 K17
0x24080202, // 0005 GT R2 R1 R2
0x780A0000, // 0006 JMPF R2 #0008
0x88040110, // 0007 GETMBR R1 R0 K16
0x88080114, // 0008 GETMBR R2 R0 K20
0x88040111, // 0007 GETMBR R1 R0 K17
0x88080115, // 0008 GETMBR R2 R0 K21
0x780A000D, // 0009 JMPF R2 #0018
0x8C08011C, // 000A GETMET R2 R0 K28
0x8C08011D, // 000A GETMET R2 R0 K29
0x58100001, // 000B LDCONST R4 K1
0x60140008, // 000C GETGBL R5 G8
0x5C180200, // 000D MOVE R6 R1
@ -297,30 +325,30 @@ be_local_closure(class_Matter_Plugin_Light2_set_ct, /* name */
0x4C0C0000, // 0010 LDNIL R3
0x200C0403, // 0011 NE R3 R2 R3
0x780E0003, // 0012 JMPF R3 #0017
0x8C0C011D, // 0013 GETMET R3 R0 K29
0x8C0C011E, // 0013 GETMET R3 R0 K30
0x5C140400, // 0014 MOVE R5 R2
0x541A000A, // 0015 LDINT R6 11
0x7C0C0600, // 0016 CALL R3 3
0x70020013, // 0017 JMP #002C
0x88080113, // 0018 GETMBR R2 R0 K19
0x88080114, // 0018 GETMBR R2 R0 K20
0x780A0008, // 0019 JMPF R2 #0023
0x8808010B, // 001A GETMBR R2 R0 K11
0x20080202, // 001B NE R2 R1 R2
0x780A0004, // 001C JMPF R2 #0022
0x8C08011B, // 001D GETMET R2 R0 K27
0x8C08011C, // 001D GETMET R2 R0 K28
0x541202FF, // 001E LDINT R4 768
0x54160006, // 001F LDINT R5 7
0x7C080600, // 0020 CALL R2 3
0x90021601, // 0021 SETMBR R0 K11 R1
0x70020008, // 0022 JMP #002C
0xA40A2A00, // 0023 IMPORT R2 K21
0xA40A2C00, // 0023 IMPORT R2 K22
0x8C0C050C, // 0024 GETMET R3 R2 K12
0x60140013, // 0025 GETGBL R5 G19
0x7C140000, // 0026 CALL R5 0
0x98163401, // 0027 SETIDX R5 K26 R1
0x88180119, // 0028 GETMBR R6 R0 K25
0x98163601, // 0027 SETIDX R5 K27 R1
0x8818011A, // 0028 GETMBR R6 R0 K26
0x7C0C0600, // 0029 CALL R3 3
0x8C0C0117, // 002A GETMET R3 R0 K23
0x8C0C0118, // 002A GETMET R3 R0 K24
0x7C0C0200, // 002B CALL R3 1
0x80000000, // 002C RET 0
})
@ -349,7 +377,7 @@ be_local_closure(class_Matter_Plugin_Light2_parse_status, /* name */
0x600C0003, // 0000 GETGBL R3 G3
0x5C100000, // 0001 MOVE R4 R0
0x7C0C0200, // 0002 CALL R3 1
0x8C0C071D, // 0003 GETMET R3 R3 K29
0x8C0C071E, // 0003 GETMET R3 R3 K30
0x5C140200, // 0004 MOVE R5 R1
0x5C180400, // 0005 MOVE R6 R2
0x7C0C0600, // 0006 CALL R3 3
@ -367,15 +395,15 @@ be_local_closure(class_Matter_Plugin_Light2_parse_status, /* name */
0x8810010B, // 0012 GETMBR R4 R0 K11
0x20100604, // 0013 NE R4 R3 R4
0x7812000C, // 0014 JMPF R4 #0022
0x8810010F, // 0015 GETMBR R4 R0 K15
0x88100110, // 0015 GETMBR R4 R0 K16
0x14100604, // 0016 LT R4 R3 R4
0x78120000, // 0017 JMPF R4 #0019
0x880C010F, // 0018 GETMBR R3 R0 K15
0x88100110, // 0019 GETMBR R4 R0 K16
0x880C0110, // 0018 GETMBR R3 R0 K16
0x88100111, // 0019 GETMBR R4 R0 K17
0x24100604, // 001A GT R4 R3 R4
0x78120000, // 001B JMPF R4 #001D
0x880C0110, // 001C GETMBR R3 R0 K16
0x8C10011B, // 001D GETMET R4 R0 K27
0x880C0111, // 001C GETMBR R3 R0 K17
0x8C10011C, // 001D GETMET R4 R0 K28
0x541A02FF, // 001E LDINT R6 768
0x541E0006, // 001F LDINT R7 7
0x7C100600, // 0020 CALL R4 3
@ -404,13 +432,13 @@ be_local_closure(class_Matter_Plugin_Light2_web_value_ct, /* name */
be_str_weak(web_value_ct),
&be_const_str_solidified,
( &(const binstruction[20]) { /* code */
0x5804001E, // 0000 LDCONST R1 K30
0x5804001F, // 0000 LDCONST R1 K31
0x8808010B, // 0001 GETMBR R2 R0 K11
0x4C0C0000, // 0002 LDNIL R3
0x20080403, // 0003 NE R2 R2 R3
0x780A000C, // 0004 JMPF R2 #0012
0x8808010B, // 0005 GETMBR R2 R0 K11
0x0C0A3E02, // 0006 DIV R2 K31 R2
0x0C0A4002, // 0006 DIV R2 K32 R2
0x540E0018, // 0007 LDINT R3 25
0x00080403, // 0008 ADD R2 R2 R3
0x540E0031, // 0009 LDINT R3 50
@ -418,11 +446,11 @@ be_local_closure(class_Matter_Plugin_Light2_web_value_ct, /* name */
0x540E0031, // 000B LDINT R3 50
0x08080403, // 000C MUL R2 R2 R3
0x600C0018, // 000D GETGBL R3 G24
0x58100020, // 000E LDCONST R4 K32
0x58100021, // 000E LDCONST R4 K33
0x5C140400, // 000F MOVE R5 R2
0x7C0C0400, // 0010 CALL R3 2
0x5C040600, // 0011 MOVE R1 R3
0x000A4201, // 0012 ADD R2 K33 R1
0x000A4401, // 0012 ADD R2 K34 R1
0x80040400, // 0013 RET 1 R2
})
)
@ -447,18 +475,18 @@ be_local_closure(class_Matter_Plugin_Light2_web_values, /* name */
be_str_weak(web_values),
&be_const_str_solidified,
( &(const binstruction[16]) { /* code */
0xA4064400, // 0000 IMPORT R1 K34
0x8C080123, // 0001 GETMET R2 R0 K35
0xA4064600, // 0000 IMPORT R1 K35
0x8C080124, // 0001 GETMET R2 R0 K36
0x7C080200, // 0002 CALL R2 1
0x8C080324, // 0003 GETMET R2 R1 K36
0x8C080325, // 0003 GETMET R2 R1 K37
0x60100018, // 0004 GETGBL R4 G24
0x58140025, // 0005 LDCONST R5 K37
0x8C180126, // 0006 GETMET R6 R0 K38
0x88200127, // 0007 GETMBR R8 R0 K39
0x58140026, // 0005 LDCONST R5 K38
0x8C180127, // 0006 GETMET R6 R0 K39
0x88200128, // 0007 GETMBR R8 R0 K40
0x7C180400, // 0008 CALL R6 2
0x8C1C0128, // 0009 GETMET R7 R0 K40
0x8C1C0129, // 0009 GETMET R7 R0 K41
0x7C1C0200, // 000A CALL R7 1
0x8C200129, // 000B GETMET R8 R0 K41
0x8C20012A, // 000B GETMET R8 R0 K42
0x7C200200, // 000C CALL R8 1
0x7C100800, // 000D CALL R4 4
0x7C080400, // 000E CALL R2 2
@ -489,24 +517,24 @@ be_local_closure(class_Matter_Plugin_Light2_init, /* name */
0x60100003, // 0000 GETGBL R4 G3
0x5C140000, // 0001 MOVE R5 R0
0x7C100200, // 0002 CALL R4 1
0x8C10092A, // 0003 GETMET R4 R4 K42
0x8C10092B, // 0003 GETMET R4 R4 K43
0x5C180200, // 0004 MOVE R6 R1
0x5C1C0400, // 0005 MOVE R7 R2
0x5C200600, // 0006 MOVE R8 R3
0x7C100800, // 0007 CALL R4 4
0x88100114, // 0008 GETMBR R4 R0 K20
0x88100115, // 0008 GETMBR R4 R0 K21
0x74120009, // 0009 JMPT R4 #0014
0x54120144, // 000A LDINT R4 325
0x90021604, // 000B SETMBR R0 K11 R4
0xA4122A00, // 000C IMPORT R4 K21
0x8C140918, // 000D GETMET R5 R4 K24
0x581C002B, // 000E LDCONST R7 K43
0xA4122C00, // 000C IMPORT R4 K22
0x8C140919, // 000D GETMET R5 R4 K25
0x581C002C, // 000E LDCONST R7 K44
0x7C140400, // 000F CALL R5 2
0x4C180000, // 0010 LDNIL R6
0x20140A06, // 0011 NE R5 R5 R6
0x78160000, // 0012 JMPF R5 #0014
0x9002332B, // 0013 SETMBR R0 K25 K43
0x8C100116, // 0014 GETMET R4 R0 K22
0x9002352C, // 0013 SETMBR R0 K26 K44
0x8C100117, // 0014 GETMET R4 R0 K23
0x7C100200, // 0015 CALL R4 1
0x80000000, // 0016 RET 0
})
@ -535,7 +563,7 @@ be_local_closure(class_Matter_Plugin_Light2_invoke_request, /* name */
0xB8120800, // 0000 GETNGBL R4 K4
0x88100905, // 0001 GETMBR R4 R4 K5
0x88140706, // 0002 GETMBR R5 R3 K6
0x8818072C, // 0003 GETMBR R6 R3 K44
0x8818072D, // 0003 GETMBR R6 R3 K45
0x541E02FF, // 0004 LDINT R7 768
0x1C1C0A07, // 0005 EQ R7 R5 R7
0x781E0030, // 0006 JMPF R7 #0038
@ -544,26 +572,26 @@ be_local_closure(class_Matter_Plugin_Light2_invoke_request, /* name */
0x541E0009, // 0009 LDINT R7 10
0x1C1C0C07, // 000A EQ R7 R6 R7
0x781E0019, // 000B JMPF R7 #0026
0x8C1C052D, // 000C GETMET R7 R2 K45
0x5824000E, // 000D LDCONST R9 K14
0x8C1C052E, // 000C GETMET R7 R2 K46
0x5824000F, // 000D LDCONST R9 K15
0x7C1C0400, // 000E CALL R7 2
0x8820010F, // 000F GETMBR R8 R0 K15
0x88200110, // 000F GETMBR R8 R0 K16
0x14200E08, // 0010 LT R8 R7 R8
0x78220000, // 0011 JMPF R8 #0013
0x881C010F, // 0012 GETMBR R7 R0 K15
0x88200110, // 0013 GETMBR R8 R0 K16
0x881C0110, // 0012 GETMBR R7 R0 K16
0x88200111, // 0013 GETMBR R8 R0 K17
0x24200E08, // 0014 GT R8 R7 R8
0x78220000, // 0015 JMPF R8 #0017
0x881C0110, // 0016 GETMBR R7 R0 K16
0x881C0111, // 0016 GETMBR R7 R0 K17
0x8C200102, // 0017 GETMET R8 R0 K2
0x5C280E00, // 0018 MOVE R10 R7
0x7C200400, // 0019 CALL R8 2
0x60200008, // 001A GETGBL R8 G8
0x5C240E00, // 001B MOVE R9 R7
0x7C200200, // 001C CALL R8 1
0x00225E08, // 001D ADD R8 K47 R8
0x900E5C08, // 001E SETMBR R3 K46 R8
0x8C200130, // 001F GETMET R8 R0 K48
0x00226008, // 001D ADD R8 K48 R8
0x900E5E08, // 001E SETMBR R3 K47 R8
0x8C200131, // 001F GETMET R8 R0 K49
0x58280001, // 0020 LDCONST R10 K1
0x5C2C0E00, // 0021 MOVE R11 R7
0x7C200600, // 0022 CALL R8 3
@ -591,7 +619,7 @@ be_local_closure(class_Matter_Plugin_Light2_invoke_request, /* name */
0x601C0003, // 0038 GETGBL R7 G3
0x5C200000, // 0039 MOVE R8 R0
0x7C1C0200, // 003A CALL R7 1
0x8C1C0F31, // 003B GETMET R7 R7 K49
0x8C1C0F32, // 003B GETMET R7 R7 K50
0x5C240200, // 003C MOVE R9 R1
0x5C280400, // 003D MOVE R10 R2
0x5C2C0600, // 003E MOVE R11 R3
@ -621,20 +649,20 @@ be_local_closure(class_Matter_Plugin_Light2_update_ct_minmax, /* name */
be_str_weak(update_ct_minmax),
&be_const_str_solidified,
( &(const binstruction[15]) { /* code */
0xB8066400, // 0000 GETNGBL R1 K50
0x8C040333, // 0001 GETMET R1 R1 K51
0xB8066600, // 0000 GETNGBL R1 K51
0x8C040334, // 0001 GETMET R1 R1 K52
0x540E0051, // 0002 LDINT R3 82
0x7C040400, // 0003 CALL R1 2
0x78060001, // 0004 JMPF R1 #0007
0x540A00C7, // 0005 LDINT R2 200
0x70020000, // 0006 JMP #0008
0x540A0098, // 0007 LDINT R2 153
0x90021E02, // 0008 SETMBR R0 K15 R2
0x90022002, // 0008 SETMBR R0 K16 R2
0x78060001, // 0009 JMPF R1 #000C
0x540A017B, // 000A LDINT R2 380
0x70020000, // 000B JMP #000D
0x540A01F3, // 000C LDINT R2 500
0x90022002, // 000D SETMBR R0 K16 R2
0x90022202, // 000D SETMBR R0 K17 R2
0x80000000, // 000E RET 0
})
)
@ -679,7 +707,7 @@ be_local_class(Matter_Plugin_Light2,
{ be_const_key_int(4, -1), be_const_bytes_instance(0000FFF8FFF9FFFAFFFBFFFCFFFD) },
{ be_const_key_int(5, 2), be_const_bytes_instance(000000010002000300040005FFF8FFF9FFFAFFFBFFFCFFFD) },
{ be_const_key_int(6, -1), be_const_bytes_instance(0000FFF8FFF9FFFAFFFBFFFCFFFD) },
{ be_const_key_int(768, -1), be_const_bytes_instance(00070008000F400B400CFFF8FFF9FFFAFFFBFFFCFFFD) },
{ be_const_key_int(768, -1), be_const_bytes_instance(00070008000F00104001400A400B400CFFF8FFF9FFFAFFFBFFFCFFFD) },
})) ) } )) },
{ be_const_key_weak(init, -1), be_const_closure(class_Matter_Plugin_Light2_init_closure) },
{ be_const_key_weak(invoke_request, -1), be_const_closure(class_Matter_Plugin_Light2_invoke_request_closure) },

View File

@ -3,8 +3,8 @@
* Generated code, don't edit *
\********************************************************************/
#include "be_constobj.h"
// compact class 'Matter_Plugin_Light3' ktab size: 66, total: 113 (saved 376 bytes)
static const bvalue be_ktab_class_Matter_Plugin_Light3[66] = {
// compact class 'Matter_Plugin_Light3' ktab size: 67, total: 114 (saved 376 bytes)
static const bvalue be_ktab_class_Matter_Plugin_Light3[67] = {
/* K0 */ be_nested_str_weak(matter),
/* K1 */ be_nested_str_weak(TLV),
/* K2 */ be_nested_str_weak(cluster),
@ -30,47 +30,48 @@ static const bvalue be_ktab_class_Matter_Plugin_Light3[66] = {
/* K22 */ be_nested_str_weak(shadow_hue),
/* K23 */ be_nested_str_weak(shadow_sat),
/* K24 */ be_nested_str_weak(set),
/* K25 */ be_nested_str_weak(U4),
/* K26 */ be_nested_str_weak(read_attribute),
/* K27 */ be_nested_str_weak(VIRTUAL),
/* K28 */ be_nested_str_weak(BRIDGE),
/* K29 */ be_nested_str_weak(light),
/* K30 */ be_nested_str_weak(update_shadow),
/* K31 */ be_nested_str_weak(get),
/* K32 */ be_nested_str_weak(light_index),
/* K33 */ be_nested_str_weak(find),
/* K34 */ be_nested_str_weak(hue),
/* K35 */ be_nested_str_weak(sat),
/* K36 */ be_nested_str_weak(tasmota),
/* K37 */ be_nested_str_weak(scale_uint),
/* K38 */ be_nested_str_weak(attribute_updated),
/* K39 */ be_nested_str_weak(update_virtual),
/* K40 */ be_nested_str_weak(call_remote_sync),
/* K41 */ be_nested_str_weak(HSBColor1),
/* K42 */ be_nested_str_weak(parse_status),
/* K43 */ be_nested_str_weak(HSBColor2),
/* K44 */ be_nested_str_weak(init),
/* K45 */ be_nested_str_weak(webserver),
/* K46 */ be_nested_str_weak(web_values_prefix),
/* K47 */ be_nested_str_weak(content_send),
/* K48 */ be_nested_str_weak(_X25s_X20_X25s_X20_X25s),
/* K49 */ be_nested_str_weak(web_value_onoff),
/* K50 */ be_nested_str_weak(shadow_onoff),
/* K51 */ be_nested_str_weak(web_value_dimmer),
/* K52 */ be_nested_str_weak(web_value_RGB),
/* K53 */ be_nested_str_weak(HSBColor),
/* K54 */ be_nested_str_weak(string),
/* K55 */ be_nested_str_weak(split),
/* K56 */ be_nested_str_weak(_X2C),
/* K57 */ be_nested_str_weak(light_state),
/* K58 */ be_nested_str_weak(set_bri),
/* K59 */ be_nested_str_weak(set_huesat),
/* K60 */ be_nested_str_weak(_X23_X2502X_X2502X_X2502X),
/* K61 */ be_nested_str_weak(r),
/* K62 */ be_nested_str_weak(g),
/* K63 */ be_nested_str_weak(b),
/* K64 */ be_nested_str_weak(_X3Ci_X20class_X3D_X22bxm_X22_X20style_X3D_X22_X2D_X2Dcl_X3A_X25s_X22_X3E_X3C_X2Fi_X3E_X25s),
/* K65 */ be_nested_str_weak(),
/* K25 */ be_nested_str_weak(U2),
/* K26 */ be_nested_str_weak(U4),
/* K27 */ be_nested_str_weak(read_attribute),
/* K28 */ be_nested_str_weak(VIRTUAL),
/* K29 */ be_nested_str_weak(BRIDGE),
/* K30 */ be_nested_str_weak(light),
/* K31 */ be_nested_str_weak(update_shadow),
/* K32 */ be_nested_str_weak(get),
/* K33 */ be_nested_str_weak(light_index),
/* K34 */ be_nested_str_weak(find),
/* K35 */ be_nested_str_weak(hue),
/* K36 */ be_nested_str_weak(sat),
/* K37 */ be_nested_str_weak(tasmota),
/* K38 */ be_nested_str_weak(scale_uint),
/* K39 */ be_nested_str_weak(attribute_updated),
/* K40 */ be_nested_str_weak(update_virtual),
/* K41 */ be_nested_str_weak(call_remote_sync),
/* K42 */ be_nested_str_weak(HSBColor1),
/* K43 */ be_nested_str_weak(parse_status),
/* K44 */ be_nested_str_weak(HSBColor2),
/* K45 */ be_nested_str_weak(init),
/* K46 */ be_nested_str_weak(webserver),
/* K47 */ be_nested_str_weak(web_values_prefix),
/* K48 */ be_nested_str_weak(content_send),
/* K49 */ be_nested_str_weak(_X25s_X20_X25s_X20_X25s),
/* K50 */ be_nested_str_weak(web_value_onoff),
/* K51 */ be_nested_str_weak(shadow_onoff),
/* K52 */ be_nested_str_weak(web_value_dimmer),
/* K53 */ be_nested_str_weak(web_value_RGB),
/* K54 */ be_nested_str_weak(HSBColor),
/* K55 */ be_nested_str_weak(string),
/* K56 */ be_nested_str_weak(split),
/* K57 */ be_nested_str_weak(_X2C),
/* K58 */ be_nested_str_weak(light_state),
/* K59 */ be_nested_str_weak(set_bri),
/* K60 */ be_nested_str_weak(set_huesat),
/* K61 */ be_nested_str_weak(_X23_X2502X_X2502X_X2502X),
/* K62 */ be_nested_str_weak(r),
/* K63 */ be_nested_str_weak(g),
/* K64 */ be_nested_str_weak(b),
/* K65 */ be_nested_str_weak(_X3Ci_X20class_X3D_X22bxm_X22_X20style_X3D_X22_X2D_X2Dcl_X3A_X25s_X22_X3E_X3C_X2Fi_X3E_X25s),
/* K66 */ be_nested_str_weak(),
};
@ -266,7 +267,7 @@ be_local_closure(class_Matter_Plugin_Light3_read_attribute, /* name */
0x1C1C0C07, // 001A EQ R7 R6 R7
0x781E0005, // 001B JMPF R7 #0022
0x8C1C0718, // 001C GETMET R7 R3 K24
0x88240915, // 001D GETMBR R9 R4 K21
0x88240919, // 001D GETMBR R9 R4 K25
0x58280005, // 001E LDCONST R10 K5
0x7C1C0600, // 001F CALL R7 3
0x80040E00, // 0020 RET 1 R7
@ -302,7 +303,7 @@ be_local_closure(class_Matter_Plugin_Light3_read_attribute, /* name */
0x1C1C0C07, // 003E EQ R7 R6 R7
0x781E0005, // 003F JMPF R7 #0046
0x8C1C0718, // 0040 GETMET R7 R3 K24
0x88240915, // 0041 GETMBR R9 R4 K21
0x88240919, // 0041 GETMBR R9 R4 K25
0x5828000C, // 0042 LDCONST R10 K12
0x7C1C0600, // 0043 CALL R7 3
0x80040E00, // 0044 RET 1 R7
@ -320,14 +321,14 @@ be_local_closure(class_Matter_Plugin_Light3_read_attribute, /* name */
0x1C1C0C07, // 0050 EQ R7 R6 R7
0x781E0004, // 0051 JMPF R7 #0057
0x8C1C0718, // 0052 GETMET R7 R3 K24
0x88240919, // 0053 GETMBR R9 R4 K25
0x8824091A, // 0053 GETMBR R9 R4 K26
0x5828000C, // 0054 LDCONST R10 K12
0x7C1C0600, // 0055 CALL R7 3
0x80040E00, // 0056 RET 1 R7
0x601C0003, // 0057 GETGBL R7 G3
0x5C200000, // 0058 MOVE R8 R0
0x7C1C0200, // 0059 CALL R7 1
0x8C1C0F1A, // 005A GETMET R7 R7 K26
0x8C1C0F1B, // 005A GETMET R7 R7 K27
0x5C240200, // 005B MOVE R9 R1
0x5C280400, // 005C MOVE R10 R2
0x5C2C0600, // 005D MOVE R11 R3
@ -356,35 +357,35 @@ be_local_closure(class_Matter_Plugin_Light3_update_shadow, /* name */
be_str_weak(update_shadow),
&be_const_str_solidified,
( &(const binstruction[75]) { /* code */
0x8804011B, // 0000 GETMBR R1 R0 K27
0x8804011C, // 0000 GETMBR R1 R0 K28
0x74060042, // 0001 JMPT R1 #0045
0x8804011C, // 0002 GETMBR R1 R0 K28
0x8804011D, // 0002 GETMBR R1 R0 K29
0x74060040, // 0003 JMPT R1 #0045
0xA4063A00, // 0004 IMPORT R1 K29
0xA4063C00, // 0004 IMPORT R1 K30
0x60080003, // 0005 GETGBL R2 G3
0x5C0C0000, // 0006 MOVE R3 R0
0x7C080200, // 0007 CALL R2 1
0x8C08051E, // 0008 GETMET R2 R2 K30
0x8C08051F, // 0008 GETMET R2 R2 K31
0x7C080200, // 0009 CALL R2 1
0x8C08031F, // 000A GETMET R2 R1 K31
0x88100120, // 000B GETMBR R4 R0 K32
0x8C080320, // 000A GETMET R2 R1 K32
0x88100121, // 000B GETMBR R4 R0 K33
0x7C080400, // 000C CALL R2 2
0x4C0C0000, // 000D LDNIL R3
0x200C0403, // 000E NE R3 R2 R3
0x780E0033, // 000F JMPF R3 #0044
0x8C0C0521, // 0010 GETMET R3 R2 K33
0x58140022, // 0011 LDCONST R5 K34
0x8C0C0522, // 0010 GETMET R3 R2 K34
0x58140023, // 0011 LDCONST R5 K35
0x4C180000, // 0012 LDNIL R6
0x7C0C0600, // 0013 CALL R3 3
0x8C100521, // 0014 GETMET R4 R2 K33
0x58180023, // 0015 LDCONST R6 K35
0x8C100522, // 0014 GETMET R4 R2 K34
0x58180024, // 0015 LDCONST R6 K36
0x4C1C0000, // 0016 LDNIL R7
0x7C100600, // 0017 CALL R4 3
0x4C140000, // 0018 LDNIL R5
0x20140605, // 0019 NE R5 R3 R5
0x78160009, // 001A JMPF R5 #0025
0xB8164800, // 001B GETNGBL R5 K36
0x8C140B25, // 001C GETMET R5 R5 K37
0xB8164A00, // 001B GETNGBL R5 K37
0x8C140B26, // 001C GETMET R5 R5 K38
0x5C1C0600, // 001D MOVE R7 R3
0x58200005, // 001E LDCONST R8 K5
0x54260167, // 001F LDINT R9 360
@ -397,8 +398,8 @@ be_local_closure(class_Matter_Plugin_Light3_update_shadow, /* name */
0x4C140000, // 0026 LDNIL R5
0x20140805, // 0027 NE R5 R4 R5
0x78160009, // 0028 JMPF R5 #0033
0xB8164800, // 0029 GETNGBL R5 K36
0x8C140B25, // 002A GETMET R5 R5 K37
0xB8164A00, // 0029 GETNGBL R5 K37
0x8C140B26, // 002A GETMET R5 R5 K38
0x5C1C0800, // 002B MOVE R7 R4
0x58200005, // 002C LDCONST R8 K5
0x542600FE, // 002D LDINT R9 255
@ -411,7 +412,7 @@ be_local_closure(class_Matter_Plugin_Light3_update_shadow, /* name */
0x88140116, // 0034 GETMBR R5 R0 K22
0x20140605, // 0035 NE R5 R3 R5
0x78160004, // 0036 JMPF R5 #003C
0x8C140126, // 0037 GETMET R5 R0 K38
0x8C140127, // 0037 GETMET R5 R0 K39
0x541E02FF, // 0038 LDINT R7 768
0x58200005, // 0039 LDCONST R8 K5
0x7C140600, // 003A CALL R5 3
@ -419,7 +420,7 @@ be_local_closure(class_Matter_Plugin_Light3_update_shadow, /* name */
0x88140117, // 003C GETMBR R5 R0 K23
0x20140805, // 003D NE R5 R4 R5
0x78160004, // 003E JMPF R5 #0044
0x8C140126, // 003F GETMET R5 R0 K38
0x8C140127, // 003F GETMET R5 R0 K39
0x541E02FF, // 0040 LDINT R7 768
0x5820000C, // 0041 LDCONST R8 K12
0x7C140600, // 0042 CALL R5 3
@ -428,7 +429,7 @@ be_local_closure(class_Matter_Plugin_Light3_update_shadow, /* name */
0x60040003, // 0045 GETGBL R1 G3
0x5C080000, // 0046 MOVE R2 R0
0x7C040200, // 0047 CALL R1 1
0x8C04031E, // 0048 GETMET R1 R1 K30
0x8C04031F, // 0048 GETMET R1 R1 K31
0x7C040200, // 0049 CALL R1 1
0x80000000, // 004A RET 0
})
@ -455,12 +456,12 @@ be_local_closure(class_Matter_Plugin_Light3_update_virtual, /* name */
&be_const_str_solidified,
( &(const binstruction[27]) { /* code */
0x60080009, // 0000 GETGBL R2 G9
0x8C0C0321, // 0001 GETMET R3 R1 K33
0x8C0C0322, // 0001 GETMET R3 R1 K34
0x5814000B, // 0002 LDCONST R5 K11
0x7C0C0400, // 0003 CALL R3 2
0x7C080200, // 0004 CALL R2 1
0x600C0009, // 0005 GETGBL R3 G9
0x8C100321, // 0006 GETMET R4 R1 K33
0x8C100322, // 0006 GETMET R4 R1 K34
0x58180010, // 0007 LDCONST R6 K16
0x7C100400, // 0008 CALL R4 2
0x7C0C0200, // 0009 CALL R3 1
@ -477,7 +478,7 @@ be_local_closure(class_Matter_Plugin_Light3_update_virtual, /* name */
0x60100003, // 0014 GETGBL R4 G3
0x5C140000, // 0015 MOVE R5 R0
0x7C100200, // 0016 CALL R4 1
0x8C100927, // 0017 GETMET R4 R4 K39
0x8C100928, // 0017 GETMET R4 R4 K40
0x5C180200, // 0018 MOVE R6 R1
0x7C100400, // 0019 CALL R4 2
0x80000000, // 001A RET 0
@ -524,54 +525,54 @@ be_local_closure(class_Matter_Plugin_Light3_set_hue_sat, /* name */
0x240C0403, // 0011 GT R3 R2 R3
0x780E0000, // 0012 JMPF R3 #0014
0x540A00FD, // 0013 LDINT R2 254
0x880C011C, // 0014 GETMBR R3 R0 K28
0x880C011D, // 0014 GETMBR R3 R0 K29
0x780E002C, // 0015 JMPF R3 #0043
0x4C0C0000, // 0016 LDNIL R3
0x200C0203, // 0017 NE R3 R1 R3
0x780E0012, // 0018 JMPF R3 #002C
0xB80E4800, // 0019 GETNGBL R3 K36
0x8C0C0725, // 001A GETMET R3 R3 K37
0xB80E4A00, // 0019 GETNGBL R3 K37
0x8C0C0726, // 001A GETMET R3 R3 K38
0x5C140200, // 001B MOVE R5 R1
0x58180005, // 001C LDCONST R6 K5
0x541E00FD, // 001D LDINT R7 254
0x58200005, // 001E LDCONST R8 K5
0x54260167, // 001F LDINT R9 360
0x7C0C0C00, // 0020 CALL R3 6
0x8C100128, // 0021 GETMET R4 R0 K40
0x58180029, // 0022 LDCONST R6 K41
0x8C100129, // 0021 GETMET R4 R0 K41
0x5818002A, // 0022 LDCONST R6 K42
0x5C1C0600, // 0023 MOVE R7 R3
0x7C100600, // 0024 CALL R4 3
0x4C140000, // 0025 LDNIL R5
0x20140805, // 0026 NE R5 R4 R5
0x78160003, // 0027 JMPF R5 #002C
0x8C14012A, // 0028 GETMET R5 R0 K42
0x8C14012B, // 0028 GETMET R5 R0 K43
0x5C1C0800, // 0029 MOVE R7 R4
0x5422000A, // 002A LDINT R8 11
0x7C140600, // 002B CALL R5 3
0x4C0C0000, // 002C LDNIL R3
0x200C0403, // 002D NE R3 R2 R3
0x780E0012, // 002E JMPF R3 #0042
0xB80E4800, // 002F GETNGBL R3 K36
0x8C0C0725, // 0030 GETMET R3 R3 K37
0xB80E4A00, // 002F GETNGBL R3 K37
0x8C0C0726, // 0030 GETMET R3 R3 K38
0x5C140400, // 0031 MOVE R5 R2
0x58180005, // 0032 LDCONST R6 K5
0x541E00FD, // 0033 LDINT R7 254
0x58200005, // 0034 LDCONST R8 K5
0x54260063, // 0035 LDINT R9 100
0x7C0C0C00, // 0036 CALL R3 6
0x8C100128, // 0037 GETMET R4 R0 K40
0x5818002B, // 0038 LDCONST R6 K43
0x8C100129, // 0037 GETMET R4 R0 K41
0x5818002C, // 0038 LDCONST R6 K44
0x5C1C0600, // 0039 MOVE R7 R3
0x7C100600, // 003A CALL R4 3
0x4C140000, // 003B LDNIL R5
0x20140805, // 003C NE R5 R4 R5
0x78160003, // 003D JMPF R5 #0042
0x8C14012A, // 003E GETMET R5 R0 K42
0x8C14012B, // 003E GETMET R5 R0 K43
0x5C1C0800, // 003F MOVE R7 R4
0x5422000A, // 0040 LDINT R8 11
0x7C140600, // 0041 CALL R5 3
0x70020055, // 0042 JMP #0099
0x880C011B, // 0043 GETMBR R3 R0 K27
0x880C011C, // 0043 GETMBR R3 R0 K28
0x780E0016, // 0044 JMPF R3 #005C
0x4C0C0000, // 0045 LDNIL R3
0x200C0203, // 0046 NE R3 R1 R3
@ -579,7 +580,7 @@ be_local_closure(class_Matter_Plugin_Light3_set_hue_sat, /* name */
0x880C0116, // 0048 GETMBR R3 R0 K22
0x200C0203, // 0049 NE R3 R1 R3
0x780E0004, // 004A JMPF R3 #0050
0x8C0C0126, // 004B GETMET R3 R0 K38
0x8C0C0127, // 004B GETMET R3 R0 K39
0x541602FF, // 004C LDINT R5 768
0x58180005, // 004D LDCONST R6 K5
0x7C0C0600, // 004E CALL R3 3
@ -590,7 +591,7 @@ be_local_closure(class_Matter_Plugin_Light3_set_hue_sat, /* name */
0x880C0117, // 0053 GETMBR R3 R0 K23
0x200C0403, // 0054 NE R3 R2 R3
0x780E0004, // 0055 JMPF R3 #005B
0x8C0C0126, // 0056 GETMET R3 R0 K38
0x8C0C0127, // 0056 GETMET R3 R0 K39
0x541602FF, // 0057 LDINT R5 768
0x5818000C, // 0058 LDCONST R6 K12
0x7C0C0600, // 0059 CALL R3 3
@ -599,8 +600,8 @@ be_local_closure(class_Matter_Plugin_Light3_set_hue_sat, /* name */
0x4C0C0000, // 005C LDNIL R3
0x200C0203, // 005D NE R3 R1 R3
0x780E0008, // 005E JMPF R3 #0068
0xB80E4800, // 005F GETNGBL R3 K36
0x8C0C0725, // 0060 GETMET R3 R3 K37
0xB80E4A00, // 005F GETNGBL R3 K37
0x8C0C0726, // 0060 GETMET R3 R3 K38
0x5C140200, // 0061 MOVE R5 R1
0x58180005, // 0062 LDCONST R6 K5
0x541E00FD, // 0063 LDINT R7 254
@ -612,8 +613,8 @@ be_local_closure(class_Matter_Plugin_Light3_set_hue_sat, /* name */
0x4C100000, // 0069 LDNIL R4
0x20100404, // 006A NE R4 R2 R4
0x78120008, // 006B JMPF R4 #0075
0xB8124800, // 006C GETNGBL R4 K36
0x8C100925, // 006D GETMET R4 R4 K37
0xB8124A00, // 006C GETNGBL R4 K37
0x8C100926, // 006D GETMET R4 R4 K38
0x5C180400, // 006E MOVE R6 R2
0x581C0005, // 006F LDCONST R7 K5
0x542200FD, // 0070 LDINT R8 254
@ -628,34 +629,34 @@ be_local_closure(class_Matter_Plugin_Light3_set_hue_sat, /* name */
0x4C140000, // 0079 LDNIL R5
0x20140805, // 007A NE R5 R4 R5
0x78160008, // 007B JMPF R5 #0085
0xB8163A00, // 007C GETNGBL R5 K29
0xB8163C00, // 007C GETNGBL R5 K30
0x8C140B18, // 007D GETMET R5 R5 K24
0x601C0013, // 007E GETGBL R7 G19
0x7C1C0000, // 007F CALL R7 0
0x981E4403, // 0080 SETIDX R7 K34 R3
0x981E4604, // 0081 SETIDX R7 K35 R4
0x88200120, // 0082 GETMBR R8 R0 K32
0x981E4603, // 0080 SETIDX R7 K35 R3
0x981E4804, // 0081 SETIDX R7 K36 R4
0x88200121, // 0082 GETMBR R8 R0 K33
0x7C140600, // 0083 CALL R5 3
0x70020011, // 0084 JMP #0097
0x4C140000, // 0085 LDNIL R5
0x20140605, // 0086 NE R5 R3 R5
0x78160007, // 0087 JMPF R5 #0090
0xB8163A00, // 0088 GETNGBL R5 K29
0xB8163C00, // 0088 GETNGBL R5 K30
0x8C140B18, // 0089 GETMET R5 R5 K24
0x601C0013, // 008A GETGBL R7 G19
0x7C1C0000, // 008B CALL R7 0
0x981E4403, // 008C SETIDX R7 K34 R3
0x88200120, // 008D GETMBR R8 R0 K32
0x981E4603, // 008C SETIDX R7 K35 R3
0x88200121, // 008D GETMBR R8 R0 K33
0x7C140600, // 008E CALL R5 3
0x70020006, // 008F JMP #0097
0xB8163A00, // 0090 GETNGBL R5 K29
0xB8163C00, // 0090 GETNGBL R5 K30
0x8C140B18, // 0091 GETMET R5 R5 K24
0x601C0013, // 0092 GETGBL R7 G19
0x7C1C0000, // 0093 CALL R7 0
0x981E4604, // 0094 SETIDX R7 K35 R4
0x88200120, // 0095 GETMBR R8 R0 K32
0x981E4804, // 0094 SETIDX R7 K36 R4
0x88200121, // 0095 GETMBR R8 R0 K33
0x7C140600, // 0096 CALL R5 3
0x8C14011E, // 0097 GETMET R5 R0 K30
0x8C14011F, // 0097 GETMET R5 R0 K31
0x7C140200, // 0098 CALL R5 1
0x80000000, // 0099 RET 0
})
@ -684,7 +685,7 @@ be_local_closure(class_Matter_Plugin_Light3_init, /* name */
0x60100003, // 0000 GETGBL R4 G3
0x5C140000, // 0001 MOVE R5 R0
0x7C100200, // 0002 CALL R4 1
0x8C10092C, // 0003 GETMET R4 R4 K44
0x8C10092D, // 0003 GETMET R4 R4 K45
0x5C180200, // 0004 MOVE R6 R1
0x5C1C0400, // 0005 MOVE R7 R2
0x5C200600, // 0006 MOVE R8 R3
@ -715,18 +716,18 @@ be_local_closure(class_Matter_Plugin_Light3_web_values, /* name */
be_str_weak(web_values),
&be_const_str_solidified,
( &(const binstruction[16]) { /* code */
0xA4065A00, // 0000 IMPORT R1 K45
0x8C08012E, // 0001 GETMET R2 R0 K46
0xA4065C00, // 0000 IMPORT R1 K46
0x8C08012F, // 0001 GETMET R2 R0 K47
0x7C080200, // 0002 CALL R2 1
0x8C08032F, // 0003 GETMET R2 R1 K47
0x8C080330, // 0003 GETMET R2 R1 K48
0x60100018, // 0004 GETGBL R4 G24
0x58140030, // 0005 LDCONST R5 K48
0x8C180131, // 0006 GETMET R6 R0 K49
0x88200132, // 0007 GETMBR R8 R0 K50
0x58140031, // 0005 LDCONST R5 K49
0x8C180132, // 0006 GETMET R6 R0 K50
0x88200133, // 0007 GETMBR R8 R0 K51
0x7C180400, // 0008 CALL R6 2
0x8C1C0133, // 0009 GETMET R7 R0 K51
0x8C1C0134, // 0009 GETMET R7 R0 K52
0x7C1C0200, // 000A CALL R7 1
0x8C200134, // 000B GETMET R8 R0 K52
0x8C200135, // 000B GETMET R8 R0 K53
0x7C200200, // 000C CALL R8 1
0x7C100800, // 000D CALL R4 4
0x7C080400, // 000E CALL R2 2
@ -757,21 +758,21 @@ be_local_closure(class_Matter_Plugin_Light3_parse_status, /* name */
0x600C0003, // 0000 GETGBL R3 G3
0x5C100000, // 0001 MOVE R4 R0
0x7C0C0200, // 0002 CALL R3 1
0x8C0C072A, // 0003 GETMET R3 R3 K42
0x8C0C072B, // 0003 GETMET R3 R3 K43
0x5C140200, // 0004 MOVE R5 R1
0x5C180400, // 0005 MOVE R6 R2
0x7C0C0600, // 0006 CALL R3 3
0x540E000A, // 0007 LDINT R3 11
0x1C0C0403, // 0008 EQ R3 R2 R3
0x780E003A, // 0009 JMPF R3 #0045
0x8C0C0321, // 000A GETMET R3 R1 K33
0x58140035, // 000B LDCONST R5 K53
0x8C0C0322, // 000A GETMET R3 R1 K34
0x58140036, // 000B LDCONST R5 K54
0x7C0C0400, // 000C CALL R3 2
0x780E0036, // 000D JMPF R3 #0045
0xA4126C00, // 000E IMPORT R4 K54
0x8C140937, // 000F GETMET R5 R4 K55
0xA4126E00, // 000E IMPORT R4 K55
0x8C140938, // 000F GETMET R5 R4 K56
0x5C1C0600, // 0010 MOVE R7 R3
0x58200038, // 0011 LDCONST R8 K56
0x58200039, // 0011 LDCONST R8 K57
0x7C140600, // 0012 CALL R5 3
0x60180009, // 0013 GETGBL R6 G9
0x941C0B05, // 0014 GETIDX R7 R5 K5
@ -782,8 +783,8 @@ be_local_closure(class_Matter_Plugin_Light3_parse_status, /* name */
0x4C200000, // 0019 LDNIL R8
0x20200C08, // 001A NE R8 R6 R8
0x78220009, // 001B JMPF R8 #0026
0xB8224800, // 001C GETNGBL R8 K36
0x8C201125, // 001D GETMET R8 R8 K37
0xB8224A00, // 001C GETNGBL R8 K37
0x8C201126, // 001D GETMET R8 R8 K38
0x5C280C00, // 001E MOVE R10 R6
0x582C0005, // 001F LDCONST R11 K5
0x54320167, // 0020 LDINT R12 360
@ -796,8 +797,8 @@ be_local_closure(class_Matter_Plugin_Light3_parse_status, /* name */
0x4C200000, // 0027 LDNIL R8
0x20200E08, // 0028 NE R8 R7 R8
0x78220009, // 0029 JMPF R8 #0034
0xB8224800, // 002A GETNGBL R8 K36
0x8C201125, // 002B GETMET R8 R8 K37
0xB8224A00, // 002A GETNGBL R8 K37
0x8C201126, // 002B GETMET R8 R8 K38
0x5C280E00, // 002C MOVE R10 R7
0x582C0005, // 002D LDCONST R11 K5
0x54320063, // 002E LDINT R12 100
@ -810,7 +811,7 @@ be_local_closure(class_Matter_Plugin_Light3_parse_status, /* name */
0x88200116, // 0035 GETMBR R8 R0 K22
0x20200C08, // 0036 NE R8 R6 R8
0x78220004, // 0037 JMPF R8 #003D
0x8C200126, // 0038 GETMET R8 R0 K38
0x8C200127, // 0038 GETMET R8 R0 K39
0x542A02FF, // 0039 LDINT R10 768
0x582C0005, // 003A LDCONST R11 K5
0x7C200600, // 003B CALL R8 3
@ -818,7 +819,7 @@ be_local_closure(class_Matter_Plugin_Light3_parse_status, /* name */
0x88200117, // 003D GETMBR R8 R0 K23
0x20200E08, // 003E NE R8 R7 R8
0x78220004, // 003F JMPF R8 #0045
0x8C200126, // 0040 GETMET R8 R0 K38
0x8C200127, // 0040 GETMET R8 R0 K39
0x542A02FF, // 0041 LDINT R10 768
0x582C000C, // 0042 LDCONST R11 K12
0x7C200600, // 0043 CALL R8 3
@ -855,23 +856,23 @@ be_local_closure(class_Matter_Plugin_Light3_web_value_RGB, /* name */
0x4C080000, // 0005 LDNIL R2
0x20040202, // 0006 NE R1 R1 R2
0x78060023, // 0007 JMPF R1 #002C
0xB8067200, // 0008 GETNGBL R1 K57
0xB8067400, // 0008 GETNGBL R1 K58
0x5808000E, // 0009 LDCONST R2 K14
0x7C040200, // 000A CALL R1 1
0x8C08033A, // 000B GETMET R2 R1 K58
0x8C08033B, // 000B GETMET R2 R1 K59
0x541200FE, // 000C LDINT R4 255
0x7C080400, // 000D CALL R2 2
0x8C08033B, // 000E GETMET R2 R1 K59
0xB8124800, // 000F GETNGBL R4 K36
0x8C100925, // 0010 GETMET R4 R4 K37
0x8C08033C, // 000E GETMET R2 R1 K60
0xB8124A00, // 000F GETNGBL R4 K37
0x8C100926, // 0010 GETMET R4 R4 K38
0x88180116, // 0011 GETMBR R6 R0 K22
0x581C0005, // 0012 LDCONST R7 K5
0x542200FD, // 0013 LDINT R8 254
0x58240005, // 0014 LDCONST R9 K5
0x542A0167, // 0015 LDINT R10 360
0x7C100C00, // 0016 CALL R4 6
0xB8164800, // 0017 GETNGBL R5 K36
0x8C140B25, // 0018 GETMET R5 R5 K37
0xB8164A00, // 0017 GETNGBL R5 K37
0x8C140B26, // 0018 GETMET R5 R5 K38
0x881C0117, // 0019 GETMBR R7 R0 K23
0x58200005, // 001A LDCONST R8 K5
0x542600FD, // 001B LDINT R9 254
@ -880,18 +881,18 @@ be_local_closure(class_Matter_Plugin_Light3_web_value_RGB, /* name */
0x7C140C00, // 001E CALL R5 6
0x7C080600, // 001F CALL R2 3
0x60080018, // 0020 GETGBL R2 G24
0x580C003C, // 0021 LDCONST R3 K60
0x8810033D, // 0022 GETMBR R4 R1 K61
0x8814033E, // 0023 GETMBR R5 R1 K62
0x8818033F, // 0024 GETMBR R6 R1 K63
0x580C003D, // 0021 LDCONST R3 K61
0x8810033E, // 0022 GETMBR R4 R1 K62
0x8814033F, // 0023 GETMBR R5 R1 K63
0x88180340, // 0024 GETMBR R6 R1 K64
0x7C080800, // 0025 CALL R2 4
0x600C0018, // 0026 GETGBL R3 G24
0x58100040, // 0027 LDCONST R4 K64
0x58100041, // 0027 LDCONST R4 K65
0x5C140400, // 0028 MOVE R5 R2
0x5C180400, // 0029 MOVE R6 R2
0x7C0C0600, // 002A CALL R3 3
0x80040600, // 002B RET 1 R3
0x80068200, // 002C RET 1 K65
0x80068400, // 002C RET 1 K66
})
)
);