Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
12.11k stars 1.68k forks source link

[New device support]: Aqara Presence Detector FP1 (RTCZCGQ11LM; lumi.motion.ac01) #11019

Closed Otnow closed 2 years ago

Otnow commented 2 years ago

Link

https://www.aqara.com/cn/productDetail/Aqara-Presence-Detector-FP1

Database entry

{"id":2,"type":"EndDevice","ieeeAddr":"0x54ef44100042d6eb","nwkAddr":13551,"manufId":4660,"manufName":"aqara","powerSource":"DC Source","modelId":"lumi.motion.ac01","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":65520,"inClusterList":[0,3,64704],"outClusterList":[3,25],"clusters":{"genBasic":{"attributes":{"modelId":"lumi.motion.ac01","manufacturerName":"aqara","powerSource":4,"zclVersion":3,"appVersion":48,"stackVersion":2,"hwVersion":1,"dateCode":"20210121","swBuildId":""}},"aqaraOpple":{"attributes":{"247":{"type":"Buffer","data":[3,40,28,5,33,1,0,8,33,48,1,10,33,0,0,12,32,20,16,32,1,18,32,0,101,32,1,102,32,6,103,32,0,104,32,0,105,32,1,106,32,1,107,32,3]},"322":1}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":48,"stackVersion":2,"hwVersion":1,"dateCode":"20210121","swBuildId":"","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1643135963340,"useImplicitCheckin":true}

Comments

RTCZCGQ11LM

Review:

Buy:

External converter

const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const ota = require('zigbee-herdsman-converters/lib/ota');
const e = exposes.presets;
const ea = exposes.access;

const definition = {
    zigbeeModel: ['lumi.motion.ac01'],
    model: 'RTCZCGQ11LM',
    vendor: 'Xiaomi',
    description: 'Aqara Presence Detector FP1',
    fromZigbee: [],
    toZigbee: [],
    exposes: [],
    ota: ota.zigbeeOTA,
};

module.exports = definition;
definitio commented 2 years ago

You should update zigbee2mqtt to 1.26.

On Thu, Jul 28, 2022, 12:40 Romario1972 @.***> wrote:

Hello! I've just received my new one FP1 and trying to add it to my HA Z2M add-on. But it joined as "Unsupported". I have in my logs:

Warning Received message from unsupported device with Zigbee model 'lumi.motion.ac01' and manufacturer name 'LUMI' Warning Please see: https://www.zigbee2mqtt.io/how_tos/how_to_support_new_devices.html.

But it should connect without any external converters. Zigbee2mqtt: Current version: 1.18.1-1 Zigbee module: ZigStar LAN Gateway (RF-STAR RF-BM-2652P)(CC2652P)

What should I do next?

— Reply to this email directly, view it on GitHub https://github.com/Koenkk/zigbee2mqtt/issues/11019#issuecomment-1197908546, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI4KKJ2EF546NYQIZRH6W2DVWJIP5ANCNFSM5MZC4QZQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

hqsone commented 2 years ago

I have the same problem as described above. I have a lot problems with joining and maximus what I can get is "unsupported". Z2m version is 1.27.0 What channel do you use? Update: Changed channel to 15, and it started work.

Lyr3x commented 2 years ago

Is it possible to expose the reset state button to HA as well? That would be really handy to quickly set the sensors state to off again.

npty commented 2 years ago

I have the same problem as described above. I have a lot problems with joining and maximus what I can get is "unsupported". Z2m version is 1.27.0 What channel do you use? Update: Changed channel to 15, and it started work.

I've also changed to channel 15, but i can't make it works 🥲

hqsone commented 2 years ago

I have the same problem as described above. I have a lot problems with joining and maximus what I can get is "unsupported". Z2m version is 1.27.0 What channel do you use? Update: Changed channel to 15, and it started work.

I've also changed to channel 15, but i can't make it works 🥲

Update: I had to change zigbee dongle to new one. Same chip but from another manufacturer.

npty commented 2 years ago

I have the same problem as described above. I have a lot problems with joining and maximus what I can get is "unsupported". Z2m version is 1.27.0 What channel do you use? Update: Changed channel to 15, and it started work.

I've also changed to channel 15, but i can't make it works 🥲

Finally, i've made it work! The solution is to change to channel 25.

sorryusernameisalreadytaken commented 2 years ago

Is it possible to expose the reset state button to HA as well? That would be really handy to quickly set the sensors state to off again.

Is that possible, did you find a way?

Anyone has an issue with this presence sensor not clearing presence state sometimes? It's just stuck until I hit the "reset_nopresence_status" button in Z2M

My sensor is on fw 54. My z2m docker on v1.27.2-dev commit: 178f72c Zigbee channel changed from to 15 to 25. zStack3x0 Coordinator-Stick fw 20220219

Any idea why fp1 sensor just sometimes switch back to no-presence state?

husnainali09 commented 2 years ago

How can I update the firmware on this device ? I don't have a aqara hub (just Xiaomi hub which won't pair with this) and zigbee2mqtt says no firmware found, my firmware date shown in Z2m is from October 2021?

sorryusernameisalreadytaken commented 2 years ago

How can I update the firmware on this device ? I don't have a aqara hub (just Xiaomi hub which won't pair with this) and zigbee2mqtt says no firmware found, my firmware date shown in Z2m is from October 2021?

As far as I understood correctly, the string that is displayed in the z2m web interface is the initial build date and not the firmware! Aqara just never seems to update it.

To get the real firmware version of your device, you should read the following post: https://community.home-assistant.io/t/new-aqara-human-presence-sensor-fp1/373471/186?u=jamieme

ykuijs commented 2 years ago

I recently bought an Aqara FP1 via AliExpress and am trying to pair this device in Z2M, but the device keeps being detected as unsupported. I have already tried to remove the device and re-pair it, but this caused me having to reinstall Z2M before I was able to pair the device again.

I have set the channel to 25, which did not change the issue. I have no clue what firmware the device is running, since I can only check this once I have it connected to Z2M.

The Z2M logs show the interview process is failing:

2022-09-13 23:29:30Starting interview of '0x54ef4410005457ff'
2022-09-13 23:29:30MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x54ef4410005457ff","ieee_address":"0x54ef4410005457ff","status":"started"},"type":"device_interview"}'
2022-09-13 23:31:48Failed to interview '0x54ef4410005457ff', device has not successfully been paired
2022-09-13 23:31:48MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x54ef4410005457ff","ieee_address":"0x54ef4410005457ff","status":"failed"},"type":"device_interview"}'

Configuring the logging to "debug" doesn't show much more info.

How can I get the device to be detected properly?

Idan37S commented 2 years ago

Anyone knows if it works with channel 24? I couldn't find any info about that

colinnewman2000 commented 2 years ago

Anyone knows if it works with channel 24? I couldn't find any info about that

Sadly (for me and others) channels 21-24 are not supported :(

maxi1134 commented 2 years ago

Any update on the region integration?

patmalcolm91 commented 1 year ago

Any update on the region integration?

I've just managed to write an external converter that adds basic support for regions (including entrances/exits, interference sources, and edges). See here: https://github.com/Koenkk/zigbee2mqtt/issues/13711#issuecomment-1356182773. There's still some work to be done to improve the UI/UX, but the basic functionality is there.

maxi1134 commented 1 year ago

Any update on the region integration?

I've just managed to write an external converter that adds basic support for regions (including entrances/exits, interference sources, and edges). See here: #13711 (comment). There's still some work to be done to improve the UI/UX, but the basic functionality is there.

The chosen one!

hansdampf01 commented 1 year ago

Hey guys, I just started playing around with zigbee2mqtt and added an fp1. Works out of the box for me BUT Im missing an entities called sensor enter / sensor leave. I had those when I added the fp1 via ZHA but not on z2m. This is literally mission critical as the whole wife approval goes down with this. When I use the presence status for turning on/off light there is a huge delay in recognizing. The sensor enter / leave works instantly.

Anyone an idea how to get those?

DannyFeliz commented 1 year ago

@hansdampf01 I had the same problem, but I fixed it by using the events enter for detection, here is a tutorial about how to do it https://smarthomescene.com/blog/aqara-fp1-tips-tricks-and-automations-examples/

garry0garry commented 7 months ago

https://github.com/Koenkk/zigbee2mqtt/issues/21357