esphome / esphome/feature-requests

Support for Tuya composite devices

Open
#562 5 comments 0 reactions 0 assignees View on GitHub
component: tuya
Dominant language
No language data
Stars
450
Forks
29
PR merge metrics
No merged PRs in 30d

Description

**Describe the problem you have/What new integration you would like**
ESPHome currently supports only dimmer devices but does not support devices that combine multiple thing, for example dimmer and switch.

**Please describe your use case for this integration and alternatives you've tried:**
I bought Moeshouse "Fan light switch" - https://www.moeshouse.com/collections/smart-fan-light-switch/products/wifi-smart-ceiling-fan-light-wall-switch-smart-life-tuya-app-remote-various-speed-control-compatible-with-alexa-and-google-home-1
It is a Tuya device based on TYWE3S and MCU. It has a triac dimmer for fan or lamp and relay switch.

![20200111_154331](https://user-images.githubusercontent.com/14329963/72207396-74ab8c00-34a1-11ea-8d38-74e58bd72534.jpg)

![20200111_154228](https://user-images.githubusercontent.com/14329963/72207400-7bd29a00-34a1-11ea-9b21-7e5560e7cfe2.jpg)

I uploaded ESPHome to it via UART without any problem.
In the log I see three datapoint:
1 - switch for fan(dimmer)
2 - dimmer level
3 - relay switch

In the EPSHome config I wrote:
```
light:
- platform: "tuya"
name: "dim1"
dimmer_datapoint: 2
switch_datapoint: 1
```
It works for dimmer.
But I can't manage a relay switch(datapoint 3).

**Additional context**
Also I can't set dimmer level 51%-99% from Homeassistant. If I set level above 50% the dimmer sets a maximum level. But I can set it via dimmer button.
From the log I see that a maximum level is 255.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.