Giter Club home page Giter Club logo

tuya-local's People

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  avatar  avatar

tuya-local's Issues

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 :)

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

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

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

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 :)

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.

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?

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

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]>"
}

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?

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?

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

BHT-8000

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

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!

Unable to load workflow

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

image

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.

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.

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 :)

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?

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?

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 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.

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

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

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

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.

Madimack Pool heater Support

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

Any aspirations to make a parallel plugin that supports Homebridge?

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?

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

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': []
                        }}

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?

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.

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! :)

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.

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

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?

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!

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.

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.

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.