historicState always gets "CLOSED" Value

Hi

I try to get a historicState from a Window Sensor. But I always get a “CLOSED” value, even if i remove all CLOSED (0) Values from database.
I used historicState successfully on other (Number) Items.

Log:
2021-02-13 09:40:07.823 [INFO ] [hab.core.model.script.Fensterwarnung] - HistState vor if CLOSED
2021-02-13 09:40:07.887 [INFO ] [hab.core.model.script.Fensterwarnung] - HistState vor if CLOSED
2021-02-13 09:40:07.904 [INFO ] [hab.core.model.script.Fensterwarnung] - HistState vor if CLOSED
2021-02-13 09:40:07.920 [INFO ] [hab.core.model.script.Fensterwarnung] - HistState vor if CLOSED
2021-02-13 09:40:07.938 [INFO ] [hab.core.model.script.Fensterwarnung] - HistState vor if CLOSED
2021-02-13 09:40:07.958 [ERROR] [internal.handler.ScriptActionHandler] - Script execution of rule with UID ‘test-1’ failed: Cannot format given Object as a Date in test

There is already an issue for switch items, where to correct data is stored but always OFF restored.

[influxdb] Treat a stored 1 AND 1.0 as true by t2000 · Pull Request #9545 · openhab/openhab-addons (github.com)

3 Likes

Yes, seems to be exactly my issue. Thank You.
I hope it will be fixed soon.

It is already fixed.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.