Im using a Homematic tilt sensor HM-Sec-TiS for my garage door to see weather it is open or not.
But when i link it with a Contact item it is ignored. As a Number item it has Values 1 or 0. As Switch or String it has ON and OFF. And I am able to transform the values of the String Item to values CLOSED and OPEN with Profile transform:MAP. Why can’t I use the same transformation with a Contact item. Or why is it ignored. No MAP transform error anymore!
It would be so smart instead writing a Rule that translates from one e.g. Number Item to a second Contact item.
My items for the same channel:
Number Gtn_Garagentor_Kontakt_Number "Garagentor Kont]" <garagedoor> {channel="homematic:HM-Sec-TiS:ccu:MEQ0475729:1#STATE"}
Switch Gtn_Garagentor_Kontakt_Switch "Garagentor Kont]" <garagedoor> {channel="homematic:HM-Sec-TiS:ccu:MEQ0475729:1#STATE"}
String Gtn_Garagentor_Kontakt_String "Garagentor Kont" <garagedoor> {channel="homematic:HM-Sec-TiS:ccu:MEQ0475729:1#STATE" [profile="transform:MAP", function="TiltSensor.map"]}
Contact Gtn_Garagentor_Kontakt_Cont "Garagentor Kont" <garagedoor> {channel="homematic:HM-Sec-TiS:ccu:MEQ0475729:1#STATE" [profile="transform:MAP", function="TiltSensor.map"]}
TiltSensor.map
OFF=OPEN
ON=CLOSED
=NULL
Log when I open and close garage door (Contact Item is ignored other Items work):
2019-06-20 23:52:52.062 [vent.ItemStateChangedEvent] - Gtn_Garagentor_Kontakt_Number changed from NULL to 1
2019-06-20 23:52:52.066 [vent.ItemStateChangedEvent] - Gtn_Garagentor_Kontakt_Switch changed from NULL to ON
2019-06-20 23:52:52.069 [vent.ItemStateChangedEvent] - Gtn_Garagentor_Kontakt_String changed from NULL to CLOSED
2019-06-21 00:05:00.997 [vent.ItemStateChangedEvent] - Gtn_Garagentor_Kontakt_String changed from CLOSED to OPEN
2019-06-21 00:05:01.004 [vent.ItemStateChangedEvent] - Gtn_Garagentor_Kontakt_Switch changed from ON to OFF
2019-06-21 00:05:01.013 [vent.ItemStateChangedEvent] - Gtn_Garagentor_Kontakt_Number changed from 1 to 0
2019-06-21 00:05:18.494 [vent.ItemStateChangedEvent] - Gtn_Garagentor_Kontakt_String changed from OPEN to CLOSED
2019-06-21 00:05:18.500 [vent.ItemStateChangedEvent] - Gtn_Garagentor_Kontakt_Switch changed from OFF to ON
2019-06-21 00:05:18.509 [vent.ItemStateChangedEvent] - Gtn_Garagentor_Kontakt_Number changed from 0 to 1
Any idea how to get a Contact item with this tilt sensor, to use it in groups?