ioBroker.js-controller icon indicating copy to clipboard operation
ioBroker.js-controller copied to clipboard

Use state system.host.<host>.diskWarning (to log message when level is reached) and ack new values

Open klein0r opened this issue 9 months ago • 4 comments

The js-controller creates a state diskWarning for each host:

https://github.com/ioBroker/ioBroker.js-controller/blob/f40b69380d6fa685e3296be3d631f3d1ca2393e9/packages/controller/src/main.ts#L2124-L2138

When setting this (writeable) state with ack: false the value isn't acknowledged.

After searching the complete js-controller code for occurrences, I found nothing.

klein0r avatar Sep 15 '23 09:09 klein0r

Also searched tag v4.0.24 and v3.3.22: no occurrences.

Has been added in fc3e1eb29aee61716080b81289ada3fe9b051e6f

klein0r avatar Sep 15 '23 09:09 klein0r

It is only used by admin at the moment.

foxriver76 avatar Sep 15 '23 10:09 foxriver76

Ah okay, thank you! Then it's a feature request to implement the function of this state to raise a warning in the log when warning level is reached.

klein0r avatar Sep 15 '23 11:09 klein0r

Or better a notification and log 😬

foxriver76 avatar Sep 15 '23 12:09 foxriver76