crycode-de / ioBroker.ds18b20

ioBroker adapter for DS18B20 1-wire temperature sensors
MIT License
6 stars 8 forks source link

Feature Request: Disable a configured Sensor #89

Closed Videonisse closed 2 years ago

Videonisse commented 2 years ago

Currently, when a configured sensor temporarily is removed from the 1Wire bus, it produces after each query a warning in the log. If possible, I suggest that each configured sensor can be disabled from the Adapter config page to avoid those messages.

Today I need to delete the sensor and add it again when it should be used. The disadvantage of this is that next time I need to configure the settings for "Factor" and "Decimals" again as well as enable the settings for History Adapter when used.

It would be much better just to click "Disable" to suppress warnings and "park" the sensor until it should be used again.

Is it possible to implement this feature?

crycode-de commented 2 years ago

You can just set the query interval for a sensor to 0 which will disable the automatic readings for this sensor. Hint: If you use the readNow state, the sensor can be read nevertheless.

Does this solve this issue for you?

Videonisse commented 2 years ago

Yes, of course, it solves the issue! Thanks for this Tip!

crycode-de commented 2 years ago

New option "enabled" is now available in v1.5.0 which can be installed via NPM know. Tomorrow it will be in the latest repo and after some feedback I'll push it into stable.

Thank you for your report!