Skip to content

Commit

Permalink
DDF for all current NEO smart plugs with metering (TS011F) (#6474)
Browse files Browse the repository at this point in the history
  • Loading branch information
iisworks authored Jan 9, 2023
1 parent 8fb7591 commit d07b551
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 242 deletions.
221 changes: 0 additions & 221 deletions devices/neo/NAS-WR01B.json

This file was deleted.

56 changes: 35 additions & 21 deletions devices/neo/NAS-WR01B_2.json → devices/neo/NAS-WR01B_TS011F.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
{
"schema": "devcap1.schema.json",
"manufacturername": [ "_TZ3000_gjnozsaz", "_TZ3000_zloso4jk" ],
"modelid": [ "TS011F", "TS011F" ],
"product": "NEO Smart Power Plug 16A",
"manufacturername": [
"_TZ3000_gjnozsaz",
"_TZ3000_w0qqde0g",
"_TZ3000_zloso4jk",
"_TZ3000_rdfh8cfs"
],
"modelid": [
"TS011F",
"TS011F",
"TS011F",
"TS011F"
],
"product": "NEO NAS-WR01B Smart Plug",
"sleeper": false,
"status": "Gold",
"path": "/devices/NAS-WR01B_2.json",
"subdevices": [
{
"type": "$TYPE_ON_OFF_PLUGIN_UNIT",
Expand Down Expand Up @@ -34,7 +43,9 @@
"name": "attr/name"
},
{
"name": "attr/swversion"
"name": "attr/swversion",
"parse": {"fn": "zcl", "ep": 1, "cl": "0x0000", "at": "0x0001", "script": "../tuya/tuya_swversion.js"},
"read": {"fn": "zcl", "ep": 1, "cl": "0x0000", "at": "0x0001"}
},
{
"name": "attr/type"
Expand All @@ -44,12 +55,11 @@
},
{
"name": "state/alert",
"description": "The currently active alert effect.",
"default": "none"
},
{
"name": "state/on",
"refresh.interval": 5
"refresh.interval": 360
},
{
"name": "state/reachable"
Expand Down Expand Up @@ -84,7 +94,9 @@
"name": "attr/name"
},
{
"name": "attr/swversion"
"name": "attr/swversion",
"parse": {"fn": "zcl", "ep": 1, "cl": "0x0000", "at": "0x0001", "script": "../tuya/tuya_swversion.js"},
"read": {"fn": "zcl", "ep": 1, "cl": "0x0000", "at": "0x0001"}
},
{
"name": "attr/type"
Expand All @@ -100,7 +112,7 @@
},
{
"name": "state/consumption",
"refresh.interval": 300,
"refresh.interval": 360,
"parse": {
"at": "0x0000",
"cl": "0x0702",
Expand Down Expand Up @@ -142,7 +154,9 @@
"name": "attr/name"
},
{
"name": "attr/swversion"
"name": "attr/swversion",
"parse": {"fn": "zcl", "ep": 1, "cl": "0x0000", "at": "0x0001", "script": "../tuya/tuya_swversion.js"},
"read": {"fn": "zcl", "ep": 1, "cl": "0x0000", "at": "0x0001"}
},
{
"name": "attr/type"
Expand All @@ -158,20 +172,20 @@
},
{
"name": "state/current",
"refresh.interval": 15,
"refresh.interval": 360,
"default": 0
},
{
"name": "state/lastupdated"
},
{
"name": "state/power",
"refresh.interval": 15,
"refresh.interval": 360,
"default": 0
},
{
"name": "state/voltage",
"refresh.interval": 30,
"refresh.interval": 360,
"default": 0
}
]
Expand All @@ -187,7 +201,7 @@
"at": "0x0000",
"dt": "0x10",
"min": 1,
"max": 1800
"max": 300
}
]
},
Expand All @@ -199,7 +213,7 @@
{
"at": "0x0000",
"dt": "0x25",
"min": 1,
"min": 5,
"max": 300,
"change": "0x0000000A"
}
Expand All @@ -213,23 +227,23 @@
{
"at": "0x0505",
"dt": "0x21",
"min": 1,
"min": 15,
"max": 500,
"change": "0x00000003"
"change": "0x00000001"
},
{
"at": "0x0508",
"dt": "0x21",
"min": 1,
"min": 15,
"max": 300,
"change": "0x0000000F"
"change": "0x00000001"
},
{
"at": "0x050B",
"dt": "0x29",
"min": 1,
"min": 5,
"max": 300,
"change": "0x00000003"
"change": "0x00000001"
}
]
}
Expand Down

0 comments on commit d07b551

Please sign in to comment.