Devola-Intelligent heater in local-tuya

I have a Devola-Intelligent heater that i’m trying to setup in Homeassistant
via local-tuya (works fine in Homeassistant via normal tuya).
If i configure the heater as a switch i’m able to power it off/on
but I need to get local-tuya to set the heating modes and Temperature.
i’m wondering if anyone knows how to do this ?
i’ve tried entering the following with no joy they interact with the
heater but not doing the correct commands::

manual dps == 2,3,4

  • platform: switch
    dp: 1 # Power
    name: “Heater Power”

      - platform: number
        dp: 2  # TempSet
        name: "Target Temperature"
        min: 5
        max: 50
        scale: 0
        step: 1
        unit: "°C"
    
      - platform: sensor
        dp: 3  # TempCurrent
        name: "Current Temperature"
        unit: "°C"
        scale: 0
    
      - platform: select
        dp: 4  # Mode
        name: "Heater Mode"
        options:
          - "low"
          - "high"
          - "af"
    

I’ve looked at the tuya developer API and pulled the following :

“product_name”: “Devola-Intelligent heater”,

data model ::

{
“result”: {
“model”: “{"modelId":"000004g7gm","services":[{"actions":,"code":"","description":"","events":,"name":"默认服务","properties":[{"abilityId":1,"accessMode":"rw","code":"Power","description":"","extensions":{"iconName":"icon-dp_power2","attribute":"1"},"name":"开关","typeSpec":{"type":"bool"}},{"abilityId":2,"accessMode":"rw","code":"TempSet","description":"","extensions":{"iconName":"icon-dp_temp","attribute":"4"},"name":"目标温度","typeSpec":{"type":"value","max":50,"min":5,"scale":0,"step":1,"unit":"℃"}},{"abilityId":3,"accessMode":"ro","code":"TempCurrent","description":"","extensions":{"iconName":"icon-dp_sun"},"name":"当前温度","typeSpec":{"type":"value","max":50,"min":0,"scale":0,"step":1,"unit":"℃"}},{"abilityId":4,"accessMode":"rw","code":"Mode","description":"高档、低档、防霜冻","extensions":{"iconName":"icon-dp_mode","attribute":"4"},"name":"模式","typeSpec":{"type":"enum","range":["low","high","af"]}},{"abilityId":12,"accessMode":"ro","code":"Fault","description":"例如,温度传感器故障,高温故障,电机故障等","extensions":{"iconName":"icon-dp_warming","scope":"fault"},"name":"故障告警","typeSpec":{"type":"bitmap","label":["1","2","3"],"maxlen":3}}]}]}”
},
“success”: true,
“t”: 1741689825892,
“tid”: “b548330bfe6511ef8d3cfab3a7102e50”
}

device propeties::

{
“result”: {
“properties”: [
{
“code”: “Power”,
“custom_name”: “”,
“dp_id”: 1,
“time”: 1741689594929,
“type”: “bool”,
“value”: true
},
{
“code”: “TempSet”,
“custom_name”: “”,
“dp_id”: 2,
“time”: 1741692397695,
“type”: “value”,
“value”: 5
},
{
“code”: “TempCurrent”,
“custom_name”: “”,
“dp_id”: 3,
“time”: 1741695867165,
“type”: “value”,
“value”: 19
},
{
“code”: “Mode”,
“custom_name”: “”,
“dp_id”: 4,
“time”: 1741696142310,
“type”: “enum”,
“value”: “af”
},
{
“code”: “Fault”,
“custom_name”: “”,
“dp_id”: 12,
“time”: 1739024722866,
“type”: “bitmap”,
“value”: 0
}
]
},
“success”: true,
“t”: 1741696417352,
“tid”: “0e16e820fe7511efa07e2244d21e00c4”
}
p.s i’m a complete noob so in need of baby steps !

Hi,
I use tuya-local for a similar heater, so I can’t do the baby steps for local-tuya sorry. A couple of suggestions though:
Can you set it up as a “climate” platform instead of “switch” ?
There’s configuration for the Devola Intelligent heater in tuya-local. The configuration schema is different but it should give clues for the setup in local-tuya. See tuya-local/custom_components/tuya_local/devices/devola_intelligent_heater.yaml at 684b181888a46fd9ec9927c9a02522259eb98c56 · make-all/tuya-local · GitHub .
As a third suggestion, if you’re not already invested with local-tuya, installing tuya-local might auto-detect the heater.
GitHub - make-all/tuya-local: Local support for Tuya devices in Home Assistant
Hope those suggestions might be helpful!

Thanks !!
I managed to get it working after sussing out what dps actually did :slight_smile: !! with a lot of help from chatGPT and PerplexityAI

1 Like