Giter VIP home page Giter VIP logo

localtuya-homeassistant's People

Contributors

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

localtuya-homeassistant's Issues

Yagusmart WiFi wall switch fails to configure in local Tuya

It works fine with cloud Tuya and I have integrated other switches of the same type into local Tuya, so this may be a local issue - but how do I track it down?

Yagusmart Smart Wall Light Switch (1 Gang)
https://www.amazon.co.uk/gp/product/B07Z373K81/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&th=1

When I configure this device in Local tuya it detects 3.3 automatically, but gives the message "An unknown error occurred. See log for details."

Debug Log

This error originated from a custom integration.

Logger: custom_components.localtuya.config_flow
Source: custom_components/localtuya/pytuya/init.py:704
Integration: LocalTuya integration (documentation, issues)
First occurred: 18:54:51 (8 occurrences)
Last logged: 20:33:03

Unexpected exception
Traceback (most recent call last):
File "/config/custom_components/localtuya/config_flow.py", line 580, in async_step_configure_device
self.dps_strings = await validate_input(self.hass, user_input)
File "/config/custom_components/localtuya/config_flow.py", line 245, in validate_input
interface = await pytuya.connect(
File "/config/custom_components/localtuya/pytuya/init.py", line 704, in connect
_, protocol = await loop.create_connection(
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1064, in create_connection
raise exceptions[0]
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1049, in create_connection
sock = await self._connect_sock(
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 960, in _connect_sock
await self.sock_connect(sock, address)
File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 500, in sock_connect
return await fut
File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 535, in _sock_connect_cb
raise OSError(err, f'Connect call failed {address}')
OSError: [Errno 113] Connect call failed ('192.168.1.30', 6668)


COLOROCK WiFi mini switch fails to configure in local Tuya

(Works fine with cloud Tuya)

COLOROCK Mini WiFi Smart Light
https://www.amazon.co.uk/COLOROCK-Switch-Wireless-Control-Compatible/dp/B08LVC1DP3/ref=dp_prsubs_3

I already logged a very similar issue with another COLOROCK switch; might be the same problem?

When I configure this device in Local tuya it fails to detect either protocol 3.1 or 3.3 automatically. I selected each in turn manually, but for both received the error message "Connection to device succeeded but no datapoints found, please try again. Create a new issue and include debug logs if problem persists."

Debug Log

This error originated from a custom integration.

Logger: custom_components.localtuya.pytuya
Source: custom_components/localtuya/pytuya/init.py:259
Integration: LocalTuya integration (documentation, issues)
First occurred: 19:20:34 (12 occurrences)
Last logged: 20:09:57

[bf4...5ke] Failed to get status:
[bfb...ul7] Failed to get status:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/asyncio/locks.py", line 390, in acquire
await fut
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.10/asyncio/tasks.py", line 456, in wait_for
return fut.result()
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/config/custom_components/localtuya/pytuya/init.py", line 574, in detect_available_dps
data = await self.status()
File "/config/custom_components/localtuya/pytuya/init.py", line 507, in status
status = await self.exchange(STATUS)
File "/config/custom_components/localtuya/pytuya/init.py", line 486, in exchange
msg = await self.dispatcher.wait_for(seqno)
File "/config/custom_components/localtuya/pytuya/init.py", line 259, in wait_for
await asyncio.wait_for(self.listeners[seqno].acquire(), timeout=timeout)
File "/usr/local/lib/python3.10/asyncio/tasks.py", line 458, in wait_for
raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError


strip switch support

Hi,

I have two strip switches (4 electric powers on the same device) and would like to know how to configure each electric power (ON plug 1 and not #2โ€ฆ).

Any idea ?

Is it already possible or is it a feature request ?

Regards

Tuya Based Heat pump

Hi There,

I would like to do a suggestion for extending the support of LocalTuya.

Did you know there are lots of Wifi based heat pumps based on the Tuya platform?

If you succeed to add this to localtuya, it's an incredible improvement for homeassistant as you cover dozens of manufacturers using this integration.

Swimmingpool owners with HASS will definately love it.

Keep up the (very very very) good work you're already doing.

Below some manufacturers using Tuya for their heatpumps:
W'eau WFI-*** models
Mr. Silence all wifi models
Madimack all wifi models
Remora all wifi models
Poolstar all wifi models
Poolex all wifi models

Etc. etc.

(Asking) YAML Config

Hello!

is there any possibility to use old-type yaml config style?

New config flow is great, but I have some problems when switching between subnets, add new entities to current existing devices, changing entity types etc. - it wan't a problem when I was used deprecated yaml config style.

Maybe, if configs not working any more - can I change something in database or anywhere else?

Thanks for any advices :)

Add scan of json strcuture value

Some devices return json value.
See below an example :
'value': '{"electricCurrent":13.008,"power":2.716,"voltage":229.1}'}
This value is not scan when I add a device.
Is it possible to add values included on json structure ?
Thanks

IR RF controller Model: JS-A1-315+433MHZ & Finger BOT ADAPROX wifi/bluetooth bridge TUYA SMART LIFE devices

Hi Team
1st of sorry if this is not were to ask but I wanted to let you know the following !
I have two device one is a simple round IR RF module / controller I purchased while back the other is a recent purchase A Bluetooth Bridge that allows me to control my two Fingerbot buttons .

I have added both to Smart life app and Tuya and they work fine in their own apps but wont show up in Home assistant !!!
So I tried local Tuya Integration its discovers them and I have their local keys but once I added the key the next section I don't have the choice to choose what the device entities are as they are not switches or sensors or light ....

Is their a plan to add at a later stage these entities team can some one point me to the right place

Thank you regards Maz

PS; I'm not to concerned about the RF as I can replace that with Broadlink anyway but really would love to get the finger bot Bluetooth bridge working as its to far to use with my HA server ...

ModuleNotFoundError: No module named 'pytuya'

Could I get any clue about below error msg?
I'm in a trouble in setting up localtuya for several hours

Error while setting up platform localtuya
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 158, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/localtuya/switch.py", line 44, in setup_platform
import pytuya
ModuleNotFoundError: No module named 'pytuya'

Problem with Avidsen Home Flow Thermostat

Hi,
I have a Avidsen Home Flow Thermostat, I've been able to connect to my tuya account and use localtuya to have it in home assistant.

But make the HVAC_MODE switch between manual and program i had to add these lines in /config/custom_components/localtuya/climate.py:
HVAC_MODE_SETS= {
"manual/program": {
HVAC_MODE_HEAT: "manual",
HVAC_MODE_AUTO: "program",
},

Because
"Manual/Program": {
HVAC_MODE_HEAT: "Manual",
HVAC_MODE_AUTO: "Program",
},
is not working, seems that this settings are case sensitive...

Could you add it to master branch? in this way I don't have to worry for future updates.

Thank you
Regards

Problem Fan with light from Reiga

Hi, I have installed the local-tuya integration. Works great, I was also able to find my ceiling fan with light. Unfortunately, I can't set the mappings to switch the correct entities. it is a ceiling fan from Reiga (Model:YFT-7062HP)

i can't match

Hello friends I am trying to pair this switch:

https://es.aliexpress.com/item/1005004091384239.html?spm=a2g0o.productlist.0.0.1b8f170aWw0n4d&algo_pvid=87b7eae4-4699-4767-8a02-90236d13b4fb&aem_p4p_detail=202204180834421594051344507040030737977&algo_exp_id=87b7eae4-4699-4767-8a02-90236d13b4fb-15&pdp_ext_f=%7B%22sku_id%22%3A%2212000028003274741%22%7D&pdp_pi=-1%3B11.63%3B-1%3B-1%40salePrice%3BEUR%3Bsearch-mainSearch

I have other devices without problems but this one is impossible it won't let me, I leave here the log of yours

Logger: custom_components.localtuya.pytuya
Source: custom_components/localtuya/pytuya/init.py:247
Integration: LocalTuya integration (documentation, issues)
First occurred: 16:37:11 (6 occurrences)
Last logged: 17:26:18

[bf8...ben] Failed to get status:
[be3...d62] Failed to get status:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/asyncio/locks.py", line 413, in acquire
await fut
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/asyncio/tasks.py", line 492, in wait_for
fut.result()
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/config/custom_components/localtuya/pytuya/init.py", line 539, in detect_available_dps
data = await self.status()
File "/config/custom_components/localtuya/pytuya/init.py", line 481, in status
status = await self.exchange(STATUS)
File "/config/custom_components/localtuya/pytuya/init.py", line 460, in exchange
msg = await self.dispatcher.wait_for(seqno)
File "/config/custom_components/localtuya/pytuya/init.py", line 247, in wait_for
await asyncio.wait_for(self.listeners[seqno].acquire(), timeout=timeout)
File "/usr/local/lib/python3.9/asyncio/tasks.py", line 494, in wait_for
raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError

Cover position

Is there a way to remember the position of the blinds? It shows open or close, but immediately jump to unknown

Unavailable Status for switches

Hey,

First of all nice work for this component! You really saved me with this ^^
I bought a few Switches which are not compatible with tuya convert :/
and I didn't want to use the cloud of tuya. So this is my only opinion.
I found out that if the power is lost or it disconnects from the Wifi , the switch in Home Assistant is not displayed as unavailable. Would it be possible to add this ^^
And if the switch is offline while Home Assistant starts, it will not be recognized until a reboot. Maybe add the switch as unavailable if that is possible and update it when it comes back online afterwards?

My English is not the best I hope you could understand my suggestions :)

Configuration of dimmer switches in local tuya

Hello Github community!
I have several in wall 2 channel dimmer switches from Amazon. The name is MS-105B. I have already set myself apart from one another with several options to insert them locally into my network. I found out the Device ID and the Local Key and inserted them into my home assistant via localtuya. Unfortunately, I don't get the dim function set. Unfortunately, my Python skills are very limited. And the light.py is very extensive. I know that ID 1 is the on / off and ID 2 is responsible for the dim function. But this option in the integration is only responsible for color reproduction. Is there a template I can use? Many Thanks!

arendst/Tasmota#5737
arendst/Tasmota#8663
arendst/Tasmota#6085

entity id and friendly name ?

as I understand,
now, the localtuya used to assign both entity id and entity name the same with friendly name.
Is the possible to set entity id and entity name have different name in yaml directly ?

mini smart switch tuya

Hello
i have installed HA on raspberry 0. HA works fine.
On HA I have installed local tuya which recognizes most of my tuya devices and I can manage them in lan.
Local tuya, however, is unable to install mini smart switches like the ones in the picture.
The switches are recognized on the network by the wizard but when I have to add the device, I get back the message "An unknown error occurred. See log for details.".
Thanks for your kind support

IMG_20220403_121841

Option to reset the sensor value

Is it possible to add a sensor to reset to a null value after some time? This will be helpful while using a calling bell. When a calling bell button is sensor value becomes persistent. this wont report when the calling bell is pressed again.

COLOROCK WiFi cable switch fails to configure in local Tuya

(Works fine with Cloud Tuya)

Colorock CR-LN2
https://www.amazon.co.uk/gp/product/B08RD4W89S/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1

See also my similar issue with the COLOROCK cable switch

When I configure this device in Local tuya it fails to detect either protocol 3.1 or 3.3 automatically. I selected each in turn manually, but for both received the error message "Connection to device succeeded but no datapoints found, please try again. Create a new issue and include debug logs if problem persists."

Debug Log

This error originated from a custom integration.

Logger: custom_components.localtuya.pytuya
Source: custom_components/localtuya/pytuya/init.py:259
Integration: LocalTuya integration (documentation, issues)
First occurred: 19:20:34 (8 occurrences)
Last logged: 19:40:52

[bf4...5ke] Failed to get status:
[bfb...ul7] Failed to get status:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/asyncio/locks.py", line 390, in acquire
await fut
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.10/asyncio/tasks.py", line 456, in wait_for
return fut.result()
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/config/custom_components/localtuya/pytuya/init.py", line 574, in detect_available_dps
data = await self.status()
File "/config/custom_components/localtuya/pytuya/init.py", line 507, in status
status = await self.exchange(STATUS)
File "/config/custom_components/localtuya/pytuya/init.py", line 486, in exchange
msg = await self.dispatcher.wait_for(seqno)
File "/config/custom_components/localtuya/pytuya/init.py", line 259, in wait_for
await asyncio.wait_for(self.listeners[seqno].acquire(), timeout=timeout)
File "/usr/local/lib/python3.10/asyncio/tasks.py", line 458, in wait_for
raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError


Smart IR

Hello!, could it be possible to control a Tuya smart infrared device too (Moe's, but it works with Tuya and Smart Life?
I use it to control a Home Cinema, a DVD and A/C.
Thanks!

Gosund bedside lamp fails to configure in local Tuya

It works fine with cloud Tuya and I have integrated another lamp of the same type into local Tuya, so this may be a local issue - but how do I track it down?

Gosund bedside lamp
https://www.amazon.co.uk/gp/product/B09QSFSKTX/ref=ppx_yo_dt_b_search_asin_title

When I configure this device in Local tuya it detects 3.3 automatically, but gives the message "An unknown error occurred. See log for details."

Debug Log

This error originated from a custom integration.

Logger: custom_components.localtuya.config_flow
Source: custom_components/localtuya/pytuya/init.py:704
Integration: LocalTuya integration (documentation, issues)
First occurred: 18:54:51 (15 occurrences)
Last logged: 20:51:25

Unexpected exception
Traceback (most recent call last):
File "/config/custom_components/localtuya/config_flow.py", line 580, in async_step_configure_device
self.dps_strings = await validate_input(self.hass, user_input)
File "/config/custom_components/localtuya/config_flow.py", line 245, in validate_input
interface = await pytuya.connect(
File "/config/custom_components/localtuya/pytuya/init.py", line 704, in connect
_, protocol = await loop.create_connection(
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1064, in create_connection
raise exceptions[0]
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1049, in create_connection
sock = await self._connect_sock(
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 960, in _connect_sock
await self.sock_connect(sock, address)
File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 500, in sock_connect
return await fut
File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 535, in _sock_connect_cb
raise OSError(err, f'Connect call failed {address}')
OSError: [Errno 113] Connect call failed ('192.168.1.30', 6668)


Scan interval

Hello it is possible de change scan interval, i have put 60 on scan interval for one device but data scan every 4 seconds ?

switch turns off at random times after being added to HA

First, thanks for this custom component. I got it working (HA 0.104.3 running on a RPi 3B) and it appeared to work fine while configuring it in HA. I have a bunch of Tuya smart plugs. I'm seeing a consistent problem in that a plug that is used (by a dehumidifier, washing machine etc), turns off after a few minutes after it turned on ... but only those which have some non-negligible power draw! I have 4 identical Tuya smartplugs, and although all are turned on, the ones which have 0 W power draw are not turned off when this problem happens. This stumps me.

As you know, tuya devices don't allow polling from multiple sources, so if for example the official Tuya Android app is polling the smart plug, HA cannot poll or control the smartplug and gives an error. Still, it should not ever turn it off without me explicitly telling it to.

It only happens when HA is running with the particular smart plug. If I remove the smart plug from configuration.yaml or if I shut down HA then the smartplug remains on.

Any thoughts? Are you aware of anything in HA or your code that could trigger a "toggle" or "off" command after regaining control of the device (I can't think of any other cause)? Logs didn't show anything like that (edit: even when running with --verbose). The fact that only smartplugs with non-zero power draw are turned off is weird ... it's as if there was some scenario defined with conditionals (there isn't any, and logs don't show anything).

Could be that this is a hardware behavior of the device itself ... and in that case I could get rid of the Tuya mobile app and only control them via HA (installing the HA app on the phone) though I didn't want to lose that safety net in case my RPi croaks ...

Cheers

When the device is controled by the Tuya mobile app, HA reports this error:

2020-02-05 21:15:50 ERROR (MainThread) [homeassistant.helpers.entity] Update for switch.spareplug fails
Traceback (most recent call last):
  File "/home/pi/.homeassistant/custom_components/localtuya/switch.py", line 93, in __get_status
    status = self._device.status()
  File "/home/pi/homeassistant/lib/python3.7/site-packages/pytuya/__init__.py", line 281, in status
    data = self._send_receive(payload)
  File "/home/pi/homeassistant/lib/python3.7/site-packages/pytuya/__init__.py", line 179, in _send_receive
    data = s.recv(1024)
ConnectionResetError: [Errno 104] Connection reset by peer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
    await self.async_device_update()
  File "/home/pi/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 461, in async_device_update
    await self.hass.async_add_executor_job(self.update)
  File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/pi/.homeassistant/custom_components/localtuya/switch.py", line 165, in update
    status = self._device.status()
  File "/home/pi/.homeassistant/custom_components/localtuya/switch.py", line 111, in status
    self._cached_status = self.__get_status()
  File "/home/pi/.homeassistant/custom_components/localtuya/switch.py", line 97, in __get_status
    raise ConnectionError("Failed to update status.")
ConnectionError: Failed to update status.

Devices no longer loading

Since the last update, devices are no longer updating and i am unable to add any new devices.
I keep getting the following error
Unable to connect to your device with those details. It could be an intermittent issue, or they may be incorrect.

JSONDecodeError on starting up home assistant

I am getting the following error when home assistant is loading:

2020-04-17 14:53:15 ERROR (MainThread) [homeassistant.components.switch] Error while setting up localtuya platform for switch Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 178, in _async_setup_platform await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT) File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for return fut.result() File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/localtuya/switch.py", line 76, in setup_platform config.get(CONF_VOLTAGE) File "/config/custom_components/localtuya/switch.py", line 148, in __init__ self._status = self._device.status() File "/config/custom_components/localtuya/switch.py", line 129, in status self._cached_status = self.__get_status() File "/config/custom_components/localtuya/switch.py", line 110, in __get_status status = self._device.status() File "/config/custom_components/localtuya/pytuya/__init__.py", line 311, in status result = json.loads(result) File "/usr/local/lib/python3.7/json/__init__.py", line 348, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.7/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/local/lib/python3.7/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Task exception was never retrieved (HA 103.0)

I have some error in HA.
I see the friendly name in group of switches, but not in entities (as switch)

Unexpected status() payload=b'\x10\xe2C\xd9\xff\xce\xc5|\xf8\xee\xd2\xf2\xe4sW\xc9\xd2\x84\x84\xca\xd7{N1$\xee\xcc>bbej'

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 408, in _async_add_entity await entity.async_update_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 286, in async_update_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 328, in _async_write_ha_state attr.update(self.device_state_attributes or {}) File "/config/custom_components/localtuya/switch.py", line 158, in device_state_attributes attrs[ATTR_CURRENT] = "{}".format(self._status['dps'][self._attr_current]) TypeError: byte indices must be integers or slices, not str

invalid config for switch

First, thanks for this custom component. I got it working (HA 0.115.6 running on a RPi 3B+).
I have a two-gangs switch, i'm newbie.
I did:

  1. Copy switch.py and the other 2 integration/platform files, and pytuya handler folder, to /custom_components/localtuya/ folder, inside /config folder (via Samba for HASSIO).

  2. Identify on your Home-Assistant logs (putting your logging into debug mode), the different attributes you want to handle by HA.
    HA said: "2020-10-02 22:44:37 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for localtuya 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."

  3. i edited configuration.yaml file with my local_key and device_id. But when i checked configuration, HA said "Invalid config for [switch]: required key not provided @ data['platform']. Got None. (See /config/configuration.yaml, line 10). "
    Can you help me fix this problem?
    Many thanks
    Screenshot 2020-10-02 233346

Install smart Thermostat

Hello,
I want to install the smart thermostat on HA with local tuya.
Can you help me to put the IDs in the respective fields?

image image

Target Temperature
Current Temperature
Temperature Step (optional)
Max Temperature
Min Temperature
Precision (optional, for DPs values)
HVAC mode DP
HVAC mode set
HVAC Current Action Set (optional)
Presets Set (optional)

II am very confused and don't know.
When I tried it through tuya integration I managed to display the thermostat card. But I want to connect it via local tuya integration because HA is not going out to the internet due to security reasons.

Thank you

Light+Fan-new product (u5ovvhurbvynvspv)

Hi, I integrated my fan Light+Fan-new product model (u5ovvhurbvynvspv) with LocalTuya I can do everything except adjust the speed as the parameter does not appear in the list. What am I doing wrong? Thank you

p.s. With classic Tuya integration (cloud based) it gives me the ability to adjust it though.

2023-06-22 20_04_50-Impostazioni โ€“ Home Assistant

Feature request protocol version

Hi, thanks for your good work on writing this ha-integration!

I had a small issue to get it to work though. My devices are using the 3.3 protocol. At line 100 I had to add self._device.set_version(3.3) in order to get it running.

def __init__(self, device):
        """Initialize the cache."""
        self._cached_status = ''
        self._cached_status_time = 0
        self._device = device
        self._device.set_version(3.3)
        self._lock = Lock()

It would be nice if you can set the protocol-version in the in the .yaml (like voltage/current)

Cheers!

set different DPS for power consumption feature

First, thank you for this great Integration!

I have 4 different tuya-plugs and they use different DPS for power consumption feature. Is it possible to extend this integration in a way that makes it possible to set the DPS for power-monitoring individually per device?

I have the same as yours with RGB-light. The DPS are the same as written in your switch.py. The other plugs have different DPS:

OxaOxe double-outlet DPS: {"1":true,"2":true,"7":95,"8":48,"9":2267} PM here is 7-9, switch 1+2!
gosund 16A DPS: {"1":true,"2":0,"4":19,"5":8,"6":2280} PM here is 4-6, switch 1
vodool 10A DPS: {"1":true,"2":0,"4":40,"5":45,"6":2280} PM here also 4-6, switch 1

Thank you!

Update Interval

Not updating Power Usage, Update Interval Set to 10 sec, when i Delete device from 3 dots and restart HA this device dont be deleted why?

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.