Closed lboue closed 4 years ago
I think I find why I have this behavior. Here is the default case in the domoticz_accessory.js file:
} else {
var service = this.getService(eDomoticzServices.MeterDeviceService);
var dMeterDeviceCharacteristic = this.getCharacteristic(service, eDomoticzServices.CurrentConsumption);
var val10 = Helper.cleanFloat(message.svalue1);
callback(dMeterDeviceCharacteristic, val10);
break;
}
}
The following case is missing (subType == "Barometer"):
case this.Type == "General" || this.Type == "YouLess Meter" || this.Type == "Current" || this.Type == "UV" || this.Type == "Usage" || this.Type == "Lux":
{
...
} else if (this.subType == "Barometer") {
...
break;
}
Can someone help me to fix that?
Best Regards, Ludovic
Should be fixed now... test and report back / reopen issue.
Remove .homebridge/accessories/cachedAccessories, update to v2.1.24 & restart.
Hello,
I have a Barometer sensor working in Domoticz but published as an electrical cost device HomeKit device via homebridge.![img_9212](https://user-images.githubusercontent.com/938089/38322183-fcdbfe7c-3839-11e8-875e-ba984d4800ff.jpg)
Here is the domoticz-devices-list:![domoticz-devices-list](https://user-images.githubusercontent.com/938089/38322847-e2591bc8-383b-11e8-8855-864b2c446ef3.png)
Here is what the Domoticz API returns:
Can I help you to fix that?
Regards, Ludovic