Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fantem MultiSensor ZB003-X #2071

Closed
kirovilya opened this issue Jan 12, 2021 · 4 comments
Closed

Fantem MultiSensor ZB003-X #2071

kirovilya opened this issue Jan 12, 2021 · 4 comments

Comments

@kirovilya
Copy link
Contributor

new strange device for Tuya.

https://aliexpress.ru/item/1005001878974427.html
image
image
image

sniffer log
multisensor.zip

issue for work with the device

Koenkk pushed a commit to Koenkk/zigbee-herdsman that referenced this issue Jan 12, 2021
Koenkk added a commit that referenced this issue Jan 12, 2021
* Fantem MultiSensor ZB003-X

#2071

* fix lint

* expose description

* access.STATE_SET

* fix

* Update devices.js

* calibrate with options

* Update fromZigbee.js

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
@dsantos21
Copy link
Contributor

dsantos21 commented Feb 2, 2021

Hi! I've bought this device too, thanks for your PR! Just to let you know, there's a small mistake in this code. Tamper is not been shown, but it's reported as occupancy. And occupancy is not been reported.

Effect: zigbee2mqtt cannot report this sensor motion, but if you shake it, is does report as occupancy :) believe me, I tried it with 2 different devices (I bought 4 of them!).

As I could see in debug, zone status first bit is occupancy, and bit 3 is tamper, so:

Motion detect: zonestatus=1

Tamper and motion detect (impossible to cause just one, I think): zonestatus=5

No motion, nor tamper: zonestatus=0

I've no experience with git, but let me know with o can help somehow!

Ive attached the debug pictures, but obviously they lack context :/
Screenshot_20210201-214430_Home Assistant

@dsantos21
Copy link
Contributor

I think the bitwise shift was the problem (found it in from Zigbee2mqtt):

Original:
occupancy: (zoneStatus & 1<<2) > 0,

Solution (I think!):
occupancy: (zoneStatus & 1) > 0,

Course, I didn't try it. I have no idea how to test it... :( I just simulated the results using a site that allows you to run python expressions online.

@dsantos21
Copy link
Contributor

Just to let you know: I've just edited my "fromZigbee" file with that proposed solution and it's working now :DDD
All I have to do is not reboot my instance :D. On the weekend I'll look how to propose a PR.

@drzony
Copy link
Contributor

drzony commented Mar 23, 2021

@dsantos21 @kirovilya
I'm adding a new type for Tuya cluster. Could you comment with the output of your debug log?
I need something like this, but from this sensor:

Zigbee2MQTT:debug 2021-03-23 13:23:32: Received Zigbee message from '0xbc33acfffe462752', type 'raw', cluster 'manuSpecificTuya', data '{"data":[9,127,6,0,56,102,4,0,1,2],"type":"Buffer"}' from endpoint 1 with groupID 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants