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

 找回密码
 立即注册
楼主: natic

[插件集成] 米家窗帘-HA插件

  [复制链接]

1

主题

118

帖子

2466

积分

金牌会员

Rank: 6Rank: 6

积分
2466
金钱
2348
HASS币
0
发表于 2021-1-11 13:01:25 | 显示全部楼层
natic 发表于 2021-1-11 12:24
在米家app有没有设置反向?

没有,app 你显示正确的
回复

使用道具 举报

23

主题

1328

帖子

6523

积分

超级版主

Rank: 8Rank: 8

积分
6523
金钱
5170
HASS币
100

教程狂人

 楼主| 发表于 2021-1-11 13:17:24 | 显示全部楼层
baobaobuku 发表于 2021-1-11 13:01
没有,app 你显示正确的

能截图说明一下具体怎么反的么?
回复

使用道具 举报

1

主题

118

帖子

2466

积分

金牌会员

Rank: 6Rank: 6

积分
2466
金钱
2348
HASS币
0
发表于 2021-1-11 14:02:55 | 显示全部楼层
natic 发表于 2021-1-11 13:17
能截图说明一下具体怎么反的么?

在 ha 上显示

                               
登录/注册后可看大图
关闭,在 app 上显示是打开状态的,而且窗帘状态也应该是打开的,所以应该是 app 上显示的正确

米家 app

米家 app

ha

ha
回复

使用道具 举报

23

主题

1328

帖子

6523

积分

超级版主

Rank: 8Rank: 8

积分
6523
金钱
5170
HASS币
100

教程狂人

 楼主| 发表于 2021-1-11 14:52:42 | 显示全部楼层
baobaobuku 发表于 2021-1-11 14:02
在 ha 上显示关闭,在 app 上显示是打开状态的,而且窗帘状态也应该是打开的,所以应该是 app 上显示的正 ...

截图看下ha里面的详情
包括Current-position和Target-position那个页面
回复

使用道具 举报

1

主题

118

帖子

2466

积分

金牌会员

Rank: 6Rank: 6

积分
2466
金钱
2348
HASS币
0
发表于 2021-1-11 15:18:24 | 显示全部楼层
natic 发表于 2021-1-11 14:52
截图看下ha里面的详情
包括Current-position和Target-position那个页面

这是这款窗帘可控制的 piid 和 siid
{
        "type": "urn:miot-spec-v2:device:curtain:0000A00C:lumi-hmcn01:1",
        "description": "Curtain",
        "services": [{
                "iid": 1,
                "type": "urn:miot-spec-v2:service:device-information:00007801:lumi-hmcn01:1",
                "description": "Device Information",
                "properties": [{
                        "iid": 1,
                        "type": "urn:miot-spec-v2:property:manufacturer:00000001:lumi-hmcn01:1",
                        "description": "Device Manufacturer",
                        "format": "string",
                        "access": ["read"]
                }, {
                        "iid": 2,
                        "type": "urn:miot-spec-v2:property:model:00000002:lumi-hmcn01:1",
                        "description": "Device Model",
                        "format": "string",
                        "access": ["read"]
                }, {
                        "iid": 3,
                        "type": "urn:miot-spec-v2:property:serial-number:00000003:lumi-hmcn01:1",
                        "description": "Device Serial Number",
                        "format": "string",
                        "access": ["read"]
                }, {
                        "iid": 4,
                        "type": "urn:miot-spec-v2:property:firmware-revision:00000005:lumi-hmcn01:1",
                        "description": "Current Firmware Version",
                        "format": "string",
                        "access": ["read"]
                }]
        }, {
                "iid": 2,
                "type": "urn:miot-spec-v2:service:curtain:00007816:lumi-hmcn01:1",
                "description": "Curtain",
                "properties": [{
                        "iid": 1,
                        "type": "urn:miot-spec-v2:property:fault:00000009:lumi-hmcn01:1",
                        "description": "Device Fault",
                        "format": "uint8",
                        "access": ["read", "notify"],
                        "unit": "none",
                        "value-list": [{
                                "value": 0,
                                "description": "No Faults"
                        }]
                }, {
                        "iid": 2,
                        "type": "urn:miot-spec-v2:property:motor-control:00000038:lumi-hmcn01:1",
                        "description": "Motor Control",
                        "format": "uint8",
                        "access": ["write"],
                        "unit": "none",
                        "value-list": [{
                                "value": 0,
                                "description": "Pause"
                        }, {
                                "value": 1,
                                "description": "Open"
                        }, {
                                "value": 2,
                                "description": "Close"
                        }, {
                                "value": 3,
                                "description": "Toggle"
                        }]
                }, {
                        "iid": 3,
                        "type": "urn:miot-spec-v2:property:current-position:00000039:lumi-hmcn01:1",
                        "description": "Current Position",
                        "format": "uint8",
                        "access": ["read", "notify"],
                        "unit": "percentage",
                        "value-range": [0, 100, 1]
                }, {
                        "iid": 6,
                        "type": "urn:miot-spec-v2:property:status:00000007:lumi-hmcn01:1",
                        "description": "Status",
                        "format": "uint8",
                        "access": ["read", "notify"],
                        "unit": "none",
                        "value-list": [{
                                "value": 0,
                                "description": "Stopped"
                        }, {
                                "value": 1,
                                "description": "Opening"
                        }, {
                                "value": 2,
                                "description": "Closing"
                        }]
                }, {
                        "iid": 7,
                        "type": "urn:miot-spec-v2:property:target-position:0000003A:lumi-hmcn01:1",
                        "description": "Target Position",
                        "format": "uint8",
                        "access": ["read", "write", "notify"],
                        "unit": "percentage",
                        "value-range": [0, 100, 1]
                }]
        }, {
                "iid": 6,
                "type": "urn:miot-spec-v2:service:identify:0000782C:lumi-hmcn01:1",
                "description": "Identify",
                "actions": [{
                        "iid": 1,
                        "type": "urn:miot-spec-v2:action:identify:00002801:lumi-hmcn01:1",
                        "description": "Identify",
                        "in": [],
                        "out": []
                }]
        }, {
                "iid": 4,
                "type": "urn:lumi-spec:service:curtain-cfg:00007802:lumi-hmcn01:1",
                "description": "curtain-cfg",
                "properties": [{
                        "iid": 1,
                        "type": "urn:lumi-spec:property:manual-enabled:00000001:lumi-hmcn01:1",
                        "description": "manual-enabled",
                        "format": "int32",
                        "access": ["read", "notify", "write"],
                        "unit": "none",
                        "value-list": [{
                                "value": 0,
                                "description": "Disable"
                        }, {
                                "value": 1,
                                "description": "Enable"
                        }]
                }, {
                        "iid": 2,
                        "type": "urn:lumi-spec:property:polarity:00000002:lumi-hmcn01:1",
                        "description": "polarity",
                        "format": "int32",
                        "access": ["read", "notify", "write"],
                        "unit": "none",
                        "value-list": [{
                                "value": 0,
                                "description": "Positive"
                        }, {
                                "value": 1,
                                "description": "Reverse"
                        }]
                }, {
                        "iid": 3,
                        "type": "urn:lumi-spec:property:pos-limit:00000003:lumi-hmcn01:1",
                        "description": "pos-limit",
                        "format": "int32",
                        "access": ["read", "notify", "write"],
                        "unit": "none",
                        "value-list": [{
                                "value": 0,
                                "description": "Unlimit"
                        }, {
                                "value": 1,
                                "description": "Limit"
                        }]
                }, {
                        "iid": 4,
                        "type": "urn:lumi-spec:property:en-night-tip-light:00000004:lumi-hmcn01:1",
                        "description": "en-night-tip-light",
                        "format": "int32",
                        "access": ["read", "notify", "write"],
                        "unit": "none",
                        "value-list": [{
                                "value": 0,
                                "description": "Disable"
                        }, {
                                "value": 1,
                                "description": "Enable"
                        }]
                }, {
                        "iid": 5,
                        "type": "urn:lumi-spec:property:run-time:00000005:lumi-hmcn01:1",
                        "description": "run-time",
                        "format": "int32",
                        "access": ["read", "notify"],
                        "unit": "none",
                        "value-range": [0, 255, 1]
                }]
        }, {
                "iid": 5,
                "type": "urn:lumi-spec:service:motor-controller:00007803:lumi-hmcn01:1",
                "description": "motor-controller",
                "properties": [{
                        "iid": 1,
                        "type": "urn:lumi-spec:property:adjust-value:00000001:lumi-hmcn01:1",
                        "description": "adjust-value",
                        "format": "int32",
                        "access": ["write"],
                        "unit": "none",
                        "value-range": [-100, 100, 1]
                }],
                "events": [{
                        "iid": 1,
                        "type": "urn:lumi-spec:event:cutain-manual-open:00005001:lumi-hmcn01:1",
                        "description": "cutain-manual-open",
                        "arguments": []
                }, {
                        "iid": 2,
                        "type": "urn:lumi-spec:event:cutain-manual-close:00005002:lumi-hmcn01:1",
                        "description": "cutain-manual-close",
                        "arguments": []
                }]
        }, {
                "iid": 7,
                "type": "urn:lumi-spec:service:remote-cfg:00007804:lumi-hmcn01:1",
                "description": "remote-cfg",
                "properties": [{
                        "iid": 1,
                        "type": "urn:lumi-spec:property:remote-identify:00000001:lumi-hmcn01:1",
                        "description": "remote-identify",
                        "format": "string",
                        "access": ["read", "notify"],
                        "unit": "none"
                }, {
                        "iid": 2,
                        "type": "urn:lumi-spec:property:remote-list:00000002:lumi-hmcn01:1",
                        "description": "remote-list",
                        "format": "string",
                        "access": ["read", "notify"],
                        "unit": "none"
                }, {
                        "iid": 3,
                        "type": "urn:lumi-spec:property:remote-pair:00000003:lumi-hmcn01:1",
                        "description": "remote-pair",
                        "format": "int32",
                        "access": ["write"],
                        "unit": "none",
                        "value-list": [{
                                "value": 0,
                                "description": "exit"
                        }, {
                                "value": 1,
                                "description": "enter"
                        }]
                }, {
                        "iid": 4,
                        "type": "urn:lumi-spec:property:remote-pair-status:00000004:lumi-hmcn01:1",
                        "description": "remote-pair-status",
                        "format": "int32",
                        "access": ["read", "notify"],
                        "unit": "none",
                        "value-list": [{
                                "value": 0,
                                "description": "配对成功"
                        }, {
                                "value": 1,
                                "description": "配对失败"
                        }, {
                                "value": 2,
                                "description": "配对中"
                        }, {
                                "value": 3,
                                "description": "退出配对"
                        }]
                }, {
                        "iid": 5,
                        "type": "urn:lumi-spec:property:remote-delete:00000005:lumi-hmcn01:1",
                        "description": "remote-delete",
                        "format": "string",
                        "access": ["write"],
                        "unit": "none"
                }]
        }, {
                "iid": 8,
                "type": "urn:lumi-spec:service:sunrise-mode:00007801:lumi-hmcn01:1",
                "description": "sunrise-mode",
                "actions": [{
                        "iid": 1,
                        "type": "urn:lumi-spec:action:sunrise-mode:00002801:lumi-hmcn01:1",
                        "description": "sunrise-mode",
                        "in": [],
                        "out": []
                }]
        }]
}

QQ20210111-151652@2x.jpg
回复

使用道具 举报

23

主题

1328

帖子

6523

积分

超级版主

Rank: 8Rank: 8

积分
6523
金钱
5170
HASS币
100

教程狂人

 楼主| 发表于 2021-1-11 15:35:20 | 显示全部楼层
baobaobuku 发表于 2021-1-11 15:18
这是这款窗帘可控制的 piid 和 siid
{
        "type": "urn:miot-spec-v2:device:curtain:0000A00C:lumi-hmcn01 ...

2个都是0是完全打开状态下的么?
完全关闭2个值分别是多少呢?
回复

使用道具 举报

1

主题

118

帖子

2466

积分

金牌会员

Rank: 6Rank: 6

积分
2466
金钱
2348
HASS币
0
发表于 2021-1-11 15:49:35 | 显示全部楼层
本帖最后由 baobaobuku 于 2021-1-11 16:00 编辑
natic 发表于 2021-1-11 15:35
2个都是0是完全打开状态下的么?
完全关闭2个值分别是多少呢?

完全关闭  Current-position  100  Target-position  100  
完全打开  Current-position  0  Target-position  0打开30% Current-position  30  Target-position  30
而且我发现他这个状态好像不更新或者更新很慢
回复

使用道具 举报

23

主题

1328

帖子

6523

积分

超级版主

Rank: 8Rank: 8

积分
6523
金钱
5170
HASS币
100

教程狂人

 楼主| 发表于 2021-1-11 16:32:46 | 显示全部楼层
baobaobuku 发表于 2021-1-11 15:49
完全关闭  Current-position  100  Target-position  100  
完全打开  Current-position  0  Target-posit ...

更新的慢是正常的,你这个应该是反向了,你截图看下米家里面是否反向的设置
回复

使用道具 举报

1

主题

118

帖子

2466

积分

金牌会员

Rank: 6Rank: 6

积分
2466
金钱
2348
HASS币
0
发表于 2021-1-11 16:48:44 | 显示全部楼层
natic 发表于 2021-1-11 16:32
更新的慢是正常的,你这个应该是反向了,你截图看下米家里面是否反向的设置 ...

是这个吗?
1B1DE457356337FF8C8365A43E532B6A.png
回复

使用道具 举报

23

主题

1328

帖子

6523

积分

超级版主

Rank: 8Rank: 8

积分
6523
金钱
5170
HASS币
100

教程狂人

 楼主| 发表于 2021-1-11 17:17:40 | 显示全部楼层

是的,看下是啥
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-4-19 15:37 , Processed in 0.059697 second(s), 33 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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