Open paazevedo opened 1 month ago
I have several devices I can't get the DP list, sometimes changing the protocol works, Local Tuya tries 3.3 version, and when I change to 3.4 it sometimes works again.
Another approach is to go to Tuya API Explorer and extract the DPs from there and add manually on Local Tuya, this worked for me in some devices.
But weird thing, I have a PIR (motion detection) that I had to use the manual approach and it worked for weeks, but all of a sudden it started to reject a few DPs with Local Tuya saying they're unsupported and the device wasn't updated for sure (I always turn this feature off as soon as I install them).
But try one of these two approaches and you might get your pool heated again. I had to do this with my solar controller, the official integration was only able to get switch/difference but not current temperature which I couldn't work out good automations.
A last suggestion you could try Tuya Local integration instead, it's more simplistic and no manual approach, but they update their devices list very often and I could get one circuit breaker working there that the Local Tuya couldn't.
Tuya API Explorer
@hugoleosp do appreciate your input\help. Well that's part of the problem, as you noticed above, on the Tuya Dev Environment I only see the switch capability. I give a try on the Tuya API explorer and using the "Get the instruction set of the device" for my inverter device ID, this is what I get:
{
"result": {
"category": "rs",
"functions": [
{
"code": "switch",
"desc": "switch",
"name": "switch",
"type": "Boolean",
"values": "{}"
}
]
},
"success": true,
"t": 1715340015315,
"tid": "4649ae670ebf11ef960bd6dfde92944e"
}
But I I look into the Device logs, I'm able to see the different DP's and the changes :
Indeed what I'm missing is indeed the DP's codes but I make no idea how we currently get get them. This seemed to work till 2021 but after that it's broken.
Are u running your HA container in host or in bridge mod? If in bridge mod forward port 6666-6668 inside the container.
Are u running your HA container in host or in bridge mod? If in bridge mod forward port 6666-6668 inside the container.
It's running on host I believe, I would need to go back and check the container settings, but do you mind to elaborate a bit more on why I would need to forward to those ports ? Asking this because if you notice in one of the screenshots I add above, the devices are found after the broadcast...the problem is what the device is returning...not the expected for the integration...
The problem
Not able to connect my Pool Heater (Garden Pac Pool Heater with Local Tuya integration. It detects the device, but when I try to add it, it gives me the following error: 3678 2024-05-08 14:04:56.495 DEBUG (MainThread) [custom_components.localtuya.pytuya] [800...188] ERROR Unexpected Payload from Device - 904 - payload: null
Environment
Home Assistant (docker container running on Synology NAS) localtuya latest one available to the date Core 2024.4.1 Frontend 20240404.1
Steps to reproduce
DP dump
TinyTuyaDump
Provide Home Assistant traceback/logs
Additional information
As stated from the SmartLife application, I'm able to see the Inverter and all the components:
From the Developer site under Tuya:
It just shows a switch true or false, which leads me to think that currently this is what we'll be able to get. But there is anything we can do to get the rest of the parameters ?