MIOT
语言
Service tree
宠物喂食机#2 · pet-feeder属性 8动作 1事件 2
宠物喂食机
#2 · pet-feeder
Properties
故障
#1 · fault
- 格式
- uint8
- 读写
- R / N
- 值
- 0null1出粮口阻塞2暂停喂食
开关
#2 · on
- 格式
- bool
- 读写
- R / W / N
- 值
- —
工作状态
#3 · status
- 格式
- uint8
- 读写
- R / N
- 值
- 0空闲1忙碌
出粮量
#4 · feeding-measure
- 格式
- uint8
- 读写
- 值
- 1 ~ 30,步长 1
宠物粮剩余量
#5 · pet-food-left-level
- 格式
- uint8
- 读写
- R / N
- 值
- 1余粮充足3余粮耗尽
设定出粮量
#6 · target-feeding-measure
- 格式
- uint8
- 读写
- R / W / N
- 值
- 1 ~ 30,步长 1
出粮类型
#7 · feeding-type
- 格式
- uint8
- 读写
- 值
- 0按键1App
当前时间(unix timestamp)
#8 · current-time
- 格式
- uint32
- 读写
- 值
- 0 ~ 4294967295,步长 1
Actions
喂食机出粮
#1 · pet-food-out
入参
#4出粮量uint8
Events
出粮完成
#1 · food-out-complete
触发参数
#7出粮类型uint8#4出粮量uint8#8当前时间(unix timestamp)uint32
每日食盆余粮
#2 · day-food-left
触发参数
#5宠物粮剩余量uint8#8当前时间(unix timestamp)uint32