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 `_TZE204_dvosyycn` HOT 7
- Support for new Tradfri LED2111G6 lightbulbs HOT 1
- Additional Device for Tuya Cover_3 HOT 1
- Bosch Twinguard exposes only CO2 instead of VOC levels HOT 18
- Template for Unsupported Device - Sengled E21-N14A Bulb
- Using groups for Tuya devices? HOT 3
- Error Adding zones/regiosn on Aqara FP1 (RTCZCGQ11LM) HOT 2
- Local External converter for covers _TZE200_g5xqosu7 HOT 7
- Bosch Twinguard: No converter available for `8750001213` HOT 19
- Double events are fired for Philips Wall Modules & Philips Hue Dimmer Switch HOT 8
- Twinguard 8750001213 stopped working with 1.36.1 (after ~36h - at least i noticed it than) HOT 5
- Tuya device "TS0601" - "_TZE204_mtoaryre" and "TS0601" - "_TZE204_iaeejhvf" in property "sensor" missing the "occupied" and "unoccupied" HOT 1
- How to update the zigbee-herdsman-converters version in HAOS? HOT 3
- [New device support]: Dimmer QS-Zigbee-D04 (0-10V) HOT 2
- BTH-RM230Z - Missing Cooling Mode HOT 54
- 3A/Nue 15w refreshed downlight RGBCW
- Creating Device with multiple endpoints (and multiple types) HOT 1
- Unsupported Attribute when writing attributes to Sonoff TRVZB HOT 8
- Aqara ZNJLBL01LM (lumi.curtain.acn002) problem after latest dev updates HOT 4
- F00YK04-18-1 problem after latest dev updates
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.