Giter Site home page Giter Site logo

Comments (8)

Koenkk avatar Koenkk commented on August 20, 2024

The state is right, when the door is closed there is contact (true), when open there is not (false). It is a contact sensor, not a door sensor.

The correct logic should be put in an automation.

from zigbee-herdsman-converters.

Kryzek avatar Kryzek commented on August 20, 2024

This is what I expect too. But MQTT payloads do not reflect this.

I'm sorry if I did not explain myself good enough (english isn't my first language) in the first post since I didn't state clearly enough that MQTT payloads are the things that I feel to be inverted.

As you said, "when door is closed there is contact (true)" the MQTT payloads says false:
Closing the door does this:

Received zigbee message of type 'statusChange' with data '{"cid":"ssIasZone","zoneStatus":32}' of device 'CSW_ADUROLIGHT' (0x00158d0001cca9aa)
MQTT publish: topic 'zigbee2mqtt/0x00158d0001cca9aa', payload '{"contact":false,"linkquality":13}'

And to be confirm it looks like this on Home Assistant when we look at the entity when door is closed (icon shows as an open door):
door_closed

And when door is opened there should be no no contact (false), MQTT payload says true:

Received zigbee message of type 'statusChange' with data '{"cid":"ssIasZone","zoneStatus":33}' of device 'CSW_ADUROLIGHT' (0x00158d0001cca9aa)
MQTT publish: topic 'zigbee2mqtt/0x00158d0001cca9aa', payload '{"contact":true,"linkquality":10}'

Opened door shows as a closed door:
door_open

from zigbee-herdsman-converters.

Koenkk avatar Koenkk commented on August 20, 2024

Sorry, I completely misread your post.

Could you change:

and check if the problem is fixed?

from zigbee-herdsman-converters.

Kryzek avatar Kryzek commented on August 20, 2024

Yes, logic is now correct with these lines changed! Closed door shows up as a closed door and open one as an open one.

from zigbee-herdsman-converters.

Koenkk avatar Koenkk commented on August 20, 2024

Great, would you mind making a pr?

from zigbee-herdsman-converters.

Kryzek avatar Kryzek commented on August 20, 2024

I will get to do that later, it has been snowing and yard needs to be plowed out of snow.

from zigbee-herdsman-converters.

Kryzek avatar Kryzek commented on August 20, 2024

#221 Thanks again Koen! :)

from zigbee-herdsman-converters.

Koenkk avatar Koenkk commented on August 20, 2024

Merged!

from zigbee-herdsman-converters.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.