tuya / tuya-home-assistant

Home Assistant integration for controlling Powered by Tuya (PBT) devices using Tuya Open API, maintained by the Home Assistant Community and Tuya Developer Team.
MIT License
879 stars 207 forks source link

Add support for Wallbox (category qccdz) #1006

Open SaSa1983 opened 1 month ago

SaSa1983 commented 1 month ago

Device normal info

I attached the json debug file for the device

tuya-12a82b36459433bc5a5256645084228e-Wallbox-2ed4339adda492846982ead4b789bb88.json

SaSa1983 commented 1 month ago

  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2024.9.1",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.12.4",
    "docker": true,
    "arch": "aarch64",
    "timezone": "Europe/Berlin",
    "os_name": "Linux",
    "os_version": "6.6.31-haos-raspi",
    "supervisor": "2024.08.0",
    "host_os": "Home Assistant OS 13.1",
    "docker_version": "26.1.4",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "mass": {
      "documentation": "https://music-assistant.io",
      "version": "2024.8.1",
      "requirements": [
        "music-assistant==2.1.3"
      ]
    },
    "eufy_security": {
      "documentation": "https://github.com/fuatakgun/eufy_security",
      "version": "8.0.3",
      "requirements": [
        "websocket-client==1.4.2",
        "aiortsp==1.3.7"
      ]
    },
    "kia_uvo": {
      "documentation": "https://github.com/Hyundai-Kia-Connect/kia_uvo",
      "version": "2.26.6",
      "requirements": [
        "hyundai_kia_connect_api==3.22.8"
      ]
    },
    "fontawesome": {
      "documentation": "https://github.com/thomasloven/hass-fontawesome",
      "version": "2.2.1",
      "requirements": []
    },
    "custom_templates": {
      "documentation": "https://github.com/PiotrMachowski/Home-Assistant-custom-components-Custom-Templates",
      "version": "v1.4.0",
      "requirements": []
    },
    "delete": {
      "documentation": "https://github.com/chomupashchuk/delete-file-home-assistant",
      "version": "1.9",
      "requirements": []
    },
    "climate_template": {
      "documentation": "https://github.com/jcwillox/hass-template-climate",
      "version": "0.8.0",
      "requirements": []
    },
    "flightradar24": {
      "documentation": "https://github.com/AlexandrErohin/home-assistant-flightradar24",
      "version": "1.15.0",
      "requirements": [
        "FlightRadarAPI==1.3.25",
        "pycountry==23.12.11"
      ]
    },
    "simpleicons": {
      "documentation": "https://github.com/vigonotion/hass-simpleicons",
      "version": "v2.2.1",
      "requirements": [
        "simpleicons==7.14.0"
      ]
    },
    "midea_ac_lan": {
      "documentation": "https://github.com/georgezhao2010/midea_ac_lan#readme",
      "version": "v0.3.22",
      "requirements": []
    },
    "ics_calendar": {
      "documentation": "https://github.com/franc6/ics_calendar",
      "version": "5.0.0",
      "requirements": [
        "ics>=0.7.2",
        "recurring_ical_events>=2.0.2",
        "icalendar>=5.0.4"
      ]
    },
    "dwd_weather": {
      "documentation": "https://github.com/FL550/dwd_weather",
      "version": "v2.1.7",
      "requirements": [
        "simple_dwd_weatherforecast==2.1.1",
        "markdownify==0.6.5",
        "suntimes==1.1.2"
      ]
    },
    "hacs": {
      "documentation": "https://hacs.xyz/docs/configuration/start",
      "version": "2.0.1",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "sun2": {
      "documentation": "https://github.com/pnbruckner/ha-sun2/blob/3.3.3/README.md",
      "version": "3.3.3",
      "requirements": []
    },
    "nuki_ng": {
      "documentation": "https://github.com/kvj/hass_nuki_ng",
      "version": "0.2.1",
      "requirements": []
    }
  },
  "integration_manifest": {
    "domain": "tuya",
    "name": "Tuya",
    "codeowners": [
      "Tuya",
      "zlinoliver",
      "frenck"
    ],
    "config_flow": true,
    "dependencies": [
      "ffmpeg"
    ],
    "dhcp": [
      {
        "macaddress": "105A17*"
      },
      {
        "macaddress": "10D561*"
      },
      {
        "macaddress": "1869D8*"
      },
      {
        "macaddress": "381F8D*"
      },
      {
        "macaddress": "508A06*"
      },
      {
        "macaddress": "68572D*"
      },
      {
        "macaddress": "708976*"
      },
      {
        "macaddress": "7CF666*"
      },
      {
        "macaddress": "84E342*"
      },
      {
        "macaddress": "D4A651*"
      },
      {
        "macaddress": "D81F12*"
      }
    ],
    "documentation": "https://www.home-assistant.io/integrations/tuya",
    "integration_type": "hub",
    "iot_class": "cloud_push",
    "loggers": [
      "tuya_iot"
    ],
    "requirements": [
      "tuya-device-sharing-sdk==0.1.9"
    ],
    "is_built_in": true
  },
  "setup_times": {
    "null": {
      "setup": 6.58339999972668e-05
    },
    "12a82b36459433bc5a5256645084228e": {
      "wait_import_platforms": -9.861463375999989,
      "config_entry_setup": 12.337782253
    }
  },
  "data": {
    "endpoint": "https://apigw.tuyaeu.com",
    "terminal_id": "1726053063155IPiSdR",
    "mqtt_connected": true,
    "disabled_by": null,
    "disabled_polling": false,
    "id": "bf8d53a2445e2aedcb5fu2",
    "name": "Wallbox",
    "category": "qccdz",
    "product_id": "7bvgooyjhiua1yyq",
    "product_name": "AC charging control box",
    "online": true,
    "sub": false,
    "time_zone": "+02:00",
    "active_time": "2024-09-11T10:51:56+00:00",
    "create_time": "2024-09-11T10:51:56+00:00",
    "update_time": "2024-09-11T10:51:56+00:00",
    "function": {
      "work_mode": {
        "type": "Enum",
        "value": {
          "range": [
            "charge_now",
            "charge_pct",
            "charge_energy",
            "charge_schedule"
          ]
        }
      },
      "clear_energy": {
        "type": "Boolean",
        "value": {}
      },
      "switch": {
        "type": "Boolean",
        "value": {}
      }
    },
    "status_range": {
      "work_state": {
        "type": "Enum",
        "value": {
          "range": [
            "charger_free",
            "charger_insert",
            "charger_free_fault",
            "charger_wait",
            "charger_charging",
            "charger_pause",
            "charger_end",
            "charger_fault"
          ]
        }
      },
      "work_mode": {
        "type": "Enum",
        "value": {
          "range": [
            "charge_now",
            "charge_pct",
            "charge_energy",
            "charge_schedule"
          ]
        }
      },
      "balance_energy": {
        "type": "Integer",
        "value": {
          "unit": "kW\u00b7h",
          "min": 0,
          "max": 99999999,
          "scale": 3,
          "step": 1
        }
      },
      "clear_energy": {
        "type": "Boolean",
        "value": {}
      },
      "switch": {
        "type": "Boolean",
        "value": {}
      },
      "charge_energy_once": {
        "type": "Integer",
        "value": {
          "unit": "kW\u00b7h",
          "min": 1,
          "max": 999999,
          "scale": 2,
          "step": 1
        }
      }
    },
    "status": {
      "work_state": "charger_free",
      "work_mode": "charge_now",
      "balance_energy": 0,
      "clear_energy": false,
      "switch": false,
      "charge_energy_once": 1
    },
    "home_assistant": {
      "name": "Wallbox",
      "name_by_user": null,
      "disabled": false,
      "disabled_by": null,
      "entities": []
    },
    "set_up": false,
    "support_local": true
  }
}```