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?
Thanks for all the explenation, but I am confused. I can use DP’s. I’m connected to my WEAU by localTuya. I’m stuck with your code. Where can I put it? It looks so simple, but i cannot get it to work.
Can you please point me in the right direction? I tried to configure in localtuya → climate. But I get stuck.
Ik was no code to put, it was exported…’ you need to add it manually, but I now switched from localtuya to tuyalocal, all was done automatically
I have a question about the 3 instances of tuya. I only can manage to get the red circled LocalTuya integration. I can configure everything but then it pops up with only the on/off state. It used to work a few months ago. But i removed the other tuya instances because they told me to use the latest LocalTuya intergration. Now I can’t get it to work. Can you tell me which one that you used? Which card did you use to show in home assistant? I can read in the config that the yaml code is no longer supported. In this thread I see a lot of yaml code. Does it still work? I got lost alang the way… Any help would be very helpfull. Thanks in advance.
Another new W’eau user here I managed to get the Tuya Local addon installed and I have the climate entity for the heater, which looks like this (default card, so not the simple-thermostat or something):
Controlling it using this default card seems to work.
I now am looking for a way to control the device using automations. I tried setting the mode to off using the developer tools, but it seems to turn to ‘heat’ automatically so I don’t think it listened to what I asked. Any suggestions?
EDIT: Using an automation to turn it off seems to work. So I guess that’s enough
@ronald_007 @pergola.fabio can someone help me configuring home assistant? My device (WFI-010) is added to Tuya, i can control it via Tuya and the local Tuya integration sees it, but i am stuck in the setup of LocalTuya on home assistant.
I can select the device, see the local key etc, but then… do i have to add all entities i want manually or does somebody have a ‘template’ i can copy & paste?
btw, i have this HACS repo - not sure if that is the right one to use.
i switched to toyalocal => GitHub - make-all/tuya-local: Local support for Tuya devices in Home Assistant
much easier and better supported
Hello All,
What you all have going here is exactly what i am looking for.
But i fail at step 1: Adding the heatpump to the smartlife app.
I have tried adding to smartlife on my android phone, adding to smartlife and TUYA on my ipad.
What i do:
I remove the heatpump from the W’eau app.
Put the heatpump in pairing mode: Flashing wifi symbol.
Search for new devices in the smartlife app. But it does not find the heatpump.
permissions for the app are fine.
I have even created a dedicated 2.4 ghz wifi network, still no joy.
I can re-pair the heatpump with the W’eau app just fine.
What am i missing here?
Any ideas?
For others:
There is no auto detect. You need to select Smart heat pump (wifi) in the Smart Life app.
Hi Gilles, how do you get all the sensors in Home Assisant?