question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

missing data available in the API

See original GitHub issue

The problem

I would like to make an automation based on the information whether the thermostat valve is open. Such information is available in the TYUA application, it is also available in the API. Unfortunately, it is not available through integration.

I understand that the thermostat is a device of a certain type and there is no place to display this information, but couldn’t it be presented among the attributes? Or to each device add an additional (disabled by default?) sensor that would have all the data?

What version of Home Assistant Core has the issue?

core-2022.11.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Tuya

Link to integration documentation on our website

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

Diagnostics information

tuya-578f06f106e3b0a50c099b77d45b597e-gabinet-d78d6eb1fda6e2e39b04b3b37cb2b64f.json.txt

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

API output:

{
    "result": {
        "active_time": 1639745994,
        "biz_type": 0,
        "category": "wk",
        "create_time": 1639745994,
        "icon": "smart/icon/ay1523512777050bLIId/f2360f527259e6e8662cb351095cd056.jpg",
        "id": "...",
        "ip": "",
        "lat": "...",
        "local_key": "...",
        "lon": "...",
        "model": "HY368Zigbee",
        "name": "gabinet",
        "node_id": "...",
        "online": true,
        "owner_id": "...",
        "product_id": "cwnjrr72",
        "product_name": "HYTRV Smart ",
        "status": [
            {
                "code": "temp_set",
                "value": 220
            },
            {
                "code": "temp_current",
                "value": 215
            },
            {
                "code": "mode",
                "value": "auto"
            },
            {
                "code": "child_lock",
                "value": true
            },
            {
                "code": "fault",
                "value": 0
            },
            {
                "code": "roomtemp_calibrat",
                "value": 0
            },
            {
                "code": "lowtemp",
                "value": 15
            },
            {
                "code": "hightemp",
                "value": 25
            },
            {
                "code": "wind",
                "value": "AAUK"
            },
            {
                "code": "boost",
                "value": 300
            },
            {
                "code": "valve_set",
                "value": "normal"
            },
            {
                "code": "comfort_temp",
                "value": 21
            },
            {
                "code": "eco_temp",
                "value": 17
            },
            {
                "code": "valve",
                "value": 90
            },
            {
                "code": "power_state",
                "value": false
            },
            {
                "code": "week_state",
                "value": "0"
            },
            {
                "code": "Prog_Workday",
                "value": "Bx4WCAAWCx4WDR4WDx4RFgAP"
            },
            {
                "code": "Prog_Restday",
                "value": "BgAPCAAPCx4PDB4PER4PFgAP"
            },
            {
                "code": "Temp_holiday",
                "value": 17
            },
            {
                "code": "windows_state",
                "value": false
            },
            {
                "code": "Auto_Lock",
                "value": true
            },
            {
                "code": "Days_Holiday",
                "value": 1
            }
        ],
        "sub": true,
        "time_zone": "+01:00",
        "uid": "...",
        "update_time": 1639989806,
        "uuid": "..."
    },
    "success": true,
    "t": 1669035201492,
    "tid": "..."
}

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
majdukcommented, Dec 8, 2022

Makes sense. I’ve also tried that… Could you create a separate bug for that? Reason for creating separate bug and separating these 2 changes is that I would like to maximize the chance of either of them being merged and the API extra data seems to be controversial.

0reactions
Santanachiacommented, Dec 8, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

HTTP status code for "no data available" from an external ...
No data was available for the request (this is viewed as an error); The datasource couldn't be accessed (may be down for maintenance)....
Read more >
All About Missing Data Handling - Towards Data Science
Missing data can be anything from missing sequence, incomplete feature, files missing, information incomplete, data entry error etc. Most ...
Read more >
Missing Data · Issue #9 · data-apis/dataframe-api - GitHub
This issues is dedicated to discussing the large topic of "missing" data. First, a bit on names. I think we can reasonably choose...
Read more >
How to Identify Missing Data, Ensure Data Completeness ...
Missing data refer to rows or columns that have null, blank or incomplete values. Examples: Missing last names, phone numbers, email addresses ...
Read more >
Missing Data & It's Types. In the life cycle of the data science…
The data are missing is independent of the observed and unobserved data i.e there is NO RELATIONSHIP between data missing with any other...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found