Closed FartherOut closed 3 weeks ago
This is a wall switch with two buttons that controls two relays. It can also be configured (done on the device itself before you add it to a zigbee network) as a "single switch" where both relays are simultaneously activated by any button. I noticed that the device reports one or two "home automation on/off light" entities depending on which mode you put the device in, dual switch mode (default mode) or single switch mode. I don't know the different modes changes anything in the device data, or if it will be automatically set up. I also don't know if the electrical measurements and metering measures both relays, or only one of them, or perhaps the combined power going into/through the device.
I fiddled around a bit and may have made a working DDF. 99% of it came automatically populated from the DDF editor. Unsure if the type is correct. "type": "$TYPE_ON_OFF_OUTPUT",
It defaults to TYPE_ON_OFF_LIGHT but when I used it, it didn't seem to want to update its status in Node-Red or Home Assistant, or at least it took several seconds, up to a minute before it changed status. Changing it to OUTPUT, updates it instantly. Or maybe I did something else completely, to fix it. 😄
{
"schema": "devcap1.schema.json",
"manufacturername": "Namron AS",
"modelid": "4512768",
"vendor": "Namron AS",
"product": "4512768",
"sleeper": false,
"status": "Gold",
"subdevices": [
{
"type": "$TYPE_ON_OFF_OUTPUT",
"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"
},
{
"name": "attr/type"
},
{
"name": "attr/uniqueid"
},
{
"name": "state/alert",
"description": "The currently active alert effect.",
"default": "none"
},
{
"name": "state/on",
"description": "True when device is on; false when off.",
"refresh.interval": 5,
"read": {
"at": "0x0000",
"cl": "0x0006",
"ep": 0,
"fn": "zcl:attr"
},
"parse": {
"at": "0x0000",
"cl": "0x0006",
"ep": 0,
"eval": "Item.val = Attr.val",
"fn": "zcl:attr"
}
},
{
"name": "state/reachable"
}
]
},
{
"type": "$TYPE_ON_OFF_OUTPUT",
"restapi": "/lights",
"uuid": [
"$address.ext",
"0x02"
],
"items": [
{
"name": "attr/id"
},
{
"name": "attr/lastannounced"
},
{
"name": "attr/lastseen"
},
{
"name": "attr/manufacturername"
},
{
"name": "attr/modelid"
},
{
"name": "attr/name"
},
{
"name": "attr/swversion"
},
{
"name": "attr/type"
},
{
"name": "attr/uniqueid"
},
{
"name": "state/alert",
"description": "The currently active alert effect.",
"default": "none"
},
{
"name": "state/on",
"description": "True when device is on; false when off.",
"refresh.interval": 5,
"read": {
"at": "0x0000",
"cl": "0x0006",
"ep": 0,
"fn": "zcl:attr"
},
"parse": {
"at": "0x0000",
"cl": "0x0006",
"ep": 0,
"eval": "Item.val = Attr.val",
"fn": "zcl:attr"
}
},
{
"name": "state/reachable"
}
]
},
{
"type": "$TYPE_POWER_SENSOR",
"restapi": "/sensors",
"uuid": [
"$address.ext",
"0x01",
"0x0b04"
],
"fingerprint": {
"profile": "0x0104",
"device": "0x0051",
"endpoint": "0x01",
"in": [
"0x0000",
"0x0B04"
]
},
"items": [
{
"name": "attr/id"
},
{
"name": "attr/lastannounced"
},
{
"name": "attr/lastseen"
},
{
"name": "attr/manufacturername"
},
{
"name": "attr/mode",
"description": "Operational mode.",
"default": 1
},
{
"name": "attr/modelid"
},
{
"name": "attr/name"
},
{
"name": "attr/swversion"
},
{
"name": "attr/type"
},
{
"name": "attr/uniqueid"
},
{
"name": "config/on"
},
{
"name": "config/reachable"
},
{
"name": "state/current",
"description": "The measured current (in mA).",
"refresh.interval": 300,
"read": {
"at": "0x0508",
"cl": "0x0b04",
"ep": 0,
"fn": "zcl:attr"
},
"parse": {
"at": "0x0508",
"cl": "0x0b04",
"ep": 0,
"eval": "if (Attr.val != 65535) { Item.val = Attr.val; }"
},
"default": 0
},
{
"name": "state/lastupdated"
},
{
"name": "state/power",
"description": "The measured power (in W).",
"refresh.interval": 300,
"read": {
"at": "0x050b",
"cl": "0x0b04",
"ep": 0,
"fn": "zcl:attr"
},
"parse": {
"at": "0x050b",
"cl": "0x0b04",
"ep": 0,
"eval": "if (Attr.val != -32768 && Attr.val != 32768) { Item.val = Attr.val; }"
},
"default": 0
},
{
"name": "state/voltage",
"description": "The measured voltage (in V).",
"refresh.interval": 300,
"read": {
"at": "0x0505",
"cl": "0x0b04",
"ep": 0,
"fn": "zcl:attr"
},
"parse": {
"at": "0x0505",
"cl": "0x0b04",
"ep": 0,
"eval": "if (Attr.val != 65535) { Item.val = Attr.val; }"
},
"default": 0
}
]
},
{
"type": "$TYPE_CONSUMPTION_SENSOR",
"restapi": "/sensors",
"uuid": [
"$address.ext",
"0x01",
"0x0702"
],
"fingerprint": {
"profile": "0x0104",
"device": "0x0051",
"endpoint": "0x01",
"in": [
"0x0000",
"0x0702"
]
},
"items": [
{
"name": "attr/id"
},
{
"name": "attr/lastannounced"
},
{
"name": "attr/lastseen"
},
{
"name": "attr/manufacturername"
},
{
"name": "attr/mode",
"description": "Operational mode.",
"default": 1
},
{
"name": "attr/modelid"
},
{
"name": "attr/name"
},
{
"name": "attr/swversion"
},
{
"name": "attr/type"
},
{
"name": "attr/uniqueid"
},
{
"name": "config/on"
},
{
"name": "config/reachable"
},
{
"name": "state/consumption",
"description": "The measured consumption (in Wh).",
"refresh.interval": 300,
"read": {
"at": "0x0000",
"cl": "0x0702",
"ep": 0,
"fn": "zcl:attr"
},
"parse": {
"at": "0x0000",
"cl": "0x0702",
"ep": 0,
"eval": "Item.val = Attr.val"
},
"default": 0
},
{
"name": "state/lastupdated"
},
{
"name": "state/power",
"description": "The measured power (in W).",
"refresh.interval": 300,
"read": {
"at": "0x050b",
"cl": "0x0b04",
"ep": 0,
"fn": "zcl:attr"
},
"parse": {
"at": "0x050b",
"cl": "0x0b04",
"ep": 0,
"eval": "if (Attr.val != -32768 && Attr.val != 32768) { Item.val = Attr.val; }"
},
"default": 0
}
]
}
],
"bindings": [
{
"bind": "unicast",
"src.ep": 2,
"dst.ep": 1,
"cl": "0x0006",
"report": [
{
"at": "0x0000",
"dt": "0x10",
"min": 1,
"max": 300
}
]
},
{
"bind": "unicast",
"src.ep": 1,
"dst.ep": 1,
"cl": "0x0006",
"report": [
{
"at": "0x0000",
"dt": "0x10",
"min": 1,
"max": 300
}
]
}
]
}
I refined the config a bit, now both switches displays their own power and consumption and everything seems to be working OK.
{
"schema": "devcap1.schema.json",
"manufacturername": "Namron AS",
"modelid": "4512768",
"vendor": "Namron AS",
"product": "4512768",
"sleeper": false,
"status": "Gold",
"path": "/devices/4512768_2_kanal_16a_bryter.json",
"subdevices": [
{
"type": "$TYPE_ON_OFF_OUTPUT",
"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"
},
{
"name": "attr/type"
},
{
"name": "attr/uniqueid"
},
{
"name": "state/alert",
"description": "The currently active alert effect.",
"default": "none"
},
{
"name": "state/on",
"description": "True when device is on; false when off.",
"refresh.interval": 5,
"read": {
"at": "0x0000",
"cl": "0x0006",
"ep": 0,
"fn": "zcl:attr"
},
"parse": {
"at": "0x0000",
"cl": "0x0006",
"ep": 0,
"eval": "Item.val = Attr.val",
"fn": "zcl:attr"
}
},
{
"name": "state/reachable"
}
]
},
{
"type": "$TYPE_ON_OFF_OUTPUT",
"restapi": "/lights",
"uuid": [
"$address.ext",
"0x02"
],
"items": [
{
"name": "attr/id"
},
{
"name": "attr/lastannounced"
},
{
"name": "attr/lastseen"
},
{
"name": "attr/manufacturername"
},
{
"name": "attr/modelid"
},
{
"name": "attr/name"
},
{
"name": "attr/swversion"
},
{
"name": "attr/type"
},
{
"name": "attr/uniqueid"
},
{
"name": "state/alert",
"description": "The currently active alert effect.",
"default": "none"
},
{
"name": "state/on",
"description": "True when device is on; false when off.",
"refresh.interval": 5,
"read": {
"at": "0x0000",
"cl": "0x0006",
"ep": 0,
"fn": "zcl:attr"
},
"parse": {
"at": "0x0000",
"cl": "0x0006",
"ep": 0,
"eval": "Item.val = Attr.val",
"fn": "zcl:attr"
}
},
{
"name": "state/reachable"
}
]
},
{
"type": "$TYPE_POWER_SENSOR",
"restapi": "/sensors",
"uuid": [
"$address.ext",
"0x01",
"0x0b04"
],
"fingerprint": {
"profile": "0x0104",
"device": "0x0051",
"endpoint": "0x01",
"in": [
"0x0000",
"0x0B04"
]
},
"items": [
{
"name": "attr/id"
},
{
"name": "attr/lastannounced"
},
{
"name": "attr/lastseen"
},
{
"name": "attr/manufacturername"
},
{
"name": "attr/mode",
"description": "Operational mode.",
"default": 1
},
{
"name": "attr/modelid"
},
{
"name": "attr/name"
},
{
"name": "attr/swversion"
},
{
"name": "attr/type"
},
{
"name": "attr/uniqueid"
},
{
"name": "config/on"
},
{
"name": "config/reachable"
},
{
"name": "state/current",
"description": "The measured current (in mA).",
"refresh.interval": 300,
"read": {
"at": "0x0508",
"cl": "0x0b04",
"ep": 0,
"fn": "zcl:attr"
},
"parse": {
"at": "0x0508",
"cl": "0x0b04",
"ep": 0,
"eval": "if (Attr.val != 65535) { Item.val = Attr.val; }"
},
"default": 0
},
{
"name": "state/lastupdated"
},
{
"name": "state/power",
"description": "The measured power (in W).",
"refresh.interval": 300,
"read": {
"at": "0x050b",
"cl": "0x0b04",
"ep": 0,
"fn": "zcl:attr"
},
"parse": {
"at": "0x050b",
"cl": "0x0b04",
"ep": 0,
"eval": "if (Attr.val != -32768 && Attr.val != 32768) { Item.val = Attr.val; }"
},
"default": 0
},
{
"name": "state/voltage",
"description": "The measured voltage (in V).",
"refresh.interval": 300,
"read": {
"at": "0x0505",
"cl": "0x0b04",
"ep": 0,
"fn": "zcl:attr"
},
"parse": {
"at": "0x0505",
"cl": "0x0b04",
"ep": 0,
"eval": "if (Attr.val != 65535) { Item.val = Attr.val; }"
},
"default": 0
}
]
},
{
"type": "$TYPE_CONSUMPTION_SENSOR",
"restapi": "/sensors",
"uuid": [
"$address.ext",
"0x01",
"0x0702"
],
"fingerprint": {
"profile": "0x0104",
"device": "0x0051",
"endpoint": "0x01",
"in": [
"0x0000",
"0x0702"
]
},
"items": [
{
"name": "attr/id"
},
{
"name": "attr/lastannounced"
},
{
"name": "attr/lastseen"
},
{
"name": "attr/manufacturername"
},
{
"name": "attr/mode",
"description": "Operational mode.",
"default": 1
},
{
"name": "attr/modelid"
},
{
"name": "attr/name"
},
{
"name": "attr/swversion"
},
{
"name": "attr/type"
},
{
"name": "attr/uniqueid"
},
{
"name": "config/on"
},
{
"name": "config/reachable"
},
{
"name": "state/consumption",
"description": "The measured consumption (in Wh).",
"refresh.interval": 300,
"read": {
"at": "0x0000",
"cl": "0x0702",
"ep": 0,
"fn": "zcl:attr"
},
"parse": {
"at": "0x0000",
"cl": "0x0702",
"ep": 0,
"eval": "Item.val = Attr.val"
},
"default": 0
},
{
"name": "state/lastupdated"
},
{
"name": "state/power",
"description": "The measured power (in W).",
"refresh.interval": 300,
"read": {
"at": "0x050b",
"cl": "0x0b04",
"ep": 0,
"fn": "zcl:attr"
},
"parse": {
"at": "0x050b",
"cl": "0x0b04",
"ep": 0,
"eval": "if (Attr.val != -32768 && Attr.val != 32768) { Item.val = Attr.val; }"
},
"default": 0
}
]
},
{
"type": "$TYPE_POWER_SENSOR",
"restapi": "/sensors",
"uuid": [
"$address.ext",
"0x02",
"0x0b04"
],
"fingerprint": {
"profile": "0x0104",
"device": "0x0051",
"endpoint": "0x02",
"in": [
"0x0000",
"0x0B04"
]
},
"items": [
{
"name": "attr/id"
},
{
"name": "attr/lastannounced"
},
{
"name": "attr/lastseen"
},
{
"name": "attr/manufacturername"
},
{
"name": "attr/mode",
"description": "Operational mode.",
"default": 1
},
{
"name": "attr/modelid"
},
{
"name": "attr/name"
},
{
"name": "attr/swversion"
},
{
"name": "attr/type"
},
{
"name": "attr/uniqueid"
},
{
"name": "config/on"
},
{
"name": "config/reachable"
},
{
"name": "state/current",
"description": "The measured current (in mA).",
"refresh.interval": 300,
"read": {
"at": "0x0508",
"cl": "0x0b04",
"ep": 0,
"fn": "zcl:attr"
},
"parse": {
"at": "0x0508",
"cl": "0x0b04",
"ep": 0,
"eval": "if (Attr.val != 65535) { Item.val = Attr.val; }"
},
"default": 0
},
{
"name": "state/lastupdated"
},
{
"name": "state/power",
"description": "The measured power (in W).",
"refresh.interval": 300,
"read": {
"at": "0x050b",
"cl": "0x0b04",
"ep": 0,
"fn": "zcl:attr"
},
"parse": {
"at": "0x050b",
"cl": "0x0b04",
"ep": 0,
"eval": "if (Attr.val != -32768 && Attr.val != 32768) { Item.val = Attr.val; }"
},
"default": 0
},
{
"name": "state/voltage",
"description": "The measured voltage (in V).",
"refresh.interval": 300,
"read": {
"at": "0x0505",
"cl": "0x0b04",
"ep": 0,
"fn": "zcl:attr"
},
"parse": {
"at": "0x0505",
"cl": "0x0b04",
"ep": 0,
"eval": "if (Attr.val != 65535) { Item.val = Attr.val; }"
},
"default": 0
}
]
},
{
"type": "$TYPE_CONSUMPTION_SENSOR",
"restapi": "/sensors",
"uuid": [
"$address.ext",
"0x02",
"0x0702"
],
"fingerprint": {
"profile": "0x0104",
"device": "0x0051",
"endpoint": "0x02",
"in": [
"0x0000",
"0x0702"
]
},
"items": [
{
"name": "attr/id"
},
{
"name": "attr/lastannounced"
},
{
"name": "attr/lastseen"
},
{
"name": "attr/manufacturername"
},
{
"name": "attr/mode",
"description": "Operational mode.",
"default": 1
},
{
"name": "attr/modelid"
},
{
"name": "attr/name"
},
{
"name": "attr/swversion"
},
{
"name": "attr/type"
},
{
"name": "attr/uniqueid"
},
{
"name": "config/on"
},
{
"name": "config/reachable"
},
{
"name": "state/consumption",
"description": "The measured consumption (in Wh).",
"refresh.interval": 300,
"read": {
"at": "0x0000",
"cl": "0x0702",
"ep": 0,
"fn": "zcl:attr"
},
"parse": {
"at": "0x0000",
"cl": "0x0702",
"ep": 0,
"eval": "Item.val = Attr.val"
},
"default": 0
},
{
"name": "state/lastupdated"
},
{
"name": "state/power",
"description": "The measured power (in W).",
"refresh.interval": 300,
"read": {
"at": "0x050b",
"cl": "0x0b04",
"ep": 0,
"fn": "zcl:attr"
},
"parse": {
"at": "0x050b",
"cl": "0x0b04",
"ep": 0,
"eval": "if (Attr.val != -32768 && Attr.val != 32768) { Item.val = Attr.val; }"
},
"default": 0
}
]
}
],
"bindings": [
{
"bind": "unicast",
"src.ep": 2,
"dst.ep": 1,
"cl": "0x0006",
"report": [
{
"at": "0x0000",
"dt": "0x10",
"min": 1,
"max": 300
}
]
},
{
"bind": "unicast",
"src.ep": 1,
"dst.ep": 1,
"cl": "0x0006",
"report": [
{
"at": "0x0000",
"dt": "0x10",
"min": 1,
"max": 300
}
]
}
]
}
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.
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.
Is there already an existing issue for this?
Product name
Namron Zigbee 2 Kanal 16a Bryter
Manufacturer
Namron AS
Model identifier
4512768
Device type to add
Switch
Node info
Endpoints and clusters
Basic
Further relevant clusters
On/Off
Simple Metering
Electrical Measurement
Any other cluster of relevance/interest
Scenes