MIOT HomeMIOT Home
MIOT
#ptx.switch.fgsw2

ptx.switch.fgsw2

urn:miot-spec-v2:device:switch:0000A003:ptx-fgsw2:1:0000C809
语言
Service tree
开关左键
#2 · switch
属性 4动作 1

Properties

左键
#1 · on
格式
bool
读写
R / W / N
模式
#2 · mode
格式
uint8
读写
R / W / N
0有线和无线开关
1无线开关
默认上电状态
#5 · default-power-on-state
格式
uint8
读写
R / W / N
0上电关闭
1上电打开
2断电记忆
按键名称
#6 · name
格式
string
读写

Actions

开关状态切换
#1 · toggle
开关右键
#3 · switch
属性 3动作 1

Properties

右键
#1 · on
格式
bool
读写
R / W / N
模式
#2 · mode
格式
uint8
读写
R / W / N
0有线和无线开关
1无线开关
按键名称
#3 · name
格式
string
读写

Actions

开关状态切换
#1 · toggle
左键
#4 · switch-sensor
事件 3

Events

单击
#1 · click
长按
#2 · long-press
双击
#3 · double-click
右键
#5 · switch-sensor
事件 3

Events

单击
#1 · click
长按
#2 · long-press
双击
#3 · double-click
存在传感器
#19 · occupancy-sensor
属性 3

Properties

有人无人状态(0为无人,非0为有人)
#1 · occupancy-status
格式
uint8
读写
R / N
0无人
1有人
使能开关
#4 · enable-switch
格式
bool
读写
R / W / N
触发有人有效距离
#3 · detection-distance
格式
uint8
读写
R / W / N
1
2
3
左键扩展功能
#12 · switch-ext
属性 9动作 1

Properties

按键模式
#1 · keymode
格式
uint8
读写
R / W / N
0None
1Wireless
2Diandong
3Localscene
4Interlock
遥控地址1
#2 · remoteadra
格式
uint32
读写
R / N
0 ~ 4294967295,步长 1
遥控地址2
#3 · remoteadrb
格式
uint32
读写
R / N
0 ~ 4294967295,步长 1
遥控地址3
#4 · remoteadrc
格式
uint32
读写
R / N
0 ~ 4294967295,步长 1
遥控地址4
#5 · remoteadrd
格式
uint32
读写
R / N
0 ~ 4294967295,步长 1
遥控地址5
#6 · remoteadre
格式
uint32
读写
R / N
0 ~ 4294967295,步长 1
删除遥控
#7 · del-remote
格式
uint8
读写
W
0 ~ 255,步长 1
点动时间(单位:ms)
#8 · diandong-time
格式
uint8
读写
R / W / N
20 ~ 200,步长 20
左键图标
#11 · sw-icon
格式
uint8
读写
R / W / N
0 ~ 20,步长 1

Actions

添加遥控
#1 · add-remote
右键扩展功能
#13 · switch-ext
属性 9动作 1

Properties

按键模式
#1 · keymode
格式
uint8
读写
R / W / N
0None
1Wireless
2Diandong
3Localscene
4Interlock
遥控地址1
#2 · remoteadra
格式
uint32
读写
R / N
0 ~ 4294967295,步长 1
遥控地址2
#3 · remoteadrb
格式
uint32
读写
R / N
0 ~ 4294967295,步长 1
遥控地址3
#4 · remoteadrc
格式
uint32
读写
R / N
0 ~ 4294967295,步长 1
遥控地址4
#5 · remoteadrd
格式
uint32
读写
R / N
0 ~ 4294967295,步长 1
遥控地址5
#6 · remoteadre
格式
uint32
读写
R / N
0 ~ 4294967295,步长 1
删除遥控
#7 · del-remote
格式
uint8
读写
W
0 ~ 255,步长 1
点动时间(单位:ms)
#8 · diandong-time
格式
uint8
读写
R / W / N
20 ~ 200,步长 20
右键图标
#11 · sw-icon
格式
uint8
读写
R / W / N
0 ~ 20,步长 1

Actions

添加遥控
#1 · add-remote
其它功能服务
#16 · other
属性 18动作 3事件 1

Properties

按键模式
#1 · key-mode
格式
uint8
读写
R / W / N
0标准模式
1疾速模式
继电器位置
#2 · relay-idx
格式
uint16
读写
R / W / N
0 ~ 65535,步长 1
开关常通电
#4 · sw-const-power-on
格式
bool
读写
R / W / N
按键字体颜色
#6 · key-colour
格式
uint32
读写
R / W / N
0 ~ 16777215,步长 1
动画类型
#9 · anim-type
格式
uint8
读写
0起始动画
1结束动画
用户留言
#13 · user-text
格式
uint32
读写
R / N
0 ~ 4294967295,步长 1
用户留言
#14 · user-text
格式
uint32
读写
R / N
0 ~ 4294967295,步长 1
用户留言
#15 · user-text
格式
uint32
读写
R / N
0 ~ 4294967295,步长 1
用户留言
#16 · user-text
格式
uint32
读写
R / N
0 ~ 4294967295,步长 1
用户留言
#17 · user-text
格式
uint32
读写
R / N
0 ~ 4294967295,步长 1
用户留言
#18 · user-text
格式
uint32
读写
R / N
0 ~ 4294967295,步长 1
用户留言
#19 · user-text
格式
uint32
读写
R / N
0 ~ 4294967295,步长 1
用户留言
#20 · user-text
格式
uint32
读写
R / N
0 ~ 4294967295,步长 1
用户留言
#21 · user-text
格式
uint32
读写
R / N
0 ~ 4294967295,步长 1
用户留言
#22 · user-text
格式
uint32
读写
R / N
0 ~ 4294967295,步长 1
用户留言设置
#23 · user-text-set
格式
uint32
读写
W
0 ~ 4294967295,步长 1
用户留言设置结果(高8位是序号,其他位每位表示是否需要重传)
#24 · user-text-notify
格式
uint32
读写
R / N
0 ~ 4294967295,步长 1
用户留言设置(直连)
#25 · user-text-set-b
格式
string
读写

Actions

开关全开
#1 · allon
开关全关
#2 · alloff
播放动画
#3 · play-anim
入参
#9动画类型uint8

Events

动画结束
#3 · anim-end
背光
#17 · backlight
属性 7

Properties

开关
#1 · on
格式
bool
读写
R / W / N
亮度
#2 · brightness
格式
uint8
读写
R / W / N
1 ~ 100,步长 1
自动进入待机时间
#3 · auto-into-standby-t
格式
uint8
读写
R / W / N
015秒
130秒
21分钟
32分钟
45分钟
510分钟
255永不
勿扰模式
#4 · not-disturb-mode
格式
bool
读写
R / W / N
勿扰时间段
#5 · not-disturb-time
格式
uint32
读写
R / W / N
0 ~ 4294967295,步长 1
屏幕选择
#7 · screen-saver
格式
uint8
读写
R / N / W
0火焰(动态)
1鱼(动态)
2黑境星环
3黑金流韵
4金箔流韵
5星空向日葵
6金马呈祥
7平头熊智能
8签名留言
255自定义
自定义屏保显示开关
#8 · user-defined-sw
格式
bool
读写
R / N
场景名称
#18 · scene-name
属性 4事件 2

Properties

场景一
#1 · scene-name
格式
string
读写
场景二
#2 · scene-name
格式
string
读写
场景一图标
#21 · scene-icon
格式
uint8
读写
R / W / N
0 ~ 255,步长 1
场景二图标
#22 · scene-icon
格式
uint8
读写
R / W / N
0 ~ 255,步长 1

Events

场景一事件
#1 · scene-one
场景二事件
#2 · scene-two