Skip to content

Commit

Permalink
Add ddf for Moes 1-Gang Dimmer Modules
Browse files Browse the repository at this point in the history
  • Loading branch information
retrography committed Mar 23, 2024
1 parent f4f12bf commit a0d1948
Showing 1 changed file with 72 additions and 0 deletions.
72 changes: 72 additions & 0 deletions devices/moes/Moes_TS0601_1_gang_dimmer_module.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"schema": "devcap1.schema.json",
"manufacturername": ["_TZE200_la2c2uo9", "_TZE204_dcnsggvz"],
"modelid": ["TS0601", "TS0601"],
"vendor": "Moes",
"product": "Moes 1-Gang Dimmer Module",
"sleeper": false,
"status": "Gold",
"subdevices": [
{
"type": "$TYPE_DIMMABLE_PLUGIN_UNIT",
"restapi": "/lights",
"uuid": [
"$address.ext",
"0x01"
],
"items": [
{
"name": "attr/id"
},
{
"name": "attr/lastannounced"
},
{
"name": "attr/lastseen"
},
{
"name": "attr/manufacturername"
},
{
"name": "attr/modelid"
},
{
"name": "attr/name"
},
{
"name": "attr/swversion",
"parse": {"fn": "zcl:attr", "ep": 1, "cl": "0x0000", "at": "0x0001", "script": "tuya_swversion.js"},
"read": {"fn": "zcl:attr", "ep": 1, "cl": "0x0000", "at": "0x0001"}
},
{
"name": "attr/type"
},
{
"name": "attr/uniqueid"
},
{
"name": "state/alert",
"default": "none",
"public": false
},
{
"name": "state/on",
"parse": {"fn": "tuya", "dpid": 1, "eval": "Item.val = Attr.val;" },
"write": {"fn": "tuya", "dpid": 1, "dt": "0x10", "eval": "Item.val == 1 ? 1 : 0;"},
"read": {"fn": "tuya"},
"refresh.interval": 300
},
{
"name": "state/bri",
"parse": {"fn": "tuya", "dpid": 2, "eval": "Item.val = (Attr.val / 1000.0) * 254.0;"},
"write": {"fn": "tuya", "dpid": 2, "dt": "0x2b", "eval": "(Item.val / 254.0) * 1000.0;"},
"read": {"fn": "none"},
"refresh.interval": 84000
},
{
"name": "state/reachable"
}
]
}
]
}

0 comments on commit a0d1948

Please sign in to comment.