Comments (8)
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.
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):
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:
from zigbee-herdsman-converters.
Sorry, I completely misread your post.
Could you change:
- https://github.com/Koenkk/zigbee-shepherd-converters/blob/master/converters/fromZigbee.js#L1223
- https://github.com/Koenkk/zigbee-shepherd-converters/blob/master/converters/fromZigbee.js#L1233
- to
!((zoneStatus & 1) > 0)
and check if the problem is fixed?
from zigbee-herdsman-converters.
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.
Great, would you mind making a pr?
from zigbee-herdsman-converters.
I will get to do that later, it has been snowing and yard needs to be plowed out of snow.
from zigbee-herdsman-converters.
#221 Thanks again Koen! :)
from zigbee-herdsman-converters.
Merged!
from zigbee-herdsman-converters.
Related Issues (20)
- New device template for SODA Circle S8 window handle `_TZE200_j7sgd8po` HOT 16
- The compiled zcl folder is missing. HOT 1
- Sonoff TRVZB exposes battery_low but never updates it HOT 2
- tuya ZG-204ZM setting motion detection mode fails (pull request #7553) HOT 6
- converter for Homr Multisensor
- Please add support for frient SIRZB-111
- Müller Tint GU10 blub is missing light entity HOT 1
- Fix /device/qa.ts definitions not loading HOT 1
- Add support for TS0601 _TZE200_d0yu2xgi LTECH CCT SE-20-250-1000-W2Z2 HOT 1
- Ubisys C4 - Commands not correctly sent to coordinator
- RTCGQ11LM is missing several values HOT 1
- Add support to Yale YMC420 HOT 1
- Support for Kwikset SMARTCODE_DEADBOLT_10 HOT 1
- Busch-Jaeger 6735/6736/6737: Make polling interval configurable HOT 10
- TUYA _TZ3000_ljhbw1c9 shown as battery powered
- Help to support custom ESP32C6 device HOT 1
- Incorrect cluster in Ubisys dimmer specs HOT 4
- Failed to configure - UNREPORTABLE-ATTRIBUTE - LeGrand 412171 HOT 8
- Tuya EAYCB-Z-2P / _TZ3000_zrm3oxsh
- Tuya Zigbee IR Blaster ZS06 not working after update HA to version 2024.8.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zigbee-herdsman-converters.