Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tuya inverter uses wrong property as current temperature #117266

Open
sorted-bits opened this issue May 11, 2024 · 4 comments
Open

Tuya inverter uses wrong property as current temperature #117266

sorted-bits opened this issue May 11, 2024 · 4 comments
Assignees

Comments

@sorted-bits
Copy link
Contributor

The problem

I have a Fairland Heatpump inverter which is connected to Tuya. It is reporting the current temperature as -22 degrees celsius, while that is not the case.

I looked in the IoT platform of Tuya and the value -22 is actually in the data:

{
  "result": {
    "properties": [
      {
        "code": "Power",
        "custom_name": "",
        "dp_id": 1,
        "time": 1715447232632,
        "value": false
      },
      {
        "code": "WInTemp",
        "custom_name": "",
        "dp_id": 102,
        "time": 1715435793274,
        "value": 18
      },
      {
        "code": "change_tem",
        "custom_name": "",
        "dp_id": 103,
        "time": 1715430101179,
        "value": true
      },
      {
        "code": "SpeedPercentage",
        "custom_name": "",
        "dp_id": 104,
        "time": 1715438243626,
        "value": 0
      },
      {
        "code": "SetMode",
        "custom_name": "",
        "dp_id": 105,
        "time": 1715430374174,
        "value": "warm"
      },
      {
        "code": "SetTemp",
        "custom_name": "",
        "dp_id": 106,
        "time": 1715430307802,
        "value": 27
      },
      {
        "code": "SetDnLimit",
        "custom_name": "",
        "dp_id": 107,
        "time": 1715430374470,
        "value": 18
      },
      {
        "code": "SetUpLimit",
        "custom_name": "",
        "dp_id": 108,
        "time": 1715430101264,
        "value": 40
      },
      {
        "code": "fault1",
        "custom_name": "",
        "dp_id": 115,
        "time": 1715421558893,
        "value": 0
      },
      {
        "code": "fault2",
        "custom_name": "",
        "dp_id": 116,
        "time": 1715421558920,
        "value": 0
      },
      {
        "code": "SilentMdoe",
        "custom_name": "",
        "dp_id": 117,
        "time": 1715421648700,
        "value": false
      },
      {
        "code": "WarmOrCool",
        "custom_name": "",
        "dp_id": 118,
        "time": 1715421547185,
        "value": false
      },
      {
        "code": "OutPipeTemp",
        "custom_name": "",
        "dp_id": 120,
        "time": 1715421547185,
        "value": -22
      },
      {
        "code": "ExhaustTemp",
        "custom_name": "",
        "dp_id": 122,
        "time": 1715421547185,
        "value": -22
      },
      {
        "code": "AmbTemp",
        "custom_name": "",
        "dp_id": 124,
        "time": 1715421547185,
        "value": -22
      },
      {
        "code": "CompFreAct",
        "custom_name": "",
        "dp_id": 125,
        "time": 1715421547185,
        "value": 0
      },
      {
        "code": "CompressorCurrent",
        "custom_name": "",
        "dp_id": 126,
        "time": 1715421547185,
        "value": 0
      },
      {
        "code": "RadTemp",
        "custom_name": "",
        "dp_id": 127,
        "time": 1715421547185,
        "value": -22
      },
      {
        "code": "EXVPosition",
        "custom_name": "",
        "dp_id": 128,
        "time": 1715421547185,
        "value": 0
      },
      {
        "code": "DCFanSpeed",
        "custom_name": "",
        "dp_id": 129,
        "time": 1715421547185,
        "value": 0
      },
      {
        "code": "Defrost",
        "custom_name": "",
        "dp_id": 130,
        "time": 1715421547185,
        "value": false
      },
      {
        "code": "CompRly",
        "custom_name": "",
        "dp_id": 134,
        "time": 1715421547185,
        "value": false
      },
      {
        "code": "CyclePump",
        "custom_name": "",
        "dp_id": 135,
        "time": 1715421547185,
        "value": false
      },
      {
        "code": "ReserveValve",
        "custom_name": "",
        "dp_id": 136,
        "time": 1715421547185,
        "value": false
      },
      {
        "code": "ChargeRly",
        "custom_name": "",
        "dp_id": 139,
        "time": 1715421547185,
        "value": false
      },
      {
        "code": "ACFanSpeed",
        "custom_name": "",
        "dp_id": 140,
        "time": 1715421547185,
        "value": "LowSpeed"
      }
    ]
  },
  "success": true,
  "t": 1715450036814,
  "tid": "70308c860fbf11efb2424a20391ad943"
}

It would be really nice if we could either change the DP which is used or that it could get fixed for this model?

What version of Home Assistant Core has the issue?

core-2024.5.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Tuya

Link to integration documentation on our website

https://www.home-assistant.io/integrations/tuya

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@home-assistant
Copy link

Hey there @tuya, @zlinoliver, @frenck, mind taking a look at this issue as it has been labeled with an integration (tuya) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of tuya can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign tuya Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


tuya documentation
tuya source
(message by IssueLinks)

@zwizwi
Copy link

zwizwi commented May 21, 2024

Same here, it would be nice, if you could change the datapoint to this:
{
"code": "WInTemp",
"custom_name": "",
"dp_id": 102,
"time": 1715435793274,
"value": 18
},
{

For the fairland devices.

@luclve
Copy link

luclve commented May 24, 2024

Same problem here. Temperature remains on -22 degrees:

Schermafbeelding 2024-05-24 om 09 22 47

I want to make an automation to switch on the heatpump if my solarpanels are producing enough power. But when there is no sun for a few days, then I have to overrule this if the incoming temperature of water drops to low. But therefore I need this value. Also am I missing fan speed and (silence) mode datapoints.

@zwizwi
Copy link

zwizwi commented May 25, 2024

Maybe it‘s easier to understand if you see the original app:
IMG_1804
IMG_1805

At that example you can see that the current water in is 20 degrees

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants