my journey in OH3 continues…
I have my homemade MQTT contact sensor (Homie 3.0.0) and I want to include in OH.
The MQTT side works perfectly when opening/closing the window
openhabian@openhabHost:~ $ mosquitto_sub -v -u openhabian -P <password> -t homie/esp_gateway/guestRoomWindowSensor/# homie/esp_gateway/guestRoomWindowSensor/$name Guest Room Window Sensor homie/esp_gateway/guestRoomWindowSensor/$type reed_sensor homie/esp_gateway/guestRoomWindowSensor/$properties status,battery homie/esp_gateway/guestRoomWindowSensor/status OFF homie/esp_gateway/guestRoomWindowSensor/status/$name Status homie/esp_gateway/guestRoomWindowSensor/status/$datatype boolean homie/esp_gateway/guestRoomWindowSensor/battery 4.15 homie/esp_gateway/guestRoomWindowSensor/battery/$name Battery homie/esp_gateway/guestRoomWindowSensor/battery/$datatype float homie/esp_gateway/guestRoomWindowSensor/status ON homie/esp_gateway/guestRoomWindowSensor/battery 4.15 homie/esp_gateway/guestRoomWindowSensor/status OFF homie/esp_gateway/guestRoomWindowSensor/battery 4.15
I went on in the UI and created an Equipment from Thing, linking the two relevant channels during the creation phase
You can immediately see, that while the battery is immediately recognized and value assigned (4.15 V), the Status is in an UNDEF state. Below the point definition
The result does not change if I try to use a MAP transformation.
The “funniest” thing - filtering the log file for this particular points, I can find only this
2021-01-21 21:10:44.170 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'espgatewayWindowSensorGuestRoom_GuestRoomWindowSensor_Battery' changed from NULL to 4.15
So, no trace of the battery item.
What is the next debug step I can take? Or is my mistake clear to everyone but me?