GithubHelp home page GithubHelp logo

make-all / tuya-local Goto Github PK

View Code? Open in Web Editor NEW
989.0 23.0 399.0 6.16 MB

Local support for Tuya devices in Home Assistant

License: MIT License

Python 100.00%
tuya climate home-assistant pool-heaters humidifiers dehumidifiers heaters fans switches lights

tuya-local's Introduction

Home Assistant Tuya Local component

Reliability Rating Security Rating Maintainability Rating Lines of Code Coverage

Please report any issues and feel free to raise pull requests. Many others have contributed their help already.

BuyMeCoffee

This is a Home Assistant integration to support devices running Tuya firmware without going via the Tuya cloud. Devices are supported over WiFi, other technologies need a Tuya gateway device (Zigbee devices will work with other Zigbee gateways, but not via this integration).

Note that many Tuya devices seem to support only one local connection. If you have connection issues when using this integration, ensure that other integrations offering local Tuya connections are not configured to use the same device, mobile applications on devices on the local network are closed, and no other software is trying to connect locally to your Tuya devices.

Using this integration does not stop your devices from sending status to the Tuya cloud, so this should not be seen as a security measure, rather it improves speed and reliability by using local connections, and may unlock some features of your device, or even unlock whole devices, that are not supported by the Tuya cloud API.

A similar but unrelated integration is rospogrigio/localtuya, if your device is not supported by this integration, you may find it easier to set up using that as an alternative.


Device support

Note that devices sometimes get firmware upgrades, or incompatible versions are sold under the same model name, so it is possible that the device will not work despite being listed.

Battery powered devices such as door and window sensors, smoke alarms etc which do not use a hub will be impossible to support locally, due to the power management that they need to do to get acceptable battery life.

Hubs are currently supported, but with limitations. Each connection to a sub device uses a separate network connection, but like other Tuya devices, hubs are usually limited in the number of connections they can handle, with typical limits being 1 or 3, depending on the specific Tuya module they are using. This severely limits the number of sub devices that can be connected through this integration.

Tuya Zigbee devices are usually standard zigbee devices, so as an alternative to this integration with a Tuya hub, you can use a supported Zigbee USB stick or Wifi hub with ZHA or Zigbee2MQTT.

Tuya Bluetooth devices can be supported directly by the tuya_ble integration.

Tuya IR hubs that expose general IR remotes as sub devices usually expose them as one way devices (send only). Due to the way this integration does device detection based on the dps returned by the device, it is not currently able to detect such devices at all. Some specialised IR hubs for air conditioner remote controls do work, as they try to emulate a fully smart air conditioner using internal memory of what settings are currently set, and internal temperature and humidity sensors.

A list of currently supported devices can be found in the DEVICES.md file.

Documentation on building a device configuration file is in /custom_components/tuya_local/devices/README.md

If your device is not listed, you can find the information required to add a configuration for it in the following locations:

  1. When attempting to add the device, if it is not supported, you will either get a message saying the device cannot be recognised at all, or you will be offered a list of devices (maybe a list of length 1) that are partial matches, often simple switch is among them. You can cancel the process at this point, and look in the Home Assistant log - there should be a message there containing the current data points (dps) returned by the device.
  2. If you have signed up for iot.tuya.com to get your local key, you should also have access to the API Explorer under "Cloud". Under "Device Control" there is a function called "Query Things Data Model", which returns the dp_id in addition to range information that is needed for integer and enum data types.
  3. By following the method described at the link below, you can find information for all the data points supported by your device, including those not listed by the API explorer method above and those that are only returned under specific conditions. Ignore the requirement for a Tuya Zigbee gateway, that is for Zigbee devices, and this integration does not currently support devices connected via a gateway, but the non-Zigbee/gateway specific parts of the procedure apply also to WiFi devices.

https://www.zigbee2mqtt.io/advanced/support-new-devices/03_find_tuya_data_points.html

If you file an issue to request support for a new device, please include the following information:

  1. Identification of the device, such as model and brand name.
  2. As much information on the datapoints you can gather using the above methods.
  3. If manuals or webpages are available online, links to those help understand how to interpret the technical info above - even if they are not in English automatic translations can help, or information in them may help to identify identical devices sold under other brands in other countries that do have English or more detailed information available.

If you submit a pull request, please understand that the config file naming and details of the configuration may get modified before release - for example if your name was too generic, I may rename it to a more specific name, or conversely if the device appears to be generic and sold under many brands, I may change the brand specific name to something more general. So it may be necessary to remove and re-add your device once it has been integrated into a release.


Installation

hacs_badge

Installation is easiest via the Home Assistant Community Store (HACS), which is the best place to get third-party integrations for Home Assistant. Once you have HACS set up, simply click the button below (requires My Homeassistant configured) or follow the instructions for adding a custom repository and then the integration will be available to install like any other.

Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.

Configuration

After installing, you can easily configure your devices using the Integrations configuration UI. Go to Settings / Devices & Services and press the Add Integration button, or click the shortcut button below (requires My Homeassistant configured).

Add Integration to your Home Assistant instance.

Stage One

The first stage of configuration is to provide the information needed to connect to the device.

You will need to provide your device's IP address or hostname, device ID and local key; the last two can be found using the instructions below.

host

    (string) (Required) IP or hostname of the device.

device_id

    (string) (Required) Device ID retrieved as per the instructions below.

local_key

    (string) (Required) Local key retrieved as per the instructions below.

protocol_version

    (string or float) (Required) Valid options are "auto", 3.1, 3.2, 3.3, 3.4. If you aren't sure, choose "auto", but some 3.2 and maybe 3.4 devices may be misdetected as 3.3 (or vice-versa), so if your device does not seem to respond to commands reliably, try selecting between those protocol versions.

At the end of this step, an attempt is made to connect to the device and see if it returns any data. For tuya protocol version 3.1 devices, the local key is only used for sending commands to the device, so if your local key is incorrect the setup will appear to work, and you will not see any problems until you try to control your device. For more recent Tuya protocol versions, the local key is used to decrypt received data as well, so an incorrect key will be detected at this step and cause an immediate failure. Note that each time you pair the device, the local key changes, so if you obtained the local key using the instructions below, then re-paired with your manufacturer's app, then the key will have changed already.

Stage Two

The second stage of configuration is to select which device you are connecting. The list of devices offered will be limited to devices which appear to be at least a partial match to the data returned by the device.

type

    (string) (Optional) The type of Tuya device. Select from the available options.

If you pick the wrong type, you will need to delete the device and set it up again. This is because different types of devices create different entities, so changing the device type without deleting everything is not easy.

Stage Three

The final stage is to choose a name for the device in Home Assistant.

If you have multiple devices of the same type, you may want to change the name to make it easier to distinguish them.

name

    (string) (Required) Any unique name for the device. This will be used as the base for the entity names in Home Assistant. Although Home Assistant allows you to change the name later, it will only change the name used in the UI, not the name of the entities.

Offline operation issues

Many Tuya devices will stop responding if unable to connect to the Tuya servers for an extended period. Reportedly, some devices act better offline if DNS as well as TCP connections is blocked.

General issues

Many Tuya devices do not handle multiple commands sent in quick succession. Some will reboot, possibly changing state in the process, others will go offline for 30s to a few minutes if you overload them. There is some rate limiting to try to avoid this, but it is not sufficient for many devices, and may not work across entities where you are sending commands to multiple entities on the same device. The rate limiting also combines commands, which not all devices can handle. If you are sending commands from an automation, it is best to add delays between commands - if your automation is for multiple devices, it might be enough to send commands to other devices first before coming back to send a second command to the first one, or you may still need a delay after that. The exact timing depends on the device, so you may need to experiment to find the minimum delay that gives reliable results.

Some devices can handle multiple commands in a single message, so for entity platforms that support it (eg climate set_temperature can include presets, lights pretty much everything is set through turn_on) multiple settings are sent at once. But some devices do not like this and require all commands to set only a single dp at a time, so you may need to experiment with your automations to see whether a single command or multiple commands (with delays, see above) work best with your devices.

Heater issues

Goldair GPPH heaters have individual target temperatures for their Comfort and Eco modes, whereas Home Assistant only supports a single target temperature. Therefore, when you're in Comfort mode you will set the Comfort temperature (5-35), and when you're in Eco mode you will set the Eco temperature (5-21), just like you were using the heater's own control panel. Bear this in mind when writing automations that change the operation mode and set a temperature at the same time: you must change the operation mode before setting the new target temperature, otherwise you will set the current thermostat rather than the new one.

When switching to Anti-freeze mode, the heater will set the current power level to 1 as if you had manually chosen it. When you switch back to other modes, you will no longer be in Auto and will have to set it again if this is what you wanted. This could be worked around in code however it would require storing state that may be cleared if HA is restarted and due to this unreliability it's probably best that you just factor it into your automations.

When child lock is enabled, the heater's display will flash with the child lock symbol ([]) whenever you change something in HA. This can be confusing because it's the same behaviour as when you try to change something via the heater's own control panel and the change is rejected due to being locked, however rest assured that the changes are taking effect.

When setting the target temperature, different heaters have different behaviour, which you may need to compensate for. From observation, GPPH heaters allow the temperature to reach 3 degrees higher than the set temperature before turning off, and 1 degree lower before turning on again. Kogan Heaters on the other hand turn off when the temperature reaches 1 degree over the target in LOW mode, and turn on again 3 degrees below the target. To make these heaters act the same in LOW power mode, you need to set the Kogan thermostat 2 degrees higher than the GPPH thermostat. In HIGH power mode however, they seem to act the same as the GPPH heaters.

The Inkbird thermostat switch does not seem to work for setting anything. If you can figure out how to make setting temperatures and presets work, please leave feedback in Issue #19.

Fan issues

Reportedly, Goldair fans can be a bit flaky. If they become unresponsive, give them about 60 seconds to wake up again.

Anko fans mostly work, except setting the speed does not seem to work. If you can figure out how to set the speed through the Tuya protocol for these devices, please leave feedback on Issue #22.

Smart Switch issues

It has been observed after a while that the current and power readings from the switch were returning 0 when there was clearly a load on the switch. After unplugging and replugging, the switch started returning only dps 1 and 2 (switch status and timer). If HomeAssistant is restarted in that state, the switch detection would fail, however as Home Assistant was left running, it continued to work with no readings for the current, power and voltage. I unplugged the switch overnight, and in the morning it was working correctly.

Cumulative Energy readings seem to be reset whenever the reading is successfully sent to the server. This leads to the energy usage never moving from the minimum reporting level of 0.1kWh, which isn't very useful. It may be possible to get useful readings by blocking the switch from accessing the internet, otherwise an integration sensor based on the Power sensor will need to be set up on the Home Assistant side, and the Energy sensor ignored.

For the amount of consumed energy, it may be reasonable to use an additional helper - the Riemann integral. Select power of switch as the sensor for it. The result of the integral will be calculated in (k/M/G/T)W*h and will correspond to the consumed energy.

Kogan Kettle issues

Although these look like simple devices, their behaviour is not consistent so they are difficult to detect. Sometimes they are misdetected as a simple switch, other times they only output the temperature sensor so are not detected at all.

Beca thermostat issues

Some of these devices support switching between Celcius and Fahrenheit on the control panel, but do not provide any information over the Tuya local protocol about which units are selected. Three configurations for BHP6000 are provided, beca_bhp6000_thermostat_c and beca_bhp6000_thermostat_f, which use Celsius and Fahrenheit respectively, and beca_bhp6000_thermostat_mapped for a buggy looking firmware which displays the temperature on the thermostat in Celsius in increments of half a degree, but uses a slightly offset Fahrenheit for the protocol, as detailed in issue #215. Please select the appropriate config for the temperature units you use. If you change the units on the device control panel, you will need to delete the device from Home Assistant and set it up again.

Saswell C16 thermostat issues

These support configuration as either heating or cooling controllers, but only have one output. The HVAC mode is provided as an indicator of which mode they are in, but are set to readonly so that you cannot accidentally switch the thermostat to the wrong mode from HA.

Finding your device ID and local key

Tuya IoT developer portal

The easiest way to find your local key is with the Tuya Developer portal. If you have previously configured the built in Tuya cloud integration, or localtuya, you probably already have a developer account with the Tuya app linked. Note that you need to use Tuya's own branded "Tuya Smart" or "SmartLife" apps to access devices through the developer portal. For most devices, your device will work identically with those apps as it does with your manufacturer's branded app, but there are a few devices where that is not the case and you will need to decide whether you are willing to potentially lose access to some functionality (such as mapping for some vacuum cleaners).

If you log on to your Developer Portal account, under Cloud you should be able to get a list of your devices, which contains the "Device ID". If you don't see them, check your server is set correctly at the top of the page. Make a note of the Device IDs for all your devices, then select Cloud on the side bar again and go to the API Explorer.

Under "Devices Management", select the "Query Device Details in Bulk" function, and enter your Device IDs, separated by commas. In the results you should see your local_key.

The IP address you should be able to get from your router. Using a command line Tuya client like tuyaapi/cli or tinytuya you may also be able to scan your network for Tuya devices to find the IP address and also automate the above process of connecting to the portal and getting the local key.

Finding device ids and local keys with tinytuya

You can use this component's underlying library tinytuya to scan for devices in your network and find the required information about them. In particular, you need to use this procedure to obtain the node_id value required to connect to hub-dependent devices.

Before running tinytuya's wizard you need to gather your API credentials so head to Tuya's Developer Portal -> Cloud -> Development -> Open project and make a note of:

  • Access ID/Client ID
  • Access Secret/Client Secret

Next, go to the "Devices" tab and note your device id (any of them will work). Also note your region (eg. "Central Europe Data Center") in the combobox at the top right of the page.

Then, open a terminal in your HA machine and run:

python -m tinytuya wizard

Answer the following:

  • Enter API Key from tuya.com: your "Access ID/Client ID"
  • Enter API Secret from tuya.com: your "Access Secret/Client Secret"
  • Enter any Device ID currently registered in Tuya App (used to pull full list) or 'scan' to scan for one: your device id
  • Enter Your Region: your datacenter's region
  • Download DP Name mappings? (Y/n): Y
  • Poll local devices? (Y/n): Y

If your device supports local connections and is in the same network as your HA instance this should find it and report its IP address.

In the devices.json file you will everything you need to add your device:

  • "id": the device id
  • "key": the local key
  • "node_id": the sub-device id. You need this for hub-dependent devices
  • "mapping": in the unfortunate case your device is not yet supported, this key contains a description of all the datapoints reported by the device, type and expected values. You are more than welcome to create a new device specification following the guidelines and submitting a PR.

Connecting to devices via hubs

If your device connects via a hub (eg. battery powered water timers) you have to provide the following info when adding a new device:

  • Device id (uuid): this is the hub's device id
  • IP address or hostname: the hub's IP address or hostname
  • Local key: the hub's local key
  • Sub device id: the actual device you want to control's node_id. Note this node_id differs from the device id, you can find it with tinytuya as described below.

Next steps

  1. This component is mostly unit-tested thanks to the upstream project, but there are a few more to complete. Feel free to use existing specs as inspiration and the Sonar Cloud analysis to see where the gaps are.
  2. Once unit tests are complete, the next task is to complete the Home Assistant quality checklist before considering submission to the HA team for inclusion in standard installations.
  3. Discovery seems possible with the new tinytuya library, though the steps to get a local key will most likely remain manual. Discovery also returns a productKey, which might help make the device detection more reliable where different devices use the same dps mapping but different names for the presets for example.

tuya-local's People

Contributors

aaroncat007 avatar bdf0506 avatar benzoid avatar blakadder avatar darek-margas avatar dmitriy5181 avatar erelke avatar felipejfc avatar gkwok1 avatar illuzn avatar jameskoziol avatar jan-gerard avatar jaymunro avatar jonpetersathan avatar latel avatar levanterman avatar make-all avatar nicole-ashley avatar popeen avatar raphaeleduardo42 avatar sambarlick avatar spuljko avatar ssorgatem avatar szupi-ipuzs avatar twowheelpro avatar vampywiz17 avatar wbln avatar whit-tj avatar yodadacoda avatar zrcz180 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tuya-local's Issues

Support for Poolex Silverline Heatpump

Hi

Not really an issue (sorry, not familiar with Github, but it was the only way to share files) : I wanted to share a configuration file for supporting Poolex Silverline FI heatpumps.
Might work as well for other models from Poolex, which is a quite famous swimming-pool heatpumps manufacturer in France.

Poolex_Silverline_FI_Heatpump.txt

Thanks for this nice add-on and for your great work,
Thomas

Manual changes on heater are not registered by HA

The setup for Andersson heaters are working very well through HA and Nodered. The issue is that when any changes are made manualy directly from the heater, like for example turning it on or off is not registered by HA.

Today I turned the heater off directly from the touch panel in the heater, but it stayed as «Heat» in HA. Can we fix this somehow?

missing "repository.json"

To be added as repo in home assistence need to have in root repository.json with following content:

{
    "name": "tuya-local add-on",
    "url": "https://github.com/make-all/tuya-local",
    "maintainer": "Jason Rumney <[email protected]>"
}

Unable to load workflow

After installing the custom component
Click on add integration
Select tuya local
after few seconds an error message appear

image

Integration stopped working after updating to 0.8.0

When trying to configure the integration a pop-up message indicates that the config flow could not be loaded ...
Initial configuration after update succeeded once.
Device is a BWT FI 45 heat pump.
Error log :
home-assistant.log
2021-06-28 22:27:16 DEBUG (MainThread) [custom_components.tuya_local] Setting up entry for device: 4771835498f4abecc15f
2021-06-28 22:27:16 INFO (MainThread) [custom_components.tuya_local.device] Creating device: 4771835498f4abecc15f
2021-06-28 22:27:16 INFO (MainThread) [custom_components.tuya_local.device] Setting protocol version for Pool heat pump to 3.3.
2021-06-28 22:27:18 ERROR (MainThread) [homeassistant.components.climate] Error while setting up tuya_local platform for climate
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 250, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/tuya_local/climate.py", line 53, in async_setup_entry
CONF_TYPE: config[CONF_TYPE],
KeyError: 'type'

Full log attached....

Did I forget something ?
Really appreciate your help!

Add Support for Kogan Smart Dehumidifier

Hello

Was wondering if it would be possible to add support for the following smart dehumidifier:

https://www.kogan.com/au/buy/kogan-smarterhome-smart-7l-desiccant-dehumidifier/?utm_source=google&utm_medium=product_listing_ads&gclid=Cj0KCQjwraqHBhDsARIsAKuGZeGvh80L-kiwAqezFm2FI3ZHfOJzyLT-BHJcDvfYW_gQYscddFcDWfUaAleBEALw_wcB

I've mapped the DPs as following:

1 - value: true/false (power)

2 - value: low/middle/high/quickdry (fan)

3 - value: numeric (humidity sensor)

8 - value: true/false (swing)

11 - value: 0/1 (tank full indicator)

12 - value: 0, 1, 2, 3 (countdown timer select)

13 - value: 0, 120, 240, 480 (countdown timer minutes)

101: value: 0 - 80 (humidity set point)

Cheers! :)

Instruction to add Kogan Dehumidifer

Is there a step by step on how to add kogan dehumidifer? I can add it as a switch to turn on and off, not sure how to add the rest such as fan speed or humidifier numeric sensor.

Invergo - Inverter Pool Heater not fully compatible

Hi,
First thanks for great job on this integration. It is easy to setup and for the most part works as required.

I have a pool heat inverter heatpump which is compatible with Tuya (runs on the InverGo app). I have successfully extracted the ID and Key from the https://iot.tuya.com/ site and can also see this information when i interact with the tuya-cli wizard command.

When i configure the inverter on the Tuya Local (Home Assistant) integration, i can set either Auto or gardenpac_heatpump which produces the exact same results. I can see the device status, the current water temperature and the target set temperature, but cannot see a switch so that i can turn the device on or off.
By mostly I mean it does somewhat work with any heater config selected - you see on/off status and you are able to turn on/off the device.

You worked with Xeovar in issue 11 to successfuly resolve the issue for him and produce the gardenpac_heatpump option. I have tuya-cli installed, but just need some guidance on how i can extract the dps, ie what the command line should be, as when i enter it as follows )where the ######## are the actual numbers provided in the wizard):
tuya-cli get --id ########## --key ########## --ip 10.0.20.170
No response is produced, and no error is produced either.

dimmer.

Hi, Can I add another device? Dimmer for Led strip.
Standard Function Set:
Code | Type | Values

switch_led | Boolean | {true,false}
work_mode | Enum | {"range":["white","colour","scene","music"]}
bright_value_v2 | Integer | {"min":10,"scale":0,"unit":"","max":1000,"step":1}
scene_data_v2 | Json | {}
countdown_1 | Integer | {"unit":"","min":0,"max":86400,"scale":0,"step":1}
control_data | Json | {}

Standard State Set:
Code Type Values

switch_led Boolean {true,false}
work_mode Enum {"range":["white","colour","scene","music"]}
bright_value_v2 Integer {"min":10,"scale":0,"unit":"","max":1000,"step":1}
scene_data_v2 Json {}
countdown_1 Integer {"unit":"","min":0,"max":86400,"scale":0,"step":1}
control_data Json {}

I would appreciate your help.

Tuya heater preset modes and set temperature not working

Hi,

First of all thanks for this setup for Tuya devices.

I have couple of Tuya heater which I have now set up in HA with Local Tuya. The climate.turn_on and climate.turn_off are working absolutely fine.

Following services are not working:

climate.set_preset_mode - The heaters I have does have the Comfort, Eco and Antifreeze modes.
climate.set_temperature - This is something I was able to do through the Tuya webbased integration in HA.

The heaters are set up as "heaters" in the device setup without choosing a specific model from the list.

The attributes in HA and a picture of my Tuya heater is attached.

attributes

heater

Add support for Kogan Air Conditioner

Hello,

Thanks for all the work you've contributed to this amazing integration.

I added my Kogan Air Conditioner, but it was detected as a switch:

Device matches simple_switch with quality of 11%. DPS: {'1': True, '2': 19, '3': 18, '4': 'COOL', '5': '1', '19': 'C', '105': 0, '106': 0, '107': False, 'updated_at': 1634092153.623758}

Here is the data from Tuya API:

{
  "result": {
    "active_time": 1632719210,
    "biz_type": 0,
    "category": "kt",
    "create_time": 1632719210,
    "icon": "smart/icon/ay15253387844269Sg99/d5401b2b8f67cffe2a26530c926f4876.png",
    "id": "xxxxxxxxxx",
    "ip": "xxxxxxxxxx",
    "lat": "xxxxxxxxxx",
    "local_key": "xxxxxxxxxx",
    "lon": "xxxxxxxxxx",
    "model": "KAWFPAC09YA",
    "name": "AirCon",
    "online": true,
    "owner_id": "xxxxxxxxxx",
    "product_id": "mhod7aykax0wbivn",
    "product_name": "Kogan Smarter Home™ 2.6kW Portable Air Conditioner",
    "status": [
      {
        "code": "switch",
        "value": true
      },
      {
        "code": "temp_set",
        "value": 19
      },
      {
        "code": "temp_current",
        "value": 18
      },
      {
        "code": "windspeed",
        "value": "1"
      }
    ],
    "sub": false,
    "time_zone": "+10:00",
    "uid": "xxxxxxxxxx",
    "update_time": 1634091394,
    "uuid": "xxxxxxxxxx"
  },
  "success": true,
  "t": 1634092193074
}

Looks like there are a few more values being exposed by Tuya-local compared to the Tuya native API. I would guess 4 is the mode (possible values are COOL, FAN, DRY), 5 is fan speed (1 = low, 2 = high), 19 is for Farenheit/Celsius. If sleep timer is set, 103 is number of hours until sleep and 105 is number of minutes until sleep. Not sure about 106 and 107. I've tried a few different settings but each time I import the device, it's always 0/False

Thanks!

Remora Inverter Swimming Pool Heat Pump sort of working.

Hi,

Great work on this integration. I have a Remora Inverter Swimming Pool Heat Pump that uses the Tuya smart life app and it is mostly working using the standard heater type.

This is a link to the heatpump https://www.automatedenvironmentalsystems.co.uk/product/remora-inverter-swimming-pool-heat-pump/

Had to add it to configuration.yaml to get it to show up but then Integration is able to power on and off and read current temp. Not able to set target temp or change heating modes.

I have pulled the DPS IDs with tuya-cli and worked out all of the values which are as follows

dps":{"1":true,"2":30,"3":30,"4":"heat","9":0}

1 - On Off - r/w true = On, false = Off
2 - Desired Temp - r/w in C
3 - Current Temp - r/o
4 - Heating mode - r/w - heat = Smart Heating Mode, h_powerful = Powerful Heating Mode, h_silent = Silent Heating Mode , cool = Smart Cooling Mode, c_powerful = Powerful Cooling Mode
9 - Error codes - 0 = OK, 1 = Water Flow protection

Would it be possible to add this type of heater to the library. If you can what other info would be required?

DETA Fan Contoller

I have a global keys file which has a lot of DP's listed in them.

How do I align them with the DP's that appear when I add a device to local Tuya.

Am I missing something or is it trial and error?

Brand New Install Error in log

Brand New Install Error in log

Any Ideas?

Error while setting up tuya_local platform for climate

File "/config/custom_components/tuya_local/climate.py", line 62, in async_setup_entry

File "/config/custom_components/tuya_local/climate.py", line 50, in async_setup_platform

Madimack Pool heater Support

Love the plugin - working perfectly with my Madimack pool heater!

Any aspirations to make a parallel plugin that supports Homebridge?

anko kmart fan

hey mate
love your work wanted to know how I could go about adding a device I have Anko Kmart fan.
I have queried to dp ids have worked a couple out just wanted to find out how I can go about adding it

anko fan
id 1 power true ,false
id 2 mode normal
id 3 speed 1-8
id 4 osc auto , off
id 6 timer 1-9

regards
rhys

Hello, can you support humidifier

The following information is obtained from IOT Tuya and rospogrigio / localtuya:

DPS Function description Code Type Value range

"2 (value: middle)", Humidifier Intensity mode Enum {"range":["small","middle","large"]}
"3 (value: cancel)", Timer(Hours)
"4 (value: 0)", Timer(Minutes)
"9 (value: 0)", Low Water Level
"10 (value: True)", Master switch switch Boolean {true,false}
"12 (value: humidity)", Work Mode spray_mode Enum {"range":["sleep","humidity","work"]}
"15 (value: 65)", Set Humidity humidity_set Integer {"unit":"%","min":40,"max":90,"scale":0,"step":1}
"16 (value: 65)", Current Humidity
"22 (value: True)" UV Lamp sterilization Boolean {true,false}

dp's 3 and 4 – it is timer setting. 3 – in hours, 4 – in minutes. When timer is no set, then dp_3 have value 'cancel'.

Can you add support? Thank you !

Inverter Pool Heater not fully compatible

Hi :)
First thanks for great job on this integration :)

I have a pool heat inverter thermal pump which is compatible with Tuya, and mostly compatible with this integration.
By mostly I mean it does somewhat work with any heater config selected - you see on/off status and you are able to turn on/off the device.
However none of the heater config works for setting the target temperature and also none of them correctly reads the current set target temp or the current temp from sensor.

Would it be possible to extend this library to support this type of heater? If yes, what kind of data I need to provide?

Can't find Tuya local in integrations

I added the custom repository in hack, installed it and reinitialized HA. When I go to add new integration, I don't get it in the list of integrations. In Hack it shows the integration Tuya local devices and if I go into the custom components folder, it is there. How can I fix it?

Kogan SmarterHome 2000W Smart Glass Panel Heater appearing as "simple_switch"

As per the title, this is the device: https://www.kogan.com/au/buy/kogan-smarterhome-2000w-smart-glass-panel-heater-white/

The HA log file shows:

2021-07-28 17:19:20 WARNING (MainThread) [custom_components.tuya_local.config_flow] Device matches simple_switch with quality of 17%. DPS: {'1': True, '2': False, '3': 23, '4': 20, '5': 0, '7': 'High', 'updated_at': 1627456757.6805298}
2021-07-28 17:19:20 WARNING (MainThread) [custom_components.tuya_local.config_flow] Report this to https://github.com/make-all/tuya-local/issues/

I know '3' is the heat temperature and '4' is the current temperature, I assume '1' is auto/off, but not sure about the rest.

Any idea how to integrate this device into Tuya Local?

Thanks :)

Device is detected as switch

Hi,
Tried both 0.8.8 and main.
Both detect my AC device as a switch.
Product category is: kt
This is the info I have managed to see in the device debug under tuya development platform:

switch | Boolean | "{true,false}"
temp_set | Integer | { "min": 16, "unit": "℃", "scale": 0, "max": 32, "step": 1 }
mode | Enum | { "range": [ "auto", "cold", "hot", "wet", "wind", "eco" ] }
fan_speed_enum | Enum | { "range": [ "auto", "low", "middle", "high" ] }

I have found a homebridge plugin for my AC, which actually works great.
Maybe it could help with the required information, found in the following link:
https://github.com/nitaybz/homebridge-tadiran-ac

Thanks.

Kogan 1500W Panel Heater not working

Hi there. Thanks for making this add-on. I was excited to stumble upon your repo after recently purchasing one of these heaters.

Quick question though. I've managed to extract the UUID and localKey from the Kogan SmarterHome app (Kogan SmarterHome_v2.0.1_apkpure.com.apk) using Bluestacks and BSTweaker but these do not seem to work in your add-on. Do I need to configure the heater in the official Tuya app for this to work?

With the UUID, localKey and IP configured, the add-ons seems to kill the WiFi on the heather as I get about 4 pings then it goes offline for a bit and the cycle continues. I've removed the integration and rebooted HA and now I get a consistent ping and the heater can again be reliably controlled from the Kogan app again.

Adding device seems to timeout?

Hi,

For some reason, adding the integration and adding my device seems to timeout. I fill in the IP-address, the local id and the local key (field labels are missing, so I hope I fill in the right data in the right fields). When saving, it's busy for some time, but doesn't save or whatsoever. I don't know where to find log files (if any), so don't know how to give any more info.
Is this a known problem? Or can I supply more info, and, if so, how?

Request to support another thermostat

Hello, Thanks again for supporting these devices, I came with new Thermostat.

While trying to add the thermostat it shows as switch only.

The thermostat is from a company called saswell here is a link of the product

and another link for the manual

The below is what I can read from the device

{
  "result": {
    "active_time": 1633009656,
    "biz_type": 18,
    "category": "wk",
    "create_time": 1633008214,
    "icon": "smart/icon/ay1537509218624daaHb/1568701541ef9f14aff8e.jpg",
    "id": "quoted for security",
    "ip": "quoted for security",
    "lat": "quoted for security",
    "local_key": "quoted for security",
    "lon": "quoted for security",
    "model": "T29UTW-7-WIFI(TY)",
    "name": "Room Thermostat",
    "online": true,
    "owner_id": "quoted for security",
    "product_id": "q2cf9qt8zl2qyqhz",
    "product_name": "T29UTW",
    "status": [
      {
        "code": "switch",
        "value": true
      },
      {
        "code": "mode",
        "value": "cold"
      },
      {
        "code": "c_f",
        "value": "C"
      },
      {
        "code": "temp_set",
        "value": 23
      },
      {
        "code": "temp_current",
        "value": 23
      },
      {
        "code": "temp_set_f",
        "value": 74
      },
      {
        "code": "temp_current_f",
        "value": 81
      }
    ],
    "sub": false,
    "time_zone": "+00:00",
    "uid": "quoted for security",
    "update_time": quoted for security,
    "uuid": "quoted for security"
  },
  "success": true,
  "t": .....
}

Edit:

I added the DPS from HA while detecting it as simple switch and what I think it will be

Device matches simple_switch with quality of 7%. DPS: {
'1': True, #True the thermostat is on position False is off position 
'2': 240,  #set tempreture 24.0 (exact reading on the panel)
'3': 241,  #currunt tempreture 24.1 (exact reading on the panel)
'4': 'cold',  #mode cold / off (it can be heat as well) it changes from cold to off when the thermostat in off position
'5': 'auto',  #fan auto or on
'19': 'c',  # Celsius or Fahrenheit
'101': False, 
'102': False, 
'103': 'cold',  #mode it doesn't change when it is in off position
'112': '1', 
'113': 0, 
'114': 24, #set temp in C
'115': 24,  #current temp in C
'116': 75,  #set temp in F
'117': 81,  # current temp in F
'updated_at': 1633013846.2673612
}

I can find out the others if I played with the configuration of the device if needed

Thanks again :)

EBERG QUBO Q40HD 4,1kW

Hello!

I have problem with my AC in tuya local integration.

When I adding it, I cant see "climate" option. I can only choose "simple_switch". If I do this - I can only turn on and off my AC.

There is any option which allow me to "manually" add missing features? (temperature control/mode set)

Thanks for any responses :)

Kogan heater stopped working with tuya local

Thanks so much for the integration I have been using it for quite a while now for my 3 Kogan 2000W heaters with no problems up until now. One of the heaters is slightly older than the others and for some reason tuya local can no longer control it. The heater is still fully controllable via the Tuya Smart app and I can connect it to HA using the included Tuya integration but would much prefer tuya local. The product ID of the heater that stopped working with tuya local is "ynjanlglr4qa6dxf" if that helps. Please let me know if you need any additional info.

Multiple switch device

Hi,
I spent most of Sunday trying to make double outlet working and found there is no way to add anything what has multiple entity of the same type. So, if there is 4 button light switch or two button (in fact 3 with virtual master) outlet it won't work at all.

Support for BWT FI 45 pool heater

Hi,
are you guys planning to support the BWT FI 45 pool heater?

I tried to integrate it which resulted in the follwoing error:
2021-05-25 17:19:58 ERROR (MainThread) [homeassistant.components.climate] Error while setting up tuya_local platform for climate
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 231, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/tuya_local/climate.py", line 52, in async_setup_entry
await async_setup_platform(hass, {}, async_add_entities, discovery_info)
File "/config/custom_components/tuya_local/climate.py", line 27, in async_setup_platform
raise ValueError(f"Unable to detect type for device {device.name}")
ValueError: Unable to detect type for device My pool heater

From the error message I assume the decvice is simply not supported...

I also assume the integration almost works because I could see some actual device data in the log:
2021-05-25 17:38:13 WARNING (MainThread) [homeassistant.loader] You are using a custom integration tuya_local which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2021-05-25 17:38:18 DEBUG (MainThread) [custom_components.tuya_local] Setting up entry for device: 4771835498f4abecc15f
2021-05-25 17:38:18 DEBUG (MainThread) [custom_components.tuya_local.device] Creating device: 4771835498f4abecc15f
2021-05-25 17:38:18 INFO (MainThread) [custom_components.tuya_local.device] Setting protocol version for My pool heater to 3.3.
2021-05-25 17:38:20 DEBUG (SyncWorker_2) [custom_components.tuya_local.device] Refreshing device state for My pool heater.
2021-05-25 17:38:20 DEBUG (SyncWorker_2) [custom_components.tuya_local.device] refreshed device state: {"devId": "4771835498f4abecc15f", "dps": {"1": true, "2": 25, "3": 24, "4": "heat", "9": 0, "updated_at": 1621957100.7268553}}
2021-05-25 17:38:20 DEBUG (SyncWorker_2) [custom_components.tuya_local.device] new cache state (including pending properties): {"1": true, "2": 25, "3": 24, "4": "heat", "9": 0, "updated_at": 1621957100.7268553}
2021-05-25 17:38:20 DEBUG (MainThread) [custom_components.tuya_local.device] Inferring device type from cached state: {'1': True, '2': 25, '3': 24, '4': 'heat', '9': 0, 'updated_at': 1621957100.7268553}
2021-05-25 17:38:21 WARNING (MainThread) [custom_components.tuya_local.device] Detection for My pool heater failed
2021-05-25 17:38:21 ERROR (MainThread) [homeassistant.components.climate] Error while setting up tuya_local platform for climate
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 231, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/tuya_local/climate.py", line 52, in async_setup_entry
await async_setup_platform(hass, {}, async_add_entities, discovery_info)
File "/config/custom_components/tuya_local/climate.py", line 27, in async_setup_platform
raise ValueError(f"Unable to detect type for device {device.name}")
ValueError: Unable to detect type for device My pool heater

From the log I can guess that taget and current temperature as well as heating mode and other information is already taken from the device...

All in all looks pretty promising to me :-)

Hope to hear from you guys

Please add support of heater Wetair WCH-750 AL WIFI

Name: Wetair WCH-750 AL WIFI

HA warning: Device matches simple_switch with quality of 12%. DPS: {'1': False, '2': 17, '4': 'mod_free', '11': 'heating', '19': '0h', '20': 0, '21': 0, '101': 'level1', 'updated_at': 1632857027.131441}

Now it works just like a switch, but I would like to ask you add an ability to set target temp (dps = 2), and current hvac mode (off, idle, heat) if it possible.

I can provide examples of heater statuses in different modes, if it required

BHT-8000

I have a BHT-8000 , and this one is not reconised as climate
Is this supported by this integration ?!

Following Update to last release 0.9.0 AC Unavailable

Hi,
I have just updated to the last revision (0.9.0) from revision 0.8.9, my AC became unavailable.
My AC model is Tadiran Wind 65/3P.
Is there any change that might cause the issue?
Is there any log that I can provide?

Thanks.

Madimack Pool Heater no longer working

Hi there,

Since upgrading to the latest release of tuya-local, I can no longer control my Madimack pool heater.

It seems that it still gets discovered according to the log (see below), but then it shows 'unavailable' in Lovelace/Homekit.

2021-08-16 00:44:04 INFO (MainThread) [custom_components.tuya_local.device] Creating device: 10568847c82b96120e36 2021-08-16 00:44:04 INFO (MainThread) [custom_components.tuya_local.device] Setting protocol version for Pool Heater to 3.3.

Any ideas on how to sort this out?

LEXY F501 Fan support request

Below is the list for DPSID&coresponding functions:

<style> </style>
DPSID Function Possibliliies
1 power Bool
2 mode forestwindhigh/low,sleepwindhigh/low
4 rotation off,30,60,90,360+,360-
6 Timer 0,1,2,3,4,5,6,7
9 light Bool
16 child lock Bool
17 sound Bool
102 level 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
plus: the device id is 6c26bcd21d7aa27babaahd

Issue adding ElectriQ CD20PRO-LE-V2 Dehumidifier

Hi, I've installed tuya-local as suggested in nicole-ashley/homeassistant-goldair-climate#38 to use with a ElectriQ CD20PRO-LE-V2 Dehumidifier however it just shows up as a switch. I'm testing the 'main' branch

2021-07-20 16:35:24 INFO (MainThread) [custom_components.tuya_local.device] Setting protocol version for Test to 3.3.
2021-07-20 16:35:24 DEBUG (SyncWorker_4) [custom_components.tuya_local.device] Refreshing device state for Test.
2021-07-20 16:35:24 DEBUG (SyncWorker_4) [custom_components.tuya_local.device] Test refreshed device state: {"devId": "011488782cf4323febd2", "dps": {"1": false, "2": "high", "3": 39, "5": true, "10": true, "101": false, "102": "0_90", "103": 30, "updated_at": 1626795324.3651993}}
2021-07-20 16:35:24 DEBUG (SyncWorker_4) [custom_components.tuya_local.device] new cache state (including pending properties): {"1": false, "2": "high", "3": 39, "5": true, "10": true, "101": false, "102": "0_90", "103": 30, "updated_at": 1626795324.3651993}
2021-07-20 16:35:24 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config andersson_gsh_heater.yaml
2021-07-20 16:35:24 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config anko_fan.yaml
2021-07-20 16:35:24 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config bwt_heatpump.yaml
2021-07-20 16:35:24 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config deta_fan.yaml
2021-07-20 16:35:24 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config eanons_humidifier.yaml
2021-07-20 16:35:24 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config electriq_12wminv_heatpump.yaml
2021-07-20 16:35:24 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config electriq_dehumidifier.yaml
2021-07-20 16:35:24 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config eurom_600_heater.yaml
2021-07-20 16:35:24 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config gardenpac_heatpump.yaml
2021-07-20 16:35:24 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config goldair_dehumidifier.yaml
2021-07-20 16:35:24 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config goldair_fan.yaml
2021-07-20 16:35:25 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config goldair_geco_heater.yaml
2021-07-20 16:35:25 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config goldair_gpcv_heater.yaml
2021-07-20 16:35:25 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config goldair_gpph_heater.yaml
2021-07-20 16:35:25 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config greenwind_dehumidifier.yaml
2021-07-20 16:35:25 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config hellnar_heatpump.yaml
2021-07-20 16:35:25 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config inkbird_thermostat.yaml
2021-07-20 16:35:25 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config kogan_dehumidifier.yaml
2021-07-20 16:35:25 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config kogan_heater.yaml
2021-07-20 16:35:25 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config kogan_switch.yaml
2021-07-20 16:35:25 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config kogan_switch2.yaml
2021-07-20 16:35:25 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config madimack_heatpump.yaml
2021-07-20 16:35:25 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config poolex_silverline_heatpump.yaml
2021-07-20 16:35:25 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config poolex_vertigo_heatpump.yaml
2021-07-20 16:35:25 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config purline_m100_heater.yaml
2021-07-20 16:35:25 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config remora_heatpump.yaml
2021-07-20 16:35:25 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config simple_switch.yaml
2021-07-20 16:35:25 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Matched config for Simple Switch
2021-07-20 16:35:25 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config tadiran_heatpump.yaml
2021-07-20 16:35:25 WARNING (MainThread) [custom_components.tuya_local.config_flow] Device matches simple_switch with quality of 12%. DPS: {'1': False, '2': 'high', '3': 39, '5': True, '10': True, '101': False, '102': '0_90', '103': 30, 'updated_at': 1626795324.3651993}
2021-07-20 16:35:25 WARNING (MainThread) [custom_components.tuya_local.config_flow] Report this to https://github.com/make-all/tuya-local/issues/

Edit: I've just spotted that support is for the CD25PRO-LE-V2 model so perhaps thats the issue

Any suggestions?

Thanks

How to install from Hacs?

I never used Hacs before, so i'm a little bit disoriented. I figured i'd have to download tuya-local from the "Add repository" menu in Hacs, but I can't find it.

Do I need to build the integration myself from source until this is sorted out?

Edit: looking at the repo i figured I don't need to build anything, just to copy tuya-local/custom-components/tuya_local to the right homeassistant directory.

Support for TH213 Wifi Thermostat

The TH213 is used to control the electric floor heating.
image

Using the localtuya integration i was able to get all the parameters (although i do not understand them all. It can be made to work, but it is cumbursome.

Using this integration i was proposed the "andersson_gsh_heater" which visualizes some of the values.

This is what i currently know:
image

How easy can a new device be added?

AirCon is seen as switch

When installing this integration via hacs airCon is seen as a switch - and I can turn it on and off.

From tuya developer site I can pull info, as below:
How to make tuya-local use it? I think "kt" is tuya's device type for air con. How does that relate to "dps id" ?

{
  "result": {
    "active_time": 1599833600,
    "biz_type": 18,
    "category": "kt",
    "create_time": 1599833600,
    "icon": "smart/product_icon2/kt_1.png",
    "id": "*******************",
    "ip": "***************",
    "lat": "**********",
    "local_key": "*******************'",
    "lon": "****************",
    "name": "Air conditioner-bb77",
    "online": true,
    "owner_id": "********",
    "product_id": "*******",
    "product_name": "Air conditioner",
    "status": [
      {
        "code": "switch",
        "value": false
      },
      {
        "code": "temp_set",
        "value": 260
      },
      {
        "code": "temp_current",
        "value": 25
      },
      {
        "code": "mode",
        "value": "wind"
      },
      {
        "code": "humidity_current",
        "value": 0
      },
      {
        "code": "temp_set_f",
        "value": 61
      }
    ],
    "sub": false,
    "time_zone": "+01:00",
    "uid": "***************",
    "update_time": 1625975770,
    "uuid": "****************"
  },
  "success": true,
  "t": 1625995061287
}
Getting devices
Got devices
{   'header': {'code': 'SUCCESS', 'payloadVersion': 1},
    'payload': {   'devices': [   {   'data': {   'current_temperature': 25,
    'max_temper': 880,
    'min_temper': 160,
    'mode': 'wind',
    'online': True,
    'state': 'false',
    'support_mode': [   'cold',
                        'hot',
                        'wind',
                        'auto'],
                        'temp_unit': 'CELSIUS',
                        'temperature': 260},
                        'dev_type': 'climate',
                        'ha_type': 'climate',
                        'icon': 'https://images.tuyaeu.com/smart/product_icon2/kt_1.png',
                        'id': '*******',
                        'name': 'Air conditioner-bb77'}],
                        'scenes': []
                        }}

Support sensors - roadmap?

I understand your current documentation suggests that you are focusing on items that are not well supported by the tuya cloud api... That being said, contact sensors are currently entirely unsupported on the tuya cloud api. Is there any including in the near roadmap for supporting these types of devices in this project?

Thanks very much for your work thus far. <3

request to support Heat Pump Room Thermostat

Hello,

Thank you for the time invested in creating this component.

I have tried the add on and while adding the device it only promote the switch.

I have heat pump thermostat from company called BECA. There is custom firmware available but I have not tried it.

Having said that, Can you please check the possibilities to support this device in your addon?

here is a link of the device it self

My device generated the following

{
"result": {
"active_time": 1596728546,
"biz_type": 18,
"category": "wk",
"create_time": 1595768698,
"icon": "smart/program_category_icon/wk.png",
"id": "quoted for security",
"ip": "quoted for security",
"lat": "quoted for security",
"local_key": "quoted for security",
"lon": "quoted for security",
"model": "热泵温控器",
"name": "Room thermostat",
"online": true,
"owner_id": "quoted for security",
"product_id": "quoted for security",
"product_name": "HeatPump Thermostat",
"status": [
{
"code": "switch",
"value": true
},
{
"code": "temp_set_f",
"value": 77
},
{
"code": "temp_current_f",
"value": 78
},
{
"code": "level",
"value": "1"
},
{
"code": "eco",
"value": false
},
{
"code": "child_lock",
"value": false
}
],
"sub": false,
"time_zone": "+00:00",
"uid": "xxxxxxxxxx",
"update_time": xxxxxx,
"uuid": "xxxxxxxxx"
},
"success": true,
"t": xxxxxxxxxx
}

if any data required please let me know and I will try to provide every thing possible to me

Thanks

BHT-6000 BECA thermostat

I have a BHT-6000 but in stage two, after insered id and key, from device type i have only switch.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.