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

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

[技术探讨] zigbee2mqtt涂鸦设备不支持设备加入

[复制链接]

0

主题

5

帖子

70

积分

注册会员

Rank: 2

积分
70
金钱
65
HASS币
0
发表于 2022-8-13 14:21:56 | 显示全部楼层
piao_1995 发表于 2022-6-7 21:39
兄弟 ts0601的窗帘电机搞出来了?

大佬,求助啊!分享下解决办法吗?
回复

使用道具 举报

0

主题

6

帖子

50

积分

注册会员

Rank: 2

积分
50
金钱
44
HASS币
0
发表于 2022-12-5 11:18:28 | 显示全部楼层
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 = {
    // Since a lot of TuYa devices use the same modelID, but use different datapoints
    // it's necessary to provide a fingerprint instead of a zigbeeModel
    fingerprint: [
        {
            // The model ID from: Device with modelID 'TS0601' is not supported
            // You may need to add \u0000 at the end of the name in some cases
            modelID: 'TS0601',
            // The manufacturer name from: Device with modelID 'TS0601' is not supported.
            manufacturerName: '_TZE200_xu4a5rhj',
        },
    ],
     model: 'TS0601_cover',
        vendor: 'TuYa',
        description: 'Curtain motor',
        fromZigbee: [fz.tuya_cover, fz.ignore_basic_report],
        toZigbee: [tz.tuya_cover_control, tz.tuya_cover_options],
        exposes: [
            e.cover_position().setAccess('position', ea.STATE_SET),
            exposes.composite('options', 'options')
                .withFeature(exposes.numeric('motor_speed', ea.STATE_SET)
                    .withValueMin(0)
                    .withValueMax(255)
                    .withDescription('Motor speed'))],
};

module.exports = definition;
回复

使用道具 举报

1

主题

12

帖子

214

积分

中级会员

Rank: 3Rank: 3

积分
214
金钱
202
HASS币
0
发表于 2023-8-16 18:00:47 | 显示全部楼层
            
回复

使用道具 举报

1

主题

11

帖子

120

积分

注册会员

Rank: 2

积分
120
金钱
109
HASS币
0
发表于 2023-9-11 14:21:31 | 显示全部楼层
zxyny1989 发表于 2022-2-4 00:45
慢慢改,慢慢试喽。
我当时的旋钮开关就是这样改的,不能全抄。

涂鸦的旋钮开关有操作可以借鉴下吗?
回复

使用道具 举报

1

主题

11

帖子

120

积分

注册会员

Rank: 2

积分
120
金钱
109
HASS币
0
发表于 2023-9-19 14:28:00 | 显示全部楼层
zxyny1989 发表于 2022-2-4 00:45
慢慢改,慢慢试喽。
我当时的旋钮开关就是这样改的,不能全抄。

旋钮开关搞定了吗?
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-5-10 05:44 , Processed in 0.220379 second(s), 25 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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