Commit graph

58 commits

Author SHA1 Message Date
Erik Montnemery
0c2485bc03
Freeze integration entity descriptions (#105984)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-12-18 16:28:13 -10:00
rale
54d7ba72ee
Add second led control for carro smart fan (#94195)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-07-23 23:20:29 +02:00
Joost Lekkerkerker
efbd82b5fb
Add entity translations to Tuya (#96842) 2023-07-19 12:43:15 +02:00
Joost Lekkerkerker
e6c4f98354
Add explicit device name to Tuya (#95511)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-06-29 11:24:59 +02:00
Michael Benz
0828cc0e44
Add light entity to Tuya Air Purifiers (#92861) 2023-05-17 20:16:54 +01:00
BNolet
6fbdcac323
Fix setting color + brightness of Tuya lights (#88470)
* Check if changing TO a color mode

Changing brightness alone does not change work mode, but changing brightness with a color value will keep the light in white mode. 

By verifying the new state has color or not, rather than the existing state being in color work mode, the light will change to color correctly.

Tuya interprets HSV as including the brightness in the (v) value (which is generally what that's used for when setting HSV values). The brightness value given by Home Assistant is still used in this case.

* Fix brightness-only turning colour mode to white

This will take into account the case where brightness is the only parameter for both the case of colour mode and white mode.

Tests passed after this change:

* Brightness only (colour mode) 
* Brightness only (white mode) 
* Colour only (colour mode) 
* Colour only (white mode) 
* Colour temp only (colour mode) 
* Colour temp only (white mode) 
* Colour + brightness (colour mode) 
* Colour + brightness (white mode) 
* Colour temp + brightness (colour mode) 
* Colour temp + brightness (white mode) 

* Fix code formatting
2023-03-28 12:20:54 +02:00
dougiteixeira
470b0b5471
Adjust Tuya entity naming (#89616)
Fix entity name
2023-03-13 09:23:04 +01:00
Franck Nijhof
d9fc932253
Fix Tuya Python 3.11 compatibility issue (#89189) 2023-03-05 22:19:40 +01:00
Erik Montnemery
cc564026fa
Move EntityCategory to homeassistant.const (#87792)
* Move EntityCategory to homeassistant.const

* Fix more imports
2023-02-09 20:15:37 +01:00
yeahme49
fb57785ca6
Add Tuya DPCode for fsd (#82792)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-11-30 08:11:04 +01:00
Franck Nijhof
8d6925b3ab
Migrate Tuya to new entity naming style (#74975) 2022-07-11 09:17:54 -07:00
epenet
c0d8f94487
Adjust ColorMode type hint in light (#70806)
* Adjust ColorMode type hint in light

* Adjust components
2022-04-27 16:02:23 +02:00
Can Geliş
fbbfdeae39
Add integration for Tuya wake up light ii (#68845) 2022-04-27 01:50:46 +02:00
epenet
89200b27f0
Use ColorMode enum in tuya (#70545) 2022-04-23 11:00:34 -10:00
Warwick Davison
0c6a6c360b
Fix tuya light 2 channel dimmer module (#68109)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-03-22 18:24:57 +01:00
Franck Nijhof
bd31cfbd40
Add secondary dimmer to dj in Tuya (#65990) 2022-02-07 11:15:28 +01:00
Franck Nijhof
1ae809293f
Add support for qjdcz to Tuya (#65985) 2022-02-07 11:14:48 +01:00
Franck Nijhof
92856bab56
Add mbd Tuya light support (#65918) 2022-02-06 17:55:03 +01:00
dougiteixeira
982580b95a
Complementing the Tuya Fan (fs) category (#64947)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-01-26 13:03:05 +01:00
Franck Nijhof
d49b821565
Set entity category on Tuya backlights (#64962) 2022-01-26 11:20:31 +01:00
Franck Nijhof
92ca76a167
Add backlight controls for Tuya curtain switches (#64961) 2022-01-26 11:13:38 +01:00
alexanv1
7cbf02e37b
Tuya: Add support for turning smart heater LEDs on and off (#64739) 2022-01-24 09:25:01 +01:00
Franck Nijhof
db979fef6c
Refactor Tuya DPCode and data type handling (#64707) 2022-01-23 09:01:10 +01:00
Knodd
40d0a6e99e
Support Tuya strip lights with correct values for saturation and brightness (#63812)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-01-10 15:21:03 +01:00
Franck Nijhof
12450daf56
Only rely on device status when adding Tuya entities (#63074) 2022-01-04 12:51:45 +01:00
Franck Nijhof
12a57ad925
Fix Tuya data type information in lights (#62993) 2021-12-29 15:35:41 +01:00
Robert Hillis
e713a597ec
Use entity category enums in tuya (#62028) 2021-12-16 12:53:50 +01:00
alexanv1
9aa33a3cf8
Fix brightness support for Tuya dimmers that use the Light ("dj") category (#60385)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-11-29 16:45:00 +01:00
Franck Nijhof
d1bb580dc3
Extend Tuya Dimmer (tgq) support (#58951) 2021-11-02 11:10:42 -07:00
Peter A. Bigot
4a2fb0e7ab
Fix color temp selection when brightness changed in Tuya light (#58341)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-11-02 18:48:29 +01:00
Franck Nijhof
ba901bbbbf
Complete Air Conditioner (kt) device support for Tuya (#58417) 2021-10-25 22:55:21 +02:00
alexanv1
f4c2c54e84
Extend Tuya Humidifier (#58260) 2021-10-24 20:34:05 +02:00
Franck Nijhof
75e561f1fa
Complete Smart Camera (sp) device support to Tuya (#58301) 2021-10-23 12:24:40 -07:00
Franck Nijhof
b413f7434f
Add support for min/max dimmer brightness in Tuya (#58165) 2021-10-22 20:28:16 +02:00
Franck Nijhof
7353ea5416
Add Dimmer Switch (tgkg) device support to Tuya (#58134) 2021-10-20 23:19:42 +02:00
Franck Nijhof
3e57d0d3d3
Complete Switch/Socket/Power Strip device support for Tuya (#58106) 2021-10-20 19:08:43 +02:00
Franck Nijhof
5fc2897c08
Complete Ceiling Light (xdd) device support for Tuya (#58095) 2021-10-20 09:24:34 -07:00
Franck Nijhof
be73b21f81
Refactor Tuya light platform (#57980) 2021-10-18 20:35:01 +02:00
Franck Nijhof
b97d5a703c
Renamed variables in Tuya (#57759) 2021-10-15 11:33:30 +02:00
Peter A. Bigot
d6d6929e2b
Port unmerged fixes from tuya_v2 (#57624) 2021-10-14 13:14:48 -07:00
Franck Nijhof
b220ab6e91
Prettify Tuya entity class names (#57629) 2021-10-13 23:30:25 +02:00
Franck Nijhof
a4357fdb95
Replace all Tuya device property constants with an Enum (#57559) 2021-10-12 10:36:14 -07:00
Franck Nijhof
8ec38ef034
Refactor Tuya device handling (#57545)
* Refactor Tuya device handling

* Tweak
2021-10-12 16:49:46 +02:00
Franck Nijhof
d44e323e95
Move Tuya remap method from base to light entity class (#57527) 2021-10-12 11:34:18 +02:00
Franck Nijhof
80a04124a2
Small code styling tweaks for Tuya (#57102) 2021-10-05 12:59:51 +02:00
Oliver Ou
d3b1ccb668
Tuya v2 Integration Release (#56820)
Co-authored-by: 乾启 <18442047+tsutsuku@users.noreply.github.com>
Co-authored-by: dengweijun <dengweijunben@gmail.com>
Co-authored-by: dengweijun <mengzi.deng@tuya.com>
Co-authored-by: erchuan <jie.zheng@tuya.com>
Co-authored-by: erchuan <erchuan365@outlook.com>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-09-30 12:02:56 +02:00
ollo69
c4b3cf0788
Update tuyaha to 0.0.8 and adapt code (#41375) 2020-10-27 20:26:18 -05:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 (#39287) 2020-08-27 13:56:20 +02:00
ollo69
f4e4ea10e5
Minor Tuya Fix (#35497) 2020-05-11 08:45:12 -04:00
ollo69
b3ee54b124
Add config flow for Tuya (#35422)
* Added Tuya config flow

* Added test config_flow

* Fixed log error message

* Add test requirements

* Lint Fix

* Fix Black formatting

* Added pylint directive

Added pylint:disable=unused-import in config_flow.py

* Implementation requested changes

* Update CodeOwners

* Removed device registry cleanup

* Force checks

* Force checks

* Fix implemetation

- Set config schema "deprecated"
- Removed async from update_callback

* Updating test

* Fix formatting

* Config Flow test fix

- mock out async_setup and async_setup_entry

* Fix formatting
2020-05-10 22:01:00 -05:00