@@ -28,6 +28,7 @@ import { OperationalState } from '@matter/types/clusters/operational-state';
2828import { PowerSource } from '@matter/types/clusters/power-source' ;
2929import { RvcOperationalState } from '@matter/types/clusters/rvc-operational-state' ;
3030import { EndpointNumber } from '@matter/types/datatype' ;
31+ import { ThreeLevelAuto } from '@matter/types/globals' ;
3132import { BroadcastServer } from '@matterbridge/thread/server' ;
3233import { BridgeStatus } from '@matterbridge/types' ;
3334import { wait , waiter } from '@matterbridge/utils/wait' ;
@@ -473,7 +474,7 @@ describe('Matterbridge frontend', () => {
473474 [ 'windowCovering' , 0x102 , 'currentPositionLiftPercent100ths' , 0 , 5000 ] ,
474475 [ 'doorLock' , 0x101 , 'lockState' , 0 , 1 ] ,
475476 [ 'doorLock' , 0x101 , 'lockState' , 0 , 2 ] ,
476- [ 'closureControl' , 0x104 , 'overallCurrentState' , 0 , { position : 0 , latch : true , secureState : true } ] ,
477+ [ 'closureControl' , 0x104 , 'overallCurrentState' , 0 , { position : 0 , latch : true , speed : ThreeLevelAuto . Auto , secureState : true } ] ,
477478 [ 'thermostat' , 0x201 , 'localTemperature' , 0 , 2000 ] ,
478479 [ 'thermostat' , 0x201 , 'occupiedHeatingSetpoint' , 0 , 2100 ] ,
479480 [ 'thermostat' , 0x201 , 'occupiedCoolingSetpoint' , 0 , 2500 ] ,
@@ -529,6 +530,7 @@ describe('Matterbridge frontend', () => {
529530 expect ( text ) . toContain ( 'State: Not locked' ) ;
530531 expect ( text ) . toContain ( 'Position: FullyClosed' ) ;
531532 expect ( text ) . toContain ( 'Latch: true' ) ;
533+ expect ( text ) . toContain ( 'Speed: Auto' ) ;
532534 expect ( text ) . toContain ( 'SecureState: true' ) ;
533535 expect ( text ) . toContain ( 'Temperature: 20°C' ) ;
534536 expect ( text ) . toContain ( 'Heat to: 21°C' ) ;
@@ -565,7 +567,7 @@ describe('Matterbridge frontend', () => {
565567 const nullMeasurements = runTuples ( [
566568 [ 'illuminanceMeasurement' , 0x400 , 'measuredValue' , 0 , null ] ,
567569 [ 'closureControl' , 0x104 , 'overallCurrentState' , 0 , null ] ,
568- [ 'closureControl' , 0x104 , 'overallCurrentState' , 0 , { position : null , latch : null , secureState : null } ] ,
570+ [ 'closureControl' , 0x104 , 'overallCurrentState' , 0 , { position : null , latch : null , speed : null , secureState : null } ] ,
569571 [ 'valveConfigurationAndControl' , 0x81 , 'currentState' , 0 , null ] ,
570572 [ 'totalVolatileOrganicCompoundsConcentrationMeasurement' , 0x42e , 'measuredValue' , 0 , null ] ,
571573 [ 'pm1ConcentrationMeasurement' , 0x42c , 'measuredValue' , 0 , null ] ,
@@ -583,6 +585,7 @@ describe('Matterbridge frontend', () => {
583585 expect ( nullMeasurements ) . toContain ( 'Illuminance: unknown' ) ;
584586 expect ( nullMeasurements ) . toContain ( 'Position: unknown' ) ;
585587 expect ( nullMeasurements ) . toContain ( 'Latch: unknown' ) ;
588+ expect ( nullMeasurements ) . toContain ( 'Speed: unknown' ) ;
586589 expect ( nullMeasurements ) . toContain ( 'SecureState: unknown' ) ;
587590 expect ( nullMeasurements ) . toContain ( 'State: unknown' ) ;
588591 expect ( nullMeasurements ) . toContain ( 'Voc: unknown' ) ;
0 commit comments