Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
NebzHB authored Jun 3, 2024
1 parent 73a7674 commit b416001
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ JeedomPlatform.prototype.AccessoireCreateHomebridge = function(eqLogic) {
let LightType="Switch";
HBservice = {
controlService : new Service.Lightbulb(eqLogic.name),
characteristics : [Characteristic.On],
characteristics : [],
};
const Serv = HBservice.controlService;
Serv.eqLogic=eqLogic;
Expand Down Expand Up @@ -453,6 +453,10 @@ JeedomPlatform.prototype.AccessoireCreateHomebridge = function(eqLogic) {
if (Serv.actions.on && !Serv.actions.off) {this.log('|warning','Pas de type générique "Action/Lumière OFF"');}
if (!Serv.actions.on && Serv.actions.off) {this.log('|warning','Pas de type générique "Action/Lumière ON"');}
if (!Serv.actions.on && !Serv.actions.off) {this.log('|warning','Pas de type générique "Action/Lumière ON" et "Action/Lumière OFF"');}
else {
HBservice.characteristics.push(Characteristic.On);
Serv.addCharacteristic(Characteristic.On);
}
if (Serv.infos.color && !Serv.actions.setcolor) {this.log('|warning','Pas de type générique "Action/Lumière Couleur"');}
if (!Serv.infos.color && Serv.actions.setcolor) {this.log('|warning','Pas de type générique "Info/Lumière Couleur"');}
if (Serv.infos.color_temp && !Serv.actions.setcolor_temp) {this.log('|warning','Pas de type générique "Action/Lumière Température Couleur"');}
Expand Down

0 comments on commit b416001

Please sign in to comment.