I’ve got two new devices “Nedis Smart Radiator Thermostat, powered by tuya, ZBHTR20WT”. deconz does not recognize them. Is there any chance to get them running?
Tuya device, if you have the manufacture name and the model id I can check if it’s a clone or a new device.
Thank you!
Brand: Nedis
Vendor Part Number: ZBHTR20WT
EAN number: 5412810451128
Maybe more info on Product URL:
Nope I need the couple Model ID / Manufacture name you can see in deconz (and not phoscon, as the device is not supported, it will be not visible in the API)
It’s tuya, all you can read on brand seller site or product package is crap. You need to include it to have real information.
I realize that you distinguish between deconz and phoscon (for me it was all the same until now). I suppose deconz is the GUI software. I apologize that I can not run GUI software since I have only headless RaspPi in operation. Would the REST API or any other command line tool do the required job?
It’s possible using remote GUI like VNC.
Else you can just install deconz on a PC, switch the conbee the time to have information, and replug the conbee on the production machine.
- “headless” RaspPi means that there is no GUI system software installed, thus it can not do any graphics at all neither serve any graphics requests like VNC. There are reasons for this.
- I do not own any Conbee, but just RaspBee-II.
All that said, I tend to postpone my efforts until the Christmas holidays.
I appreciate your help.
Ha yes sorry, haven’t see you have a RaspBee, but an headless OS can have “graphics”, there is at least 2 methods here Access deCONZ GUI in headless setups · dresden-elektronik/deconz-rest-plugin Wiki · GitHub
Sorry, I might have misinterpreted the word “headless”. My configuration not only lacks a monitor but the OS lacks graphics environment as well, like X11, Wayland or whatever (its Raspbian lite). And I want to stay with it.
Just in case I would setup a dev-system in the future to run the graphical deconz: what would be the advantage to know the ModelD/Manufacturer parameters? How would it be possible then to operate those devices with phoscon?
To make short, tuya make clone of clone of clone.
You can buy 3 devices at the same brand, at the same time, with the same packaging, and have 3 different device (different firmware).
So without them impossible to guess the device you have. And the code use thoses 2 values to reconise the device (for sensors)
But as they are clones, we generaly just need to add them to an existing DDF for exemple take a look on this one deconz-rest-plugin/devices/tuya/_TZ3000_TS0041_1gang_remote.json at master · dresden-elektronik/deconz-rest-plugin · GitHub
Take a look in the devices folder, you can find several DDF for TRV, if your device is a clone, just need to add it, else need to create a full DDF
Phew… feels like opened a can of worms. But, thanks for the explanation, it makes it a little clearer to me. As soon as I have progressed, I will write here.
Manufacturer Name: _TZE200_ne4pikwm
Model Identifier: TS0601
ConBee III (Firmware 26550900)
deCONZ (2.32.0 Pi 4/Windows)
@rosi-ha It seem your device use same dpid
[3, "running_state", tuya.valueConverterBasic.lookup({heat: tuya.enum(1), idle: tuya.enum(0)})],
[8, "open_window", tuya.valueConverter.onOff],
[10, "frost_protection", tuya.valueConverter.onOff],
[27, "local_temperature_calibration", tuya.valueConverter.localTempCalibration2],
[40, "child_lock", tuya.valueConverter.lockUnlock],
[101, "system_mode", tuya.valueConverterBasic.lookup({heat: true, off: false})],
[102, "local_temperature", tuya.valueConverter.divideBy10],
[103, "current_heating_setpoint", tuya.valueConverter.divideBy10],
[105, "battery_low", tuya.valueConverter.trueFalse1], // Not sure if works but no null atm. DP is bitmap?
[106, "leave_home", tuya.valueConverter.onOff],
[108, "schedule_mode", tuya.valueConverter.onOff],
[130, "scale_protection", tuya.valueConverter.onOff], // Not verified, but DP should match
Than clone from another DDF deconz-rest-plugin/devices/tuya/_TZE200_h4cgnbzg_trv.json at master · dresden-elektronik/deconz-rest-plugin · GitHub
So can try this DDF
{
"schema": "devcap1.schema.json",
"manufacturername": "_TZE200_ne4pikwm",
"modelid": "TS0601",
"vendor": "Tuya",
"product": "Nedis TRV",
"sleeper": false,
"status": "Gold",
"subdevices": [
{
"type": "$TYPE_THERMOSTAT",
"restapi": "/sensors",
"uuid": [
"$address.ext",
"0x01",
"0xef00"
],
"meta": {
"values": {
"config/mode": {
"off": 0,
"heat": 1
}
}
},
"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/lowbattery",
"parse": {
"fn": "tuya",
"dpid": 105,
"eval": "Item.val = Attr.val;"
},
"read": {
"fn": "none"
}
},
{
"name": "config/heatsetpoint",
"parse": {
"fn": "tuya",
"dpid": 103,
"eval": "Item.val = Attr.val * 10;"
},
"write": {
"fn": "tuya",
"dpid": 103,
"dt": "0x2b",
"eval": "Item.val / 10;"
},
"read": {
"fn": "tuya"
}
},
{
"name": "config/locked",
"parse": {
"fn": "tuya",
"dpid": 40,
"eval": "Item.val = Attr.val;"
},
"write": {
"fn": "tuya",
"dpid": 40,
"dt": "0x10",
"eval": "Item.val;"
},
"read": {
"fn": "none"
}
},
{
"name": "config/on"
},
{
"name": "config/reachable"
},
{
"name": "config/windowopen_set",
"parse": {
"fn": "tuya",
"dpid": 8,
"eval": "Item.val = Attr.val;"
},
"write": {
"fn": "tuya",
"dpid": 8,
"dt": "0x10",
"eval": "Item.val;"
},
"read": {
"fn": "none"
}
},
{
"name": "config/mode",
"values": [
[
"off",
0
],
[
"heat",
1
]
],
"parse": {
"fn": "tuya",
"dpid": 101,
"eval": "if (Attr.val == 0) { Item.val = 'off' } else { Item.val = 'heat' }"
},
"write": {
"fn": "tuya",
"dpid": 101,
"dt": "0x10",
"eval": "if (Item.val == 'off') { false } else { true }"
},
"read": {
"fn": "none"
}
},
{
"name": "state/lastupdated"
},
{
"name": "state/temperature",
"parse": {
"fn": "tuya",
"dpid": 102,
"eval": "Item.val = Attr.val * 10;"
},
"read": {
"fn": "none"
}
},
{
"name": "state/valve",
"parse": {
"fn": "tuya",
"dpid": 104,
"eval": "Item.val = Attr.val > 5;"
},
"read": {
"fn": "none"
}
}
]
}
]
}
I save the file devices/tuya und restartet deCONZ. In the Phoscan App I can see the trv und a realistic temperature.
Thank you for the fast help!
Let me check the deCONZ logs.
I’m a HA/zigbee beginner, may be I need some time.
Take care, on HA, the OS is a docker, it mean the change done on file can be not persisitent. So according your procedure, you can lose your change after a restart.
If all is working you can make a PR to submit the file officialy or ask for I do the PR.
On HA it’s possible to use the Deconz Toolbox to convert a DDF to a DDB and import the file using Phoscon (with a persistant working mode)