Comments (9)
Endpoint:
from deconz-rest-plugin.
@Smanar Can you take a look :)?
from deconz-rest-plugin.
It's a 1 gang switch wired ?
Can try this DDF
{
"schema": "devcap1.schema.json",
"manufacturername": ["_TZ3000_mkhkxx1p", "_TZ3000_tgddllx4", "_TZ3000_g92baclx", "_TZ3000_mkhkxx1p", "_TZ3000_tgddllx4", "_TZ3000_kqvb5akv"],
"modelid": [ "TS0001", "TS0001", "TS0001", "TS0001", "TS0001", "TS0001"],
"product": "1 gang wired switch",
"sleeper": false,
"status": "Gold",
"subdevices": [
{
"type": "$TYPE_ON_OFF_LIGHT",
"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/tuya_swversion.js"},
"read": {"fn": "zcl:attr", "ep": 1, "cl": "0x0000", "at": "0x0001"}
},
{
"name": "attr/type"
},
{
"name": "attr/uniqueid"
},
{
"name": "state/alert",
"default": "none"
},
{
"name": "state/on",
"refresh.interval": 360
},
{
"name": "state/reachable"
}
]
},
{
"type": "$TYPE_CONSUMPTION_SENSOR",
"restapi": "/sensors",
"uuid": [
"$address.ext",
"0x01",
"0x0702"
],
"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/tuya_swversion.js"},
"read": {"fn": "zcl:attr", "ep": 1, "cl": "0x0000", "at": "0x0001"}
},
{
"name": "attr/type"
},
{
"name": "attr/uniqueid"
},
{
"name": "config/on"
},
{
"name": "config/reachable"
},
{
"name": "state/consumption",
"refresh.interval": 360,
"parse": {
"at": "0x0000",
"cl": "0x0702",
"ep": 0,
"eval": "Item.val = 10*Attr.val"
},
"default": 0
},
{
"name": "state/lastupdated"
}
]
},
{
"type": "$TYPE_POWER_SENSOR",
"restapi": "/sensors",
"uuid": [
"$address.ext",
"0x01",
"0x0b04"
],
"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/tuya_swversion.js"},
"read": {"fn": "zcl:attr", "ep": 1, "cl": "0x0000", "at": "0x0001"}
},
{
"name": "attr/type"
},
{
"name": "attr/uniqueid"
},
{
"name": "config/on"
},
{
"name": "config/reachable"
},
{
"name": "state/current",
"refresh.interval": 360,
"default": 0
},
{
"name": "state/lastupdated"
},
{
"name": "state/power",
"refresh.interval": 360,
"default": 0
},
{
"name": "state/voltage",
"refresh.interval": 360,
"default": 0
}
]
}
],
"bindings": [
{
"bind": "unicast",
"src.ep": 1,
"cl": "0x0006",
"report": [
{
"at": "0x0000",
"dt": "0x10",
"min": 1,
"max": 300
}
]
},
{
"bind": "unicast",
"src.ep": 1,
"cl": "0x0702",
"report": [
{
"at": "0x0000",
"dt": "0x25",
"min": 5,
"max": 300,
"change": "0x0000000A"
}
]
},
{
"bind": "unicast",
"src.ep": 1,
"cl": "0x0B04",
"report": [
{
"at": "0x0505",
"dt": "0x21",
"min": 15,
"max": 300,
"change": "0x00000001"
},
{
"at": "0x0508",
"dt": "0x21",
"min": 15,
"max": 300,
"change": "0x00000001"
},
{
"at": "0x050B",
"dt": "0x29",
"min": 5,
"max": 300,
"change": "0x00000001"
}
]
}
]
}
Values power, current voltage consumption will need to be corrected (*10 or /10) but they are not visible on the capture.
So just tell me the value you have and the one you need for I make adapatation.
from deconz-rest-plugin.
Hi @Smanar ,
Thank you for your help.
I am currently at my work. I have access to HA, bot I am not able to copy this ddf file to the correct folder in Deconz environment.
So I think I have to test this from home tomorrow.
from deconz-rest-plugin.
Ha yes on HA
Short way > need to install the DDF in /.local/share/dresden-elektronik/deCONZ/devices
long way > https://forum.phoscon.de/t/how-to-add-edit-a-ddf-on-home-assistant-using-text-editor/1839
from deconz-rest-plugin.
@Smanar
Hi Smanar,
I am still not able to find the corret folder. My Deconz is installed on a HASSOS RPi,
Can you help me access the correct folder?
from deconz-rest-plugin.
No sorry, I don't use docker on my side.
But the previous link is just for HA without external deconz docker.
from deconz-rest-plugin.
As there has not been any response in 21 days, this issue has been automatically marked as stale. At OP: Please either close this issue or keep it active It will be closed in 7 days if no further activity occurs.
from deconz-rest-plugin.
As there has not been any response in 28 days, this issue will be closed. @ OP: If this issue is solved post what fixed it for you. If it is not solved, request to get this opened again.
from deconz-rest-plugin.
Related Issues (20)
- deConz 2.25.1 on macOS donβt start with connected ConBee II HOT 4
- deConz 2.25.1 on macOS - no function of LQI and Neighbor Links buttons HOT 1
- WOOX R7081 Smart Vibration Sensor HOT 1
- Wrong buttonevent's from SYMFONISK Sound Controller E1744 HOT 1
- ConBee III generates increased energy consumption in some devices HOT 5
- SYMFONISK Sound Controller only displays 50% battery power HOT 9
- Door Window Detector, eWeLink, SNZB-04 HOT 3
- Hiking Single Phase 65A DIN Rail Energy Meter (modelid: TS0601, manufacturer: _TZE204_bkkmqmyo) HOT 4
- Human Presence Detector - ZY-M100-S - not working properly HOT 5
- IKEA Parasoll sensor not functioning in Domoticz after loading via the DDF HOT 1
- Aqara Smart Plug with deconz reports jumping energy metering HOT 2
- deconz V2.25.3 - Signify LTW012 show ON (in phoscon) even though it is OFF HOT 30
- Tuya Smoke Detector YG400A - DDF needed HOT 10
- Namron 4512762 HOT 2
- Namron 4512763 HOT 3
- Namron 4512764 HOT 3
- Paulmann 500.67 RGB Remotecontroller HOT 2
- DDF for Tuya TRS MOES (_TZE200_rtrmfadk) HOT 2
- tuya zignee smoke detector TS0601 (_TZE200_rccxox8p) HOT 4
- LIDL smart plug: no update on consumption value (hg08673.json)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deconz-rest-plugin.