@@ -59,6 +59,7 @@ export class NatureNemoTvAccessory {
5959
6060 async getActive ( ) : Promise < CharacteristicValue > {
6161 this . platform . logger . debug ( 'getActive called' ) ;
62+ this . platform . logger . info ( '[%s] Active -> %s' , this . name , this . state . active === this . platform . Characteristic . Active . ACTIVE ) ;
6263 return this . state . active ;
6364 }
6465
@@ -72,12 +73,13 @@ export class NatureNemoTvAccessory {
7273 return ;
7374 }
7475 await this . platform . natureRemoApi . setTvButton ( this . id , 'power' ) ;
75- this . platform . logger . info ( '[%s] Active <- %s' , this . name , value ) ;
76+ this . platform . logger . info ( '[%s] Active <- %s' , this . name , value === this . platform . Characteristic . Active . ACTIVE ) ;
7677 this . state . active = value ;
7778 }
7879
7980 async getActiveIdentifier ( ) : Promise < CharacteristicValue > {
80- this . platform . logger . debug ( 'getAgetActiveIdentifierctive called' ) ;
81+ this . platform . logger . debug ( 'getActiveIdentifier called' ) ;
82+ this . platform . logger . info ( '[%s] ActiveIdentifierctive -> %s' , this . name , this . state . activeIdentifier ) ;
8183 return this . state . activeIdentifier ;
8284 }
8385
@@ -90,17 +92,20 @@ export class NatureNemoTvAccessory {
9092 this . platform . logger . debug ( '[%s] Same state. skip sending' , this . name ) ;
9193 return ;
9294 }
95+ this . platform . logger . info ( '[%s] ActiveIdentifierctive <- %s' , this . name , value ) ;
9396 this . state . activeIdentifier = value ;
9497 }
9598
9699 async setRemoteKey ( value : CharacteristicValue ) : Promise < void > {
97100 this . platform . logger . debug ( 'setRemoteKey called ->' , value ) ;
98- await this . platform . natureRemoApi . setTvButton ( this . id , this . convertRemoteKey ( value ) ) ;
99- this . platform . logger . info ( '[%s] Remote Key <- %s' , this . name , value ) ;
101+ const key = this . convertRemoteKey ( value ) ;
102+ await this . platform . natureRemoApi . setTvButton ( this . id , key ) ;
103+ this . platform . logger . info ( '[%s] Remote Key <- %s' , this . name , key ) ;
100104 }
101105
102106 async getMute ( ) : Promise < CharacteristicValue > {
103107 this . platform . logger . debug ( 'getMute called' ) ;
108+ this . platform . logger . info ( '[%s] Mute -> %s' , this . name , this . state . mute ) ;
104109 return this . state . mute ;
105110 }
106111
@@ -120,8 +125,9 @@ export class NatureNemoTvAccessory {
120125
121126 async setVolumeSelector ( value : CharacteristicValue ) : Promise < void > {
122127 this . platform . logger . debug ( 'setVolumeSelector called ->' , value ) ;
123- await this . platform . natureRemoApi . setTvButton ( this . id , this . convertVolumeSelector ( value ) ) ;
124- this . platform . logger . info ( '[%s] VolumeSelector <- %s' , this . name , value ) ;
128+ const key = this . convertVolumeSelector ( value ) ;
129+ await this . platform . natureRemoApi . setTvButton ( this . id , key ) ;
130+ this . platform . logger . info ( '[%s] VolumeSelector <- %s' , this . name , key ) ;
125131 }
126132
127133 private convertRemoteKey ( value : CharacteristicValue ) : string {
0 commit comments