tuya-local
tuya-local copied to clipboard
Request support for Gosund Smart Socket SP112, Wi-Fi, 16A, 2xUSB
trafficstars
Mapping:
{
"name": "Smart Socket",
"id": "...",
"key": "...",
"mac": "...",
"uuid": "...",
"category": "pc",
"product_name": "Smart Socket",
"product_id": "zmql6aexy8ua5rox",
"biz_type": 18,
"model": "SP112_RTL",
"sub": false,
"icon": "https://images.tuyaeu.com/smart/icon/ay1517974017716dABhC/0295712f08a611c25356d269f5563e61.png",
"mapping": {
"1": {
"code": "switch_1",
"type": "Boolean",
"values": {}
},
"7": {
"code": "switch_usb1",
"type": "Boolean",
"values": {}
},
"9": {
"code": "countdown_1",
"type": "Integer",
"values": {
"unit": "s",
"min": 0,
"max": 86400,
"scale": 0,
"step": 1
}
},
"15": {
"code": "countdown_usb1",
"type": "Integer",
"values": {
"unit": "s",
"min": 0,
"max": 86400,
"scale": 0,
"step": 1
}
},
"17": {
"code": "add_ele",
"type": "Integer",
"values": {
"unit": "kwh",
"min": 0,
"max": 50000,
"scale": 3,
"step": 100
}
},
"18": {
"code": "cur_current",
"type": "Integer",
"values": {
"unit": "mA",
"min": 0,
"max": 30000,
"scale": 0,
"step": 1
}
},
"19": {
"code": "cur_power",
"type": "Integer",
"values": {
"unit": "W",
"min": 0,
"max": 50000,
"scale": 1,
"step": 1
}
},
"20": {
"code": "cur_voltage",
"type": "Integer",
"values": {
"unit": "V",
"min": 0,
"max": 5000,
"scale": 1,
"step": 1
}
},
"38": {
"code": "relay_status",
"type": "Enum",
"values": {
"range": [
"power_off",
"power_on",
"last"
]
}
},
"39": {
"code": "light_mode",
"type": "Enum",
"values": {
"range": [
"none",
"relay",
"pos"
]
}
},
"40": {
"code": "child_lock",
"type": "Boolean",
"values": {}
},
"41": {
"code": "cycle_time",
"type": "String",
"values": "{}"
},
"42": {
"code": "random_time",
"type": "String",
"values": "{}"
},
"43": {
"code": "switch_inching",
"type": "String",
"values": "{}"
}
},
"ip": "...",
"version": "3.3"
}
Currently it is recognized as another smart socket and working fine, but without USB support.
No local logs have been provided.
Log message:
Device matches blitzwolf_bwshp6_smartplug with quality of 84%. DPS: {"updated_at": 1719391969.749161, "1": false, "7": true, "9": 0, "15": 0, "18": 0, "19": 0, "20": 2275, "21": 1, "22": 514, "23": 26657, "24": 13513, "25": 1544, "38": "2", "39": "relay", "40": false, "41": "", "42": "", "43": "", "101": false}