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

Request support for zmai-90 #2651

Open
luisolavea opened this issue Dec 16, 2024 · 0 comments
Open

Request support for zmai-90 #2651

luisolavea opened this issue Dec 16, 2024 · 0 comments
Labels
full_info All info needed was provided new device Unsupported device

Comments

@luisolavea
Copy link

luisolavea commented Dec 16, 2024

Log message

Adding 智美WiFi导轨表 device with product id a6djabzmpbbp62gw

Device matches pj1103_clamp_meter with quality of 80%. DPS: {"updated_at": 1734306294.5542758, "1": true, "17": 7763950, "18": 4357, "19": 7049, "20": 2129}

Product ID

a6djabzmpbbp62gw

Product Name

ZMai-90

DPS information

{
  "result": {
    "model": "{\"modelId\":\"00000165ed\",\"services\":[{\"actions\":[],\"code\":\"\",\"description\":\"\",\"events\":[],\"name\":\"默认服务\",\"properties\":[
{\"abilityId\":1,\"accessMode\":\"rw\",\"code\":\"switch_1\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_power2\",\"attribute\":\"5\"},\"name\":\"开关1\",\"typeSpec\":{\"type\":\"bool\"}},
{\"abilityId\":17,\"accessMode\":\"rw\",\"code\":\"add_ele\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-battery\",\"attribute\":\"4\"},\"name\":\"增加电量\",\"typeSpec\":{\"type\":\"value\",\"max\":999999990,\"min\":0,\"scale\":3,\"step\":1,\"unit\":\"kwh\"}},
{\"abilityId\":18,\"accessMode\":\"ro\",\"code\":\"cur_current\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-Ele\"},\"name\":\"当前电流\",\"typeSpec\":{\"type\":\"value\",\"max\":80000,\"min\":0,\"scale\":0,\"step\":1,\"unit\":\"mA\"}},
{\"abilityId\":19,\"accessMode\":\"ro\",\"code\":\"cur_power\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_tool\"},\"name\":\"当前功率\",\"typeSpec\":{\"type\":\"value\",\"max\":190000,\"min\":0,\"scale\":1,\"step\":1,\"unit\":\"W\"}},
{\"abilityId\":20,\"accessMode\":\"ro\",\"code\":\"cur_voltage\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-a_function_turbo\"},\"name\":\"当前电压\",\"typeSpec\":{\"type\":\"value\",\"max\":5000,\"min\":0,\"scale\":1,\"step\":1,\"unit\":\"V\"}},
{\"abilityId\":26,\"accessMode\":\"ro\",\"code\":\"fault\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-baojing\"},\"name\":\"故障告警\",\"typeSpec\":{\"type\":\"bitmap\",\"label\":[\"ov_cr\"],\"maxlen\":1}}]}]}"
  },
  "success": true,
  "t": 1734306903714,
  "tid": "00b4c08bbb4011efbdc2928b87decf29"
}

Information about how the device functions

WebPage: https://www.zemismart.com/wifi-relay-p0290.html

esphome: https://github.com/dentra/esphome-components/blob/master/zmai90.yaml
ZMAi-90 TuyaMCU datapoints:
dp_switch: "1"
dp_total: "17"
dp_power: "19"
dp_current: "18"
dp_voltage: "20"

@luisolavea luisolavea added the new device Unsupported device label Dec 16, 2024
@make-all make-all added the full_info All info needed was provided label Dec 16, 2024
@make-all make-all moved this to 🔖 Ready in Tuya Local Dec 16, 2024
make-all added a commit to janouskovec/tuya-local that referenced this issue Dec 17, 2024
- use only alphanumeric and underscore in attribute names
- standardize on double quotes where needed on strings
- remove some unneeded quoting

PR make-all#2651
make-all added a commit that referenced this issue Dec 17, 2024
- use only alphanumeric and underscore in attribute names
- standardize on double quotes where needed on strings
- remove some unneeded quoting

PR #2651
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
full_info All info needed was provided new device Unsupported device
Projects
Status: 🔖 Ready
Development

No branches or pull requests

2 participants