No longer needed as the integration supports the DPs correctly for my fan now. What are you stuck with?
safepay
(Richard Mann)
February 12, 2023, 6:01am
62
It’s the modes - Normal and Nature. Can’t seem to get that to work on DP2 because I can’t see the option in Local Tuya.
I’ve tried setting “Normal”;“Nature” in the last option where it says Mode, but nothing seems to happen.
Everything else works perfectly.
safepay
(Richard Mann)
February 12, 2023, 6:34am
63
I worked it out… finally.
I had to keep adding entities during configuration.
Not clear to me, but I got there in the end.
Cheers.
1 Like
Oh right,
You’ll need to delete the device and start again. Add the fan exactly as you have just done, but leave the fan speed mode override alone (mine says disabled)
On the next screen, choose the select entity instead of fan, that’s where you set the names of the modes. So it adds two entities to the one device during the config.
Edit: whoops i see you got it. sorry i was slow to reply
realmckoy:
After hours of playing around with the LocalTuya, I was finally able to get this
Smart Ceiling Fan 52’’ " to work with HA emulating the settings from the SmartHome app.
See Images
Settings to choose via LocalTuya: Select & DP2
Finally, got it working for me based on this.
For those that have low, medium and high settings instead of 1, 2, 3. this worked.
I used “low;med;high” as valid entries and it worked. “medium” didnt work but “med” did.
Also, the DP was different but that probably changes between devices.
khangwei
(khangwei)
December 7, 2023, 10:33am
66
dear friends, i have read through the entire thread and do recognize this is a bit dated. I have a tuya fan which is 6 speed. some with lights, some without. does the latest localtuya work well? which configuration should i follow?
would be great if someone can guide as I am really new to HA. thanks a lot in advance
gessi
(Thomas Gessendorfer)
December 31, 2023, 1:53pm
67
Just installed 2 ceiling fans without lights and configured the fans with the local tuya integration here.
Works now changing the fan speeds but wondering is there is any way to replace the percentage values with “1-6” somehow as my fans have 6 speed steps!?
gessi
(Thomas Gessendorfer)
December 31, 2023, 2:26pm
68
How do you add this template to your Dashboard?
I followed those instructions but see for the new template entity only the On/Off button!?
TimU
January 27, 2024, 2:45am
69
As an update, these Tuya fan/light combo devices work perfectly when using xZetsubou’s LocalTuya fork here:
And I have created a template for the device here:
opened 11:21AM - 26 Jan 24 UTC
Running Master version: 4afac6c
Hi again,
Thanks for your ongoing supportI h… ave a new device to request being added to the repository please.
Mercator Minota Ceiling Fan with Light (Part of the Ikuu range)
https://www.ikuu.com.au/product/minota-dc-ceiling-fan/
I have created a template and downloaded the debug information for the device.
[Mercator Fan-Light debug.json.txt](https://github.com/xZetsubou/hass-localtuya/files/14064156/Mercator.Fan-Light.localtuya-d6d1c62282b4cf4e32f66d2628357f28-Left.Outdoor.Ceiling.Fan-81c2448f848bcfbbe053a0a46ac59313.json.txt)
[Mercator Minota Ceiling Fan with Light Template.yaml.txt](https://github.com/xZetsubou/hass-localtuya/files/14064157/Mercator.Minota.Ceiling.Fan.with.Light.yaml.txt)
I have basic control of the light on/off and fan on/off, but unfortunately I'm running into some problems controlling the fan and light entities. The light's brightness slider and the fan's speed slider don't really work very well.
The light brightness bar shows a low value like 7% or 11%, but the light is actually on 100% bright.
The light brightness control is also quite sporadic and doesn't always work.
The fan speed control behaves in a similar way. It always shows a low value like 11%, but I can't actually change the fan speed at all.
For full info, the fan speed control on the Tuya SmartLife app is an integer 1-6 (low to high), not a slider bar.
Maybe this is some reasons for the problem?
I have attached the debug log below.
This debug starts at line 1041.
[home-assistant_localtuya_2024-01-26T10-46-26.880Z.log](https://github.com/xZetsubou/hass-localtuya/files/14064291/home-assistant_localtuya_2024-01-26T10-46-26.880Z.log)
Would you have any thoughts about the issue please?
Thanks in advance.
My device is the Mercator Minota Ceiling Fan with Light (Part of the Mercator Ikuu range).
1 Like
hebo
April 17, 2024, 5:58am
70
I have the “Create Windcalm DC” light + fan and this fork worked the best for me. It autodetected the fan and configured everything, no tweaking required.
1 Like
opened 07:57PM - 25 Jul 24 UTC
bug
<!-- READ THIS FIRST:
- For a new device, first check if you can find a simil… ar device in the https://github.com/rospogrigio/localtuya/wiki/Known-working-and-non-working-devices
- Try to update to latest master version, your problem may be already fixed.
- Do not report issues for already existing problems. Check that an issue is not already opened and enrich it.
- Provide as many details as possible. Paste logs, configuration samples and code into the backticks.
-->
## The problem
<!--
Describe the issue you are experiencing here to communicate to the
maintainers. Tell us what you were trying to do and what happened.
-->
Fan configured with Tuya Smartlife. Local Tuya configuration falis as follows:
![20240725 Tuya Fan new device config](https://github.com/user-attachments/assets/7b2a5a84-596c-46bd-b75e-310f709db6b5)
Error message:
![image](https://github.com/user-attachments/assets/d1080398-c75e-457f-982d-6776afd5d008)
## Environment
<!--
Provide details about your environment.
-->
- Localtuya version: 5.2.1
- Home Assistant Core version: core-2024.7.2
- [x] Does the device work using the Home Assistant Tuya Cloud component ?
- [] Does the device work using the Tinytuya (https://github.com/jasonacox/tinytuya) command line tool ?
- [] Was the device working with earlier versions of localtuya ? Which one?
- [x] Are you using the Tuya/SmartLife App in parallel ?
## Steps to reproduce
<!--
Clearly define how to reproduce the issue.
-->
1. Confgure with Smartlife App and Tuya (cloud) Home Assistant Integration (both work)
2. Configure/Add device within Local Tuya (as shown above)
3. Error message displayed as shown above
It looks like other are having a similar issue with other devices.
## DP dump
<!--
Paste here a DP dump, see https://github.com/rospogrigio/localtuya/wiki/HOWTO-get-a-DPs-dump
You can also try to qualify your device using the procedure described https://github.com/rospogrigio/localtuya/wiki/Qualifying-a-device
-->
## Provide Home Assistant traceback/logs
<!--
Provide logs if they are relevant. In detail, it is useful to be able to compare working with non-working situations, such as HA logs compared to the output of the tuyadebug script or the tinytuya CLI tool.
To increase the debugging level of HA for the devices, check the "enable debug" button when configuring the device, and set the log level to debug for this component at least:
In configuration.yaml:
logger.set_level
custom_components.localtuya: debug
custom_components.localtuya.pytuya: debug
-->
```
This error originated from a custom integration.
Logger: custom_components.localtuya.pytuya
Source: custom_components/localtuya/pytuya/__init__.py:863
integration: LocalTuya (documentation, issues)
First occurred: 1:19:47 PM (3 occurrences)
Last logged: 1:42:54 PM
[eba...pxs] Failed to get status:
Traceback (most recent call last):
File "/usr/local/lib/python3.12/asyncio/tasks.py", line 520, in wait_for
return await fut
^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/locks.py", line 386, in acquire
await fut
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 863, in detect_available_dps
data = await self.status()
^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/localtuya/pytuya/__init__.py", line 795, in status
status = await self.exchange(DP_QUERY)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/localtuya/pytuya/__init__.py", line 769, in exchange
msg = await self.dispatcher.wait_for(seqno, payload.cmd)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/localtuya/pytuya/__init__.py", line 450, in wait_for
await asyncio.wait_for(self.listeners[seqno].acquire(), timeout=timeout)
File "/usr/local/lib/python3.12/asyncio/tasks.py", line 519, in wait_for
async with timeouts.timeout(timeout):
File "/usr/local/lib/python3.12/asyncio/timeouts.py", line 115, in __aexit__
raise TimeoutError from exc_val
TimeoutError
```
## Additional information
I have a working Temp& Humidity device configured in LocalTuya. It is a "read" type device. The Fan Controller is a "controllable" type device.
Query Device Details works on the tuya IOT Platform.
"product_id": "fcldsaadc3hzf9ey",
"product_name": "吊扇灯",
tuya debugging -> Standard Instruction Set
![image](https://github.com/user-attachments/assets/60368102-adb9-4074-94c6-3bb1b486d848)
![image](https://github.com/user-attachments/assets/8cc10a76-80b2-468f-9c14-4cb9e84bb1cd)
I figured out the correct data points, and have had partial success configuring my fan controller with local tuya, BUT all the “values” show -1. Fan switch is not active/unavailable.
Xalio
(Nicolas)
December 3, 2024, 1:23pm
72
Thank you for sharing, I have also a CREATE Wind calm ceiling fan and it works great without any change!
1 Like
thanks so much this worked for my fan config!