ianmichell / homebridge-w215

Homebridge D-Link w215 plugin
Apache License 2.0
7 stars 4 forks source link

Addition of temperature offset #11

Open snandor opened 3 years ago

snandor commented 3 years ago

Given that the thermal sensor is in the case, it is showing higher values than the room temp. Would it be possible to add an offset field to the plug-in to adjust the temp, keeping it in sync with the room temp.

Thanks!

ianmichell commented 3 years ago

??? The plug draws electricity, the temperature sensors are specifically for the temperature of the plug which changes based on power draw. Don't quite understand what you hope to achieve by offsetting it

snandor commented 3 years ago

With an offset option, this plug could be used to monitor room temperature when idle/switched off.

ianmichell commented 3 years ago

Can't see that working. But feel free to fork and add it in.

snandor commented 2 years ago

If you want to use this socket to measure external temperature, just append -15 to the end of line 120 in index.js and restart the plugin. This offset properly compensates the heat step between the internal and external temp in idle mode.