ptvoinfo / zigbee-configurable-firmware

PTVO firmware for CC2530, CC2531, and CC2652 Zigbee chips
https://ptvo.info/zigbee-configurable-firmware-features/
MIT License
205 stars 22 forks source link

Contact sensor is displayed as a switch in Z2M #306

Closed Maschler closed 3 weeks ago

Maschler commented 4 weeks ago

Zigbee2MQTT Version: 1.39.1, PTVO Version: 2.5 Here is my second problem:

  1. I have configured an input as a switch. If 3.3V is applied to it, this should be reported (--> status: Open or Closed).
  2. To do this, I connected the input to a virtual output and declared the output as “Contact” (see Test_26.txt).
  3. I expected that Z2M would now display Status: Open or Closed like a window contact sensor (example: Aqara MCCGQ11LM Fig 1)
  4. However, I see a switch that changes to On or Off depending on the voltage (see Fig 2).

Is my configuration wrong? Test_26.txt Test_26.txt Fig 1 Fig 1 Fig 2 Fig 2

ptvoinfo commented 3 weeks ago

Please try to create a custom converter for your device and add it to Z2M.

Maschler commented 3 weeks ago

Thank you for your answer.

I did this via your software using the Costom Converter (here).

I then transferred it to the Z2M data folder and restarted Z2M. Then I did the paring of the cc2530. The resulte is visible in Fig 2.

Maschler commented 3 weeks ago

Ohhh. This solved both issues. Once again, the problem was sitting in front of the screen... Thank you very much!