Are you sure your climate entitie is created?
This what I see, however it has a warning icon, status “not available”
I think I am starting to see where I went wrong. Needed to add the Card to the Home page and edit. Added your code, however now I run into the below error. I have checked and also re-installed through HACS and also see the resource being available.
the simple-thermostat is also visible in the folder and added to the configuration.yaml. Staring to get lost …
Yeah, a common cause of custom cards not found, is cache
Finally after a full day, found the root-cause. When adding the device (heat-pump), I had to select the 3.3 protocol and not the (newer) 3.4. Now the entity is available and can be added to a card. The only problem I still have is that the DP list seems to be different for this version of the Weau 7kw heat pump (purchased in 2023). Example “target_temperature_dp”: 2 instead of 9 as with your config.
You mention above that you where able to extract the DP codes from the API explorer. Can you give me some guidance on how and where exactly did you find the right DP entries ?
will also start to read this : LocalTuya - Using Tuya IoT Platform to obtain not only Local Keys, but also DP (data point) IDs
Sure, I added the guide here… But if you scroll down, there is an easier method with the API explorer, if you change the method…
Thanks and managed to get nvm/npm installed etc.
After running the ‘node cloud.js’ i did get the available DPS codes as follows:
group: "Mijn huis .." device: "Weau_WP1" devDPS: "{ '1': false, '2': 35, '3': 162, '4': 'eco', '6': 0 }"
group: "Mijn huis .." device: "Weau_WP2" devDPS: "{ '1': false, '2': 35, '3': 158, '4': 'eco', '6': 0 }"
Thats a good start
Also below the ‘raw’ data obtained from the device using the Tuya, Cloud > API Explorer > Device Control > Query Things Data Model:
{
"result": {
"model": "{\"modelId\":\"000003p0fy\",\"services\":[{\"actions\":[],\"code\":\"\",\"description\":\"\",\"events\":[],\"name\":\"默认服务\",\"properties\":[{\"abilityId\":1,\"accessMode\":\"rw\",\"code\":\"switch\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_power3\",\"attribute\":\"1024\"},\"name\":\"开关\",\"typeSpec\":{\"type\":\"bool\"}},{\"abilityId\":2,\"accessMode\":\"rw\",\"code\":\"temp_set\",\"description\":\"制热8-40\\n制冷8-28\\n自动8-40\",\"extensions\":{\"iconName\":\"icon-set\",\"attribute\":\"1024\"},\"name\":\"温度设置\",\"typeSpec\":{\"type\":\"value\",\"max\":60,\"min\":7,\"scale\":0,\"step\":1,\"unit\":\"℃\"}},{\"abilityId\":3,\"accessMode\":\"ro\",\"code\":\"temp_current\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_temp\",\"attribute\":\"1024\"},\"name\":\"当前温度\",\"typeSpec\":{\"type\":\"value\",\"max\":1500,\"min\":-300,\"scale\":1,\"step\":1,\"unit\":\"℃\"}},{\"abilityId\":4,\"accessMode\":\"rw\",\"code\":\"mode\",\"description\":\"hot:强劲制热\\ncold:制冷\\nauto:自动\\neco:节能制热\",\"extensions\":{\"iconName\":\"icon-dp_mode\",\"attribute\":\"1024\"},\"name\":\"工作模式\",\"typeSpec\":{\"type\":\"enum\",\"range\":[\"hot\",\"cold\",\"auto\",\"eco\"]}},{\"abilityId\":6,\"accessMode\":\"ro\",\"code\":\"fault\",\"description\":\"1:传感器故障\\n2:排气温度过高\\n3:高压故障\\n4:低压故障\\n5:水流故障\\n6:出水温度过高\\n7:出水温度过低\\n8:进出水温差过大\\n9:直流风机故障\\n10:盘管温度过高\\n11:驱动通信故障\\n12:预留\\n13:压机驱动故障\\n14:压机过流\\n15:输出缺相\\n16:采样故障\\n17:紧急停机\\n18:DC电压过高\\n19:DC电压过低\\n20:AC欠压\\n21:AC过流\\n22:E2故障\\n23:AC过压\",\"extensions\":{\"iconName\":\"icon-baojing\",\"scope\":\"fault\",\"attribute\":\"1024\"},\"name\":\"故障告警\",\"typeSpec\":{\"type\":\"bitmap\",\"label\":[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\",\"14\",\"15\",\"16\",\"17\",\"18\",\"19\",\"20\",\"21\",\"22\",\"23\"],\"maxlen\":23}}]}]}"
},
This shows that the control values for the DP:4 entry (mode) is r/w with the following values: "hot","cold","auto","eco"
How/where to configure these values ? I have tried tinkering the “hvac_mode_set”: “manual/auto”, line in the core.config_entries file for this entity, however with no success so far. Anybody that can help me with some pointers to where to mod these values ?
This what I have in the core.config_entries file for this device:
"entities": [
{
"id": 1,
"friendly_name": "Weau-WP1",
"target_temperature_dp": 2,
"current_temperature_dp": 3,
"temperature_step": 1,
"precision": 0.1,
"hvac_mode_dp": 4,
"hvac_mode_set": "manual/auto",
"temperature_unit": "celsius",
"target_precision": 1,
"platform": "climate"
}
See below what I have till now (at two Weau Pool Heat Pumps are visible and working, however not perfect yet as I only have ‘heat’ and ‘auto’, where we need ‘hot’ / ‘cold’ / ‘auto’ / ‘eco’ ):
I have been tinkering with the Card configuration, however no matter what I try, I still have 3 buttons, where I can change the labels/icons etc, however it will not send the required commands to the entity/device.
see below example code:
type: custom:simple-thermostat
entity: climate.weau_wp2
layout:
step: column
mode:
headings: false
header: true
control:
hvac:
'off':
name: 'off'
heat:
name: Eco heat
auto:
name: null
and the resulting Card:
In the above screen shot, the State shows ‘auto’, however the heat pump is actually running in ‘eco-mode’. Also the right button has turned green, based on the (wrong) State.
Any help and guidance is much appreciated and a BIG thanks to Fabio for all the help so far. Without Fabio I would not have been able to get this far.
I have checked the actual DP:4 status codes the Heat Pump gives when changing the status of the device (using the tuya app): (I have removed some clutter from below reporting to make it more readable)
➜ config node cloud.js
group: "Mijn huis .." device: "Weau_WP2" devDPS: "{ '1': true, '2': 32, '3': 247, '4': 'eco', '6': 0 }"
➜ config node cloud.js
group: "Mijn huis .." device: "Weau_WP2" devDPS: "{ '1': true, '2': 32, '3': 248, '4': 'hot', '6': 0 }"
➜ config node cloud.js
group: "Mijn huis .." device: "Weau_WP2" devDPS: "{ '1': true, '2': 27, '3': 247, '4': 'cold', '6': 0 }"
➜ config node cloud.js
group: "Mijn huis .." device: "Weau_WP2" devDPS: "{ '1': true, '2': 32, '3': 247, '4': 'auto', '6': 0 }"
➜ config
The DP codes for the 7kw Weau pump therefor are:
1: true, => true or false is power on/off
2: 32, => temp set
3: 247, => temp current
4: eco, => device operating state, this is either hot/eco/cold/auto
6: 0, => device fault codes, default 0 means ‘no error’
As can be seen, the DP 4: codes to be used are: “eco/hot/cold/auto”
In the Simple-Thermostat Card configuration I now have the following code:
type: custom:simple-thermostat
entity: climate.weau_wp2
layout:
step: column
mode:
headings: false
header: true
control:
hvac:
'off':
name: 'off'
heat:
name: Eco heat
auto:
name: null
and this gives the following result:
How do I get the ‘Card’ work with the right status codes the heat pump is reporting and also needs to change operating mode ?
Hi Fabio,
I found this page via Google as i am seeking a sollution for the same heat pump for Homey.
To share the knowledge, i will link (via my google drive) the communication commands for the heat pump i got once from the manufactor Weau - Heat pump communication commands and documentation
Maybe it helps your project…
Another question, are you able to help me with a sollution for the Homey?
Hi I have setup the weau, with the tuya local integration, works great!!
I cannot figure out how to go at this.
I’ve got the W’eau device setup in the Weau app.
It’s working.
Now following the youtube guide, i seem to have to link a device. But all screens are different on the developer portal. And i can’t seem to use the Weau app to add.
Is it really that difficult? Or am i missing something?