Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maxcio aroma diffuser #1675

Closed
teeodor opened this issue Feb 21, 2024 · 6 comments
Closed

Maxcio aroma diffuser #1675

teeodor opened this issue Feb 21, 2024 · 6 comments

Comments

@teeodor
Copy link

teeodor commented Feb 21, 2024

Information about DPS mappings

{
  "result": {
    "model": "{\"modelId\":\"0000000nmq\",\"services\":[{\"actions\":[],\"code\":\"\",\"description\":\"\",\"events\":[],\"name\":\"默认服务\",\"properties\":[
{\"abilityId\":1,\"accessMode\":\"rw\",\"code\":\"Power\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_power\",\"attribute\":\"1\"},\"name\":\"总开关\",\"typeSpec\":{\"type\":\"bool\",\"typeDefaultValue\":false}},
{\"abilityId\":11,\"accessMode\":\"rw\",\"code\":\"Light\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_light\",\"attribute\":\"16\"},\"name\":\"灯光\",\"typeSpec\":{\"type\":\"bool\",\"typeDefaultValue\":false}},
{\"abilityId\":12,\"accessMode\":\"ro\",\"code\":\"fault\",\"description\":\"缺水故障\",\"extensions\":{\"iconName\":\"icon-dp_warming\",\"scope\":\"fault\"},\"name\":\"故障告警\",\"typeSpec\":{\"label\":[\"1\"],\"maxlen\":1,\"type\":\"bitmap\",\"typeDefaultValue\":0}},
{\"abilityId\":13,\"accessMode\":\"rw\",\"code\":\"countdown\",\"description\":\"0:ON;1:1小时;2:3小时;3:6小时。可根据产品实际功能进行设置。\",\"extensions\":{\"iconName\":\"icon-dp_time2\"},\"name\":\"倒计时\",\"typeSpec\":{\"range\":[\"0\",\"1\",\"2\",\"3\"],\"type\":\"enum\",\"typeDefaultValue\":\"0\"}},
{\"abilityId\":14,\"accessMode\":\"ro\",\"code\":\"countdown_left\",\"description\":\"mcu每分钟上报\",\"extensions\":{\"iconName\":\"icon-dp_time\"},\"name\":\"倒计时剩余时间\",\"typeSpec\":{\"max\":360,\"min\":0,\"scale\":0,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":0,\"unit\":\"分钟\"}},
{\"abilityId\":103,\"accessMode\":\"rw\",\"code\":\"dp_mist_grade\",\"description\":\"小喷雾,大喷雾,关闭\",\"name\":\"雾量\",\"typeSpec\":{\"range\":[\"small\",\"big\",\"off\"],\"type\":\"enum\",\"typeDefaultValue\":\"small\"}},
{\"abilityId\":108,\"accessMode\":\"rw\",\"code\":\"colour_data\",\"description\":\"Value: ”00112233334455”(长度为 14 的字符串) 00: R 11: G 22: B 3333: H(色调 Hue) 44: S(饱和度 Saturation) 55: V(明度 Value) 示例: {\\\"2700000000ff27\\\"}\",\"name\":\"彩光模式数\",\"typeSpec\":{\"maxlen\":255,\"type\":\"string\",\"typeDefaultValue\":\"\"}},
{\"abilityId\":109,\"accessMode\":\"rw\",\"code\":\"work_mode\",\"description\":\"white:白光模式;colour:彩光模式;scene:场景模式;scene1-4:不同场景模式切换;可根据产品实际功能更改。\",\"name\":\"工作模式\",\"typeSpec\":{\"range\":[\"white\",\"colour\",\"scene\",\"scene1\",\"scene2\",\"scene3\",\"scene4\"],\"type\":\"enum\",\"typeDefaultValue\":\"white\"}},
{\"abilityId\":110,\"accessMode\":\"rw\",\"code\":\"lightmode\",\"description\":\"1:七彩循环;2:定色;3:夜灯\",\"name\":\"灯光模式\",\"typeSpec\":{\"range\":[\"1\",\"2\",\"3\"],\"type\":\"enum\",\"typeDefaultValue\":\"1\"}},
{\"abilityId\":111,\"accessMode\":\"rw\",\"code\":\"setlight\",\"description\":\"\",\"name\":\"亮度\",\"typeSpec\":{\"max\":255,\"min\":0,\"scale\":0,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":0,\"unit\":\"\"}}]}]}"
  },
  "success": true,
  "t": 1708595295610,
  "tid": "800573a4d16711ee9fb272b4dd63a2de"
}

Information about how the device functions

Hi, I have a problem with this device.
It has 2 value of percentage "50%" and "big", I ask if you can implement that.
https://maxcio.com/products/smart-aroma-diffuser-brown
Thanks

@teeodor teeodor added the new device Unsupported device label Feb 21, 2024
@teeodor
Copy link
Author

teeodor commented Feb 21, 2024

Screenshot_2024-02-21-18-16-16-91_40deb401b9ffe8e1df2f1cc5ba480b12

@make-all make-all added the awaiting feedback Needs more information label Feb 21, 2024
@make-all
Copy link
Owner

I will wait for the log and QueryThingsDataModel result from the API explorer. The above screenshot of cloud API details is not really useful, as it is missing dps and cloud API often differs in small details from the local messages.

@teeodor
Copy link
Author

teeodor commented Feb 22, 2024

Document.pdf

@teeodor
Copy link
Author

teeodor commented Feb 22, 2024

Updated the first post with the result of query things data model

@make-all
Copy link
Owner

Log data:

"cached_state": {
 "updated_at": 1706636226.2633598,
 "1": false,
 "11": false,
 "12": 0,
 "13": "0",
 "14": 0,
 "103": "off",
 "108": "",
 "109": "white",
 "110": "1",
 "111": 255
 },

@make-all make-all added full_info All info needed was provided and removed awaiting feedback Needs more information labels Feb 22, 2024
@teeodor
Copy link
Author

teeodor commented Mar 3, 2024

Hi, do you need more?
Thanks for the time

make-all added a commit that referenced this issue Mar 19, 2024
Same dp layout as Ditua, but uses small, big, off instead of small,
large, (null) for spray amounts.

Issue #1675
@make-all make-all added awaiting confirmation Wating for confirmation the issue is solved unreleased Will be in next release and removed full_info All info needed was provided labels Mar 19, 2024
@make-all make-all removed new device Unsupported device awaiting confirmation Wating for confirmation the issue is solved unreleased Will be in next release labels Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants