I took the ‘contact sensor’ example and tried to use it. It WILL join a zigbee network, but when opening or closing contacts, it does not send any update to the controller.
I’m using Zigbee2mqtt with Home Assistant, and watching the log Z2M log and nothing shows up there after the device joins the network. I compiled the code with debug turned on in the Arduino IDE and got the following error:
→ Contact is FALSE
19:56:13.578 → [ 75885][V][ZigbeeContactSwitch.cpp:49] setOpen(): Setting Contact switch to open
19:56:13.578 → [ 75885][E][ZigbeeContactSwitch.cpp:83] report(): Fa[ 75886][V][ZigbeeCore.cpp:447] esp_zb_app_signal_handler(): ZDO signal: ZDO Device Unavailable (0x3c), status: ESP_OK
19:56:13.615 → iled to send IAS Zone status changed notification: 0x2: ERROR
The line “Contact is FALSE” is a Serial.println that I stuck in the code to keep track of what was going on.
I HAVE compiled other examples and gotten them to work, but the contact sensor elude me.
My project is simple, I want to monitor a float sensor in a tank. That’s about as basic as one can get. There is no window door sensor example, and all I want is a contact sensor for now.