I’ve used localtuya in the past without any issue. Wifi devices has been easy to integrate, if perhaps a bit cumbersome because the developer account in iot.tuya.com expires every few months. But the new device I bought (a irrigation timer) doesn’t seem to work.
LocalTuya doesn’t find any entities (the DPs) automatically, and even if I specify the dp_id
of the entities as reported by the API explorer of localtuya, it doesn’t work, all entities report a value of -1. What might be going on? I couldn’t find any troubleshooting for cases like this.
This is what the API explorer report from the device (only the first two fields are important to me).
"properties": [
{
"code": "switch_1",
"custom_name": "",
"dp_id": 1,
"time": 1750682068396,
"type": "bool",
"value": false
},
{
"code": "countdown_1",
"custom_name": "",
"dp_id": 9,
"time": 1750681581116,
"type": "value",
"value": 4
},
{
"code": "irrigation_log_1",
"custom_name": "",
"dp_id": 101,
"time": 1750682068441,
"type": "raw",
"value": "AAfpBhcNIhsGAA=="
},
{
"code": "cycle_timing",
"custom_name": "",
"dp_id": 102,
"time": 1750681581497,
"type": "raw",
"value": "AA=="
},
{
"code": "no_irrigation_timing",
"custom_name": "",
"dp_id": 103,
"time": 1750681581689,
"type": "raw",
"value": "AAAAAAAAAA=="
},
{
"code": "weather_switch",
"custom_name": "",
"dp_id": 104,
"time": 1750681581116,
"type": "bool",
"value": false
},
{
"code": "smart_weather",
"custom_name": "",
"dp_id": 105,
"time": 1750681581116,
"type": "enum",
"value": "sun"
},
{
"code": "weather_delay",
"custom_name": "",
"dp_id": 106,
"time": 1750681581116,
"type": "enum",
"value": "cancel"
},
{
"code": "rain_sensor_switch",
"custom_name": "",
"dp_id": 107,
"time": 1750681581116,
"type": "bool",
"value": false
},
{
"code": "rain_sensor_state",
"custom_name": "",
"dp_id": 108,
"time": 1750681581183,
"type": "enum",
"value": "no_rain"
},
{
"code": "switch_choose",
"custom_name": "",
"dp_id": 109,
"time": 1750421451838,
"type": "raw"
},
{
"code": "timer",
"custom_name": "",
"dp_id": 110,
"time": 1750681581221,
"type": "raw",
"value": "AA=="
}
]
Both fields report a value of -1, which seems inconsistent with what the API explorer reports:
Any idea of what is going on?