Hi,
actually im using to store the state of a door in an influx DB.
Because the Homematic Door Contact is usingthe enum OPEN and CLOSED which is not storable in the Database.
I´ve read in the forum that you can convert by using a rule:
val WohnzimmertuereDB = if(StateDoorWohnzimmer == OPEN) 1 else 0
but this don´t works, i tested to ebbed into a whole rule:
rule "WonzimmertuereKonvertieren"
when
Item StateDoorWohnzimmer changed from CLOSED to OPEN
then
val WohnzimmertuereDB = if(StateDoorWohnzimmer == OPEN) 1 else 0
end
i really need a working solution, because it is very important to show the door states of my house because of security reasons.
Thanks!!