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

fix for caldo up t wifi #2033

Closed
wants to merge 3 commits into from

Conversation

sebastianciupinski
Copy link
Contributor

No description provided.

fan modes cannot be connected with presets, device does not like work like this.
@make-all
Copy link
Owner

I don't see how this is an improvement

@make-all
Copy link
Owner

I see you have changed the dps_val for fan speed, but can you provide a local log to show one of these values? Because if it is just taken from the iot.tuya.com developer portal, there can be differences between cloud and local values like this. I have to assume the originally supplied values were correct in absence of any evidence.

@make-all make-all added the awaiting feedback Needs more information label Jun 23, 2024
@sebastianciupinski
Copy link
Contributor Author

@make-all this is improvement in a way that previous version simply did not work with this device.

I was originally adding this device in PR 1296, but after modification you did and that were merged it did not work.

This PR is fixing that.

@sebastianciupinski
Copy link
Contributor Author

sebastianciupinski commented Jul 24, 2024

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2024.7.3",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.12.4",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/Oslo",
    "os_name": "Linux",
    "os_version": "6.6.33-haos",
    "supervisor": "2024.06.2",
    "host_os": "Home Assistant OS 12.4",
    "docker_version": "26.1.4",
    "chassis": "vm",
    "run_as_root": true
  },
  "custom_components": {
    "tuya_local": {
      "documentation": "https://github.com/make-all/tuya-local",
      "version": "2024.6.0",
      "requirements": [
        "tinytuya==1.14.0",
        "tuya-device-sharing-sdk==0.1.9"
      ]
    },
    "virtual": {
      "documentation": "https://github.com/twrecked/hass-virtual/blob/master/README.md",
      "version": "0.8.0.1",
      "requirements": []
    },
    "webrtc": {
      "documentation": "https://github.com/AlexxIT/WebRTC",
      "version": "v3.5.2",
      "requirements": []
    },
    "spook": {
      "documentation": "https://spook.boo",
      "version": "3.0.1",
      "requirements": []
    },
    "generic_water_heater": {
      "documentation": "https://www.home-assistant.io/integrations/generic_water_heater",
      "version": "0.0.3",
      "requirements": []
    },
    "scheduler": {
      "documentation": "https://github.com/nielsfaber/scheduler-component",
      "version": "v0.0.0",
      "requirements": []
    },
    "auto_backup": {
      "documentation": "https://github.com/jcwillox/hass-auto-backup",
      "version": "1.5.0",
      "requirements": []
    },
    "tuya_cloud_map_extractor": {
      "documentation": "https://github.com/oven-lab/tuya_cloud_map_extractor/blob/main/README.md",
      "version": "v1.2.0",
      "requirements": [
        "numpy",
        "pillow",
        "requests"
      ]
    },
    "smartthinq_sensors": {
      "documentation": "https://github.com/ollo69/ha-smartthinq-sensors",
      "version": "0.39.2",
      "requirements": [
        "pycountry>=23.12.11",
        "xmltodict>=0.13.0",
        "charset_normalizer>=3.2.0"
      ]
    },
    "dual_smart_thermostat": {
      "documentation": "https://github.com/swingerman/ha-dual-smart-thermostat.git",
      "version": "0.9.6",
      "requirements": []
    },
    "nordpool": {
      "documentation": "https://github.com/custom-components/nordpool/",
      "version": "0.0.14",
      "requirements": [
        "nordpool>=0.2",
        "backoff"
      ]
    },
    "spook_inverse": {
      "documentation": "https://spook.boo",
      "version": "3.0.1",
      "requirements": []
    },
    "hacs": {
      "documentation": "https://hacs.xyz/docs/configuration/start",
      "version": "1.34.0",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "xiaomi_cloud_map_extractor": {
      "documentation": "https://github.com/PiotrMachowski/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor",
      "version": "v2.2.0",
      "requirements": [
        "pillow",
        "pybase64",
        "python-miio",
        "requests",
        "pycryptodome"
      ]
    }
  },
  "integration_manifest": {
    "domain": "tuya_local",
    "name": "Tuya Local",
    "codeowners": [
      "make-all"
    ],
    "config_flow": true,
    "dependencies": [],
    "documentation": "https://github.com/make-all/tuya-local",
    "integration_type": "device",
    "iot_class": "local_push",
    "issue_tracker": "https://github.com/make-all/tuya-local/issues",
    "requirements": [
      "tinytuya==1.14.0",
      "tuya-device-sharing-sdk==0.1.9"
    ],
    "version": "2024.6.0",
    "is_built_in": false
  },
  "setup_times": {
    "null": {
      "setup": 2.9921066015958786e-05
    },
    "029b21496f4306cd442426b8554bec0f": {
      "wait_import_platforms": -0.0046515329740941525,
      "config_entry_setup": 1.519773957086727
    },
    "b54c7a2d20610ffa87373082fa960eed": {
      "wait_import_platforms": -0.0014874970074743032,
      "config_entry_setup": 4.916927313897759
    }
  },
  "data": {
    "name": "CALDO UP T WIFI",
    "type": "caldo_up_t_wifi",
    "device_id": "**REDACTED**",
    "device_cid": "",
    "local_key": "**REDACTED**",
    "host": "**REDACTED**",
    "protocol_version": 3.3,
    "tinytuya_version": "1.14.0",
    "api_version_set": 3.3,
    "api_version_used": 3.3,
    "api_working": true,
    "status": {},
    "cached_state": {
      "updated_at": 1721862449.7448854,
      "1": false,
      "2": 18,
      "3": 23,
      "5": "level_1",
      "8": false,
      "19": "cancel",
      "101": false
    },
    "pending_state": {},
    "connected": true,
    "force_dps": [],
    "home_assistant": {
      "name": "CALDO UP T WIFI",
      "name_by_user": null,
      "disabled": false,
      "disabled_by": null,
      "entities": [
        {
          "disabled": false,
          "disabled_by": null,
          "entity_category": null,
          "device_class": null,
          "original_device_class": null,
          "icon": null,
          "unit_of_measurement": null,
          "state": {
            "entity_id": "climate.caldo_up_t_wifi_2",
            "state": "off",
            "attributes": {
              "hvac_modes": [
                "heat_cool",
                "off"
              ],
              "min_temp": 18,
              "max_temp": 45,
              "target_temp_step": 1.0,
              "preset_modes": [
                "fan only",
                "comfort",
                "boost"
              ],
              "swing_modes": [
                "off",
                "on"
              ],
              "current_temperature": 23,
              "temperature": 18,
              "preset_mode": "fan only",
              "swing_mode": "off",
              "friendly_name": "CALDO UP T WIFI",
              "supported_features": 433
            },
            "last_changed": "2024-07-24T18:58:29.918893+00:00",
            "last_reported": "2024-07-24T22:25:22.664099+00:00",
            "last_updated": "2024-07-24T22:25:22.664099+00:00"
          }
        },
        {
          "disabled": false,
          "disabled_by": null,
          "entity_category": "config",
          "device_class": null,
          "original_device_class": null,
          "icon": null,
          "unit_of_measurement": null,
          "state": {
            "entity_id": "switch.caldo_up_t_wifi_window_detection",
            "state": "off",
            "attributes": {
              "icon": "mdi:window-open-variant",
              "friendly_name": "CALDO UP T WIFI Window detection"
            },
            "last_changed": "2024-07-24T18:58:29.918115+00:00",
            "last_reported": "2024-07-24T18:58:29.918115+00:00",
            "last_updated": "2024-07-24T18:58:29.918115+00:00"
          }
        }
      ]
    }
  }
}

dps:
- id: 1
type: boolean
name: hvac_mode
mapping:
- dps_val: true
value: heat
value: "heat_cool"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a heater, there is no reason to change this from heat to heat_cool, as it is not capable of automatically switching between heating and cooling.

@@ -4,20 +4,18 @@ products:
name: Olimpia Splendid Caldo Up T
primary_entity:
entity: climate
translation_only_key: heater
dps:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no good reason to remove the translation_key.

- dps_val: false
value: "off"
- id: 2
type: integer
name: temperature
unit: C
range:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing the unit is not just without reason, it breaks the integration on HA 2024.6 and later, which requires the unit to be set.

value: none
- dps_val: "1"
- dps_val: "level_1"
value: "fan only"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fan_only is not a standard preset name. I think this is better left as "none", which conveys that compared to "comfort" and "boost", it provides no heating.

@make-all make-all removed the awaiting feedback Needs more information label Jul 26, 2024
make-all added a commit that referenced this pull request Jul 28, 2024
The device apparently uses level_1..level_3, not the "0".."2" that was
originally included in the PR.

PR #2033
@make-all make-all closed this Jul 28, 2024
make-all added a commit that referenced this pull request Jul 28, 2024
- rename human_presence_sensor.yaml to more specific name. There is no
  evidence that is is generic enough to go without some identifier.

PR #2153, #2150, #2146, #2145, #2143, #2137, #2136, #2134, #2116,
PR #2087, #2033
timlaing pushed a commit to timlaing/tuya-local that referenced this pull request Aug 8, 2024
The device apparently uses level_1..level_3, not the "0".."2" that was
originally included in the PR.

PR make-all#2033
timlaing pushed a commit to timlaing/tuya-local that referenced this pull request Aug 8, 2024
- rename human_presence_sensor.yaml to more specific name. There is no
  evidence that is is generic enough to go without some identifier.

PR make-all#2153, make-all#2150, make-all#2146, make-all#2145, make-all#2143, make-all#2137, make-all#2136, make-all#2134, make-all#2116,
PR make-all#2087, make-all#2033
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants