Open knmorgan opened 2 months ago
Doing some debugging, I've added the following to platformAccessory.js:
// Current Temperature
if (pA.capabilities.hasTempSensor) {
if (pA.showTemperature === undefined || pA.showTemperature !== false) {
+ hbLog.info(`showTemperature: ${pA.showTemperature}`);
pA.temperatureSensorService = pA.accessory.getService(pA.platform.Service.TemperatureSensor) ||
pA.accessory.addService(pA.platform.Service.TemperatureSensor);
accessoryName = capitalizeName ? ' Temperature' : ' temperature';
And I see the following in my homebridge logs.
[16/08/2024, 20:48:14] [BigAssFans-i6] showTemperature: true
I just opened a pull request to address this. I'm not sure how showTemperature
/showHumidity
ever worked, unless something changed recently.
Thanks for this. Looks like I introduced the bug in v0.6.0-beta3. I'll insert your code into my local repository and push a beta soon.
I've pushed out homebridge-i6-bigassfans@0.6.1-beta1
.
Describe The Bug: The
showTemperature
andshowHumidity
flags are seemingly not respected.To Reproduce: I have the
Expected behavior: I have the following config.
However, I still get temperature and humidity accessories in homebridge (and the home app). I've tried deleting the config and re-adding, and also uninstalling and re-installing the plugin. I always get the temperature and humidity accessories.
Logs:
Plugin Config:
See above.
Environment: