『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
12
返回列表 发新帖
楼主: syman

[技术探讨] 求助!绿米的E1人体传感器不会感应

[复制链接]

1

主题

15

帖子

72

积分

注册会员

Rank: 2

积分
72
金钱
57
HASS币
0
 楼主| 发表于 2023-3-26 22:07:42 | 显示全部楼层
antsunzj 发表于 2023-3-26 21:48
没看出问题,你看看还有没有其他的日志的提醒。

重置就是相似的内容了,没看到报错了,所以我怀疑是不是z2m官方的这个代码就是有问题的
回复

使用道具 举报

1

主题

15

帖子

72

积分

注册会员

Rank: 2

积分
72
金钱
57
HASS币
0
 楼主| 发表于 2023-3-27 00:34:59 | 显示全部楼层
antsunzj 发表于 2023-3-26 21:48
没看出问题,你看看还有没有其他的日志的提醒。

大佬,我根据格式自己写了两个替换的代码
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 reporting = require('zigbee-herdsman-converters/lib/reporting');
const extend = require('zigbee-herdsman-converters/lib/extend');
const e = exposes.presets;
const ea = exposes.access;

const definition = {
    zigbeeModel: ['lumi.motion.acn001'],
    model: 'Aqara E1',
    vendor: 'Xiaomi',
    description: 'Aqara E1',
        fromZigbee: [fz.xiaomi_basic, fz.occupancy_with_timeout, fz.RTCGQ11LM_illuminance],
        toZigbee: [],
        exposes: [e.battery(), e.occupancy(), e.device_temperature(), e.battery_voltage(), e.illuminance_lux().withProperty('illuminance'),
            e.illuminance().withUnit('lx').withDescription('Measured illuminance in lux'), e.power_outage_count(false)],
        
};


module.exports = definition;


也读取不到,我发现官方的 就是E1的代码就是T1改了一下描述其他都没变 而且我买了两个E1全是这样,脑壳痛,下面是改了之后重新接入的日志


2023-03-27 00:29:16Received Zigbee message from '0x54ef4410007e3a69', type 'readResponse', cluster 'genBasic', data '{}' from endpoint 1 with groupID 0
Debug 2023-03-27 00:29:16lumi.motion.acn001: unknown key swBuildId with value undefined
Debug 2023-03-27 00:29:16lumi.motion.acn001: Processed data into payload {}
Info 2023-03-27 00:29:16Successfully interviewed '0x54ef4410007e3a69', device has successfully been paired
Info 2023-03-27 00:29:16Device '0x54ef4410007e3a69' is supported, identified as: Xiaomi Aqara E1 (Aqara E1)
Info 2023-03-27 00:29:16MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":{"description":"Aqara E1","exposes":[{"access":1,"description":"Remaining battery in %, can take up to 24 hours before reported.","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":1,"description":"Indicates whether the device detected occupancy","name":"occupancy","property":"occupancy","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Temperature of the device","name":"device_temperature","property":"device_temperature","type":"numeric","unit":"°C"},{"access":1,"description":"Voltage of the battery in millivolts","name":"voltage","property":"voltage","type":"numeric","unit":"mV"},{"access":1,"description":"Measured illuminance in lux","name":"illuminance_lux","property":"illuminance","type":"numeric","unit":"lx"},{"access":1,"description":"Measured illuminance in lux","name":"illuminance","property":"illuminance","type":"numeric","unit":"lx"},{"access":1,"description":"Number of power outages","name":"power_outage_count","property":"power_outage_count","type":"numeric"},{"access":1,"description":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"Aqara E1","options":[{"access":2,"description":"Calibrates the device_temperature value (absolute offset), takes into effect on next report of device.","name":"device_temperature_calibration","property":"device_temperature_calibration","type":"numeric"},{"access":2,"description":"Calibrates the voltage value (percentual offset), takes into effect on next report of device.","name":"voltage_calibration","property":"voltage_calibration","type":"numeric"},{"access":2,"description":"Number of digits after decimal point for voltage, takes into effect on next report of device.","name":"voltage_precision","property":"voltage_precision","type":"numeric","value_max":3,"value_min":0},{"access":2,"description":"Calibrates the illuminance_lux value (percentual offset), takes into effect on next report of device.","name":"illuminance_lux_calibration","property":"illuminance_lux_calibration","type":"numeric"},{"access":2,"description":"Calibrates the illuminance value (percentual offset), takes into effect on next report of device.","name":"illuminance_calibration","property":"illuminance_calibration","type":"numeric"},{"access":2,"description":"Time in seconds after which occupancy is cleared after detecting it (default 90 seconds).","name":"occupancy_timeout","property":"occupancy_timeout","type":"numeric","value_min":0},{"access":2,"description":"Sends a message the last time occupancy (occupancy: true) was detected. When setting this for example to [10, 60] a `{\"no_occupancy_since\": 10}` will be send after 10 seconds and a `{\"no_occupancy_since\": 60}` after 60 seconds.","item_type":{"access":3,"name":"time","type":"numeric"},"name":"no_occupancy_since","property":"no_occupancy_since","type":"list"}],"supports_ota":false,"vendor":"Xiaomi"},"friendly_name":"0x54ef4410007e3a69","ieee_address":"0x54ef4410007e3a69","status":"successful","supported":true},"type":"device_interview"}'
Info 2023-03-27 00:29:16MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_successful","meta":{"description":"Aqara E1","friendly_name":"0x54ef4410007e3a69","model":"Aqara E1","supported":true,"vendor":"Xiaomi"},"type":"pairing"}'
Debug 2023-03-27 00:29:25Received Zigbee message from '0x54ef4410007e3a69', type 'attributeReport', cluster 'aqaraOpple', data '{"247":{"data":[1,33,16,12,3,40,25,4,33,0,0,5,33,1,0,8,33,10,0,10,33,47,19,12,32,30,100,16,0,101,33,19,0],"type":"Buffer"}}' from endpoint 1 with groupID 0
Debug 2023-03-27 00:29:25No converter available for 'Aqara E1' with cluster 'aqaraOpple' and type 'attributeReport' and data '{"247":{"data":[1,33,16,12,3,40,25,4,33,0,0,5,33,1,0,8,33,10,0,10,33,47,19,12,32,30,100,16,0,101,33,19,0],"type":"Buffer"}}'
Debug 2023-03-27 00:30:01Received MQTT message on 'zigbee2mqtt/bridge/request/permit_join' with data '{"device":null,"time":254,"transaction":"uz80k-4","value":false}'
Info 2023-03-27 00:30:01Zigbee: disabling joining new devices.
Info 2023-03-27 00:30:02MQTT publish: topic 'zigbee2mqtt/bridge/response/permit_join', payload '{"data":{"time":254,"value":false},"status":"ok","transaction":"uz80k-4"}'
回复

使用道具 举报

2

主题

52

帖子

813

积分

高级会员

Rank: 4

积分
813
金钱
761
HASS币
0
发表于 2023-3-27 10:03:54 | 显示全部楼层
这个我解决了,需要把Z2M网关的固件版本升级一下,升级后再重新配对就可以了
回复

使用道具 举报

1

主题

15

帖子

72

积分

注册会员

Rank: 2

积分
72
金钱
57
HASS币
0
 楼主| 发表于 2023-3-27 12:27:13 | 显示全部楼层
chesley 发表于 2023-3-27 10:03
这个我解决了,需要把Z2M网关的固件版本升级一下,升级后再重新配对就可以了 ...

我是cc2652p的自制网关,咋升级啊
回复

使用道具 举报

3

主题

301

帖子

3251

积分

论坛元老

Rank: 8Rank: 8

积分
3251
金钱
2950
HASS币
0
发表于 2023-3-27 13:20:12 | 显示全部楼层
z2m官网其实在E1门磁介绍下面写了要升级网关固件
回复

使用道具 举报

2

主题

52

帖子

813

积分

高级会员

Rank: 4

积分
813
金钱
761
HASS币
0
发表于 2023-3-27 13:55:12 | 显示全部楼层
syman 发表于 2023-3-27 12:27
我是cc2652p的自制网关,咋升级啊

https://www.zigbee2mqtt.io/guide/adapters/#recommended,这个里面看下,我的是网关是SONOFF Zigbee 3.0 USB Dongle Plus ZBDongle-P
回复

使用道具 举报

2

主题

52

帖子

813

积分

高级会员

Rank: 4

积分
813
金钱
761
HASS币
0
发表于 2023-3-27 13:56:16 | 显示全部楼层
iamhyde 发表于 2023-3-27 13:20
z2m官网其实在E1门磁介绍下面写了要升级网关固件

E1人体传感器里面没有写升级网关固件,所以刚开始不知道咋回事
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-28 00:49 , Processed in 0.099418 second(s), 26 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表