Marek Marczykowski-Górecki
c26ea7e4e0
Tuya: add cover component ( #2279 )
2021-09-29 10:02:13 +13:00
irtimaled
c39ac9edfe
Support HSV-based color support on tuya light ( #2400 )
...
* fix: stop tuya light state getting reset
* fix typo
* Support for HSV color in Tuya
* Clamp formatting
2021-09-28 22:19:17 +02:00
irtimaled
1ba560dc9e
fix: stop tuya light state getting reset ( #2401 )
...
* fix: stop tuya light state getting reset
* fix typo
2021-09-27 21:54:51 +02:00
irtimaled
7246f42a8e
Tuya rgb support ( #2278 )
...
Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl >
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2021-09-26 21:34:06 +13:00
irtimaled
bdcffc7ba9
fix: Setting Tuya string DP value ( #2394 )
2021-09-26 21:27:43 +13:00
Trevor North
e32722db70
Allow sloppy datapoint message length ( #1982 )
...
This allows datapoint update messages to be handled even if the overall
message is longer than required (likely that it contains trailing empty
bytes).
The specific type handling will read only the expected data lengths so
we only need to hard bail if we have too little data not too much.
2021-09-22 13:29:05 +02:00
Otto Winter
ac0d921413
ESP-IDF support and generic target platforms ( #2303 )
...
* Socket refactor and SSL
* esp-idf temp
* Fixes
* Echo component and noise
* Add noise API transport support
* Updates
* ESP-IDF
* Complete
* Fixes
* Fixes
* Versions update
* New i2c APIs
* Complete i2c refactor
* SPI migration
* Revert ESP Preferences migration, too complex for now
* OTA support
* Remove echo again
* Remove ssl again
* GPIOFlags updates
* Rename esphal and ICACHE_RAM_ATTR
* Make ESP32 arduino compilable again
* Fix GPIO flags
* Complete pin registry refactor and fixes
* Fixes to make test1 compile
* Remove sdkconfig file
* Ignore sdkconfig file
* Fixes in reviewing
* Make test2 compile
* Make test4 compile
* Make test5 compile
* Run clang-format
* Fix lint errors
* Use esp-idf APIs instead of btStart
* Another round of fixes
* Start implementing ESP8266
* Make test3 compile
* Guard esp8266 code
* Lint
* Reformat
* Fixes
* Fixes v2
* more fixes
* ESP-IDF tidy target
* Convert ARDUINO_ARCH_ESPxx
* Update WiFiSignalSensor
* Update time ifdefs
* OTA needs millis from hal
* RestartSwitch needs delay from hal
* ESP-IDF Uart
* Fix OTA blank password
* Allow setting sdkconfig
* Fix idf partitions and allow setting sdkconfig from yaml
* Re-add read/write compat APIs and fix esp8266 uart
* Fix esp8266 store log strings in flash
* Fix ESP32 arduino preferences not initialized
* Update ifdefs
* Change how sdkconfig change is detected
* Add checks to ci-custom and fix them
* Run clang-format
* Add esp-idf clang-tidy target and fix errors
* Fixes from clang-tidy idf round 2
* Fixes from compiling tests with esp-idf
* Run clang-format
* Switch test5.yaml to esp-idf
* Implement ESP8266 Preferences
* Lint
* Re-do PIO package version selection a bit
* Fix arduinoespressif32 package version
* Fix unit tests
* Lint
* Lint fixes
* Fix readv/writev not defined
* Fix graphing component
* Re-add all old options from core/config.py
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2021-09-20 11:47:51 +02:00
Stefan Rado
53bd197c44
Add eco mode to tuya climate component ( #1860 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2021-09-20 09:17:43 +12:00
Stefan Rado
2db8c42e1d
Support direct relay state feedback for tuya climate component ( #1668 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2021-09-15 20:23:35 +12:00
irtimaled
f0b6aabc96
Support inverting color temperature on tuya lights ( #2277 )
2021-09-13 09:33:20 +02:00
wifwucite
1be106c0b5
Fix fan speed restore issue on boot ( #1867 )
2021-09-08 15:30:17 +12:00
Chris Nussbaum
eff626248f
Tuya fan component uses enum datapoint type for speed instead of integer ( #2182 )
...
Co-authored-by: Chris Nussbaum <chris.nussbaum@protolabs.com >
2021-08-24 13:20:39 +12:00
Stefan Agner
11477dbc03
Fix format warning in Tuya component ( #1954 )
2021-08-11 16:50:05 +12:00
Chris Nussbaum
6144ce1fe0
Break the Tuya set_datapoint_value method into separate methods per datapoint type ( #2059 )
...
Co-authored-by: Chris Nussbaum <chris.nussbaum@protolabs.com >
Co-authored-by: Trevor North <trevor@freedisc.co.uk >
2021-08-11 07:44:31 +12:00
Oxan van Leeuwen
5983ccc55c
Color mode implementation ( #2012 )
2021-07-29 19:11:56 +02:00
John K. Luebs
5abbe385c5
More Tuya MCU robustness ( #2080 )
2021-07-28 14:01:15 +12:00
Oxan van Leeuwen
a3dcac62f9
Fix a bunch of typos ( #2058 )
...
Co-authored-by: Stefan Agner <stefan@agner.ch >
Co-authored-by: Otto Winter <otto@otto-winter.com >
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2021-07-26 14:48:57 +02:00
Chris Nussbaum
6b535b11f8
Couple more updates for the Tuya component ( #2065 )
...
Co-authored-by: Chris Nussbaum <chris.nussbaum@protolabs.com >
2021-07-26 21:39:03 +12:00
Trevor North
9e400a7857
Fix tuya fan speed send ( #1978 )
2021-07-04 23:47:22 +12:00
Otto Winter
871c0ee2a5
Rework climate traits ( #1941 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2021-06-21 21:17:01 +02:00
Jesse Hills
4891cfef56
Add data sizes to tuya log message ( #1938 )
2021-06-18 15:50:56 +12:00
Chris Nussbaum
4395664547
Don't send Tuya commands while currently receiving a message ( #1886 )
...
Co-authored-by: Chris Nussbaum <chris.nussbaum@protolabs.com >
2021-06-18 14:58:39 +12:00
Jesse Hills
dca1c0f160
Replace CLIMATE_MODE_AUTO with CLIMATE_MODE_HEAT_COOL in most cases ( #1933 )
2021-06-18 11:48:40 +12:00
Stefan Agner
501f88ca86
Avoid non-const globals and enable clang-tidy check ( #1892 )
2021-06-11 08:19:44 +12:00
Otto Winter
360effcb72
Activate some clang-tidy checks ( #1884 )
2021-06-10 13:04:40 +02:00
Stefan Rado
913ac8b7e8
Support raw datapoints for tuya components ( #1669 )
2021-06-03 13:10:29 +12:00
Trevor North
c5c24c1989
Tuya improvements ( #1491 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2021-06-02 21:31:56 +12:00
Ryan Mounce
c3938d04f3
Support Tuya light color temperature control ( #1412 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2021-06-02 09:32:16 +12:00
Otto Winter
2376a2c941
Convert components to async-def syntax ( #1821 )
2021-05-24 10:58:29 +02:00
Ryan Mounce
ffc6fe9ca0
Add support for controlling Tuya fan direction ( #1409 )
2021-05-05 16:24:31 +12:00
0x0a11c0de
98f0d75180
Fix #1940 : Implement speed_count in TuyaFan ( #1654 )
...
Co-authored-by: Frank Riley <fhriley@gmail.com >
2021-05-04 14:11:24 +12:00
Jim Ekman
7708b81ef5
Support fan speed levels ( #1541 )
...
* Add fan speed percentage support to the API
* Add float fan speed percentage
* Add percentage support to automation and configuration
* Update Tuya fan
* Fix pylint warning
* Update API to use speed levels instead of percentage
* Use speed levels
* Fix type warnings
* MQTT component now converts between speed levels and enums
* Webserver now supports speed_level
* Update prometheus
* Remove low/medium/high settings from speed fan
* Remove unused enum
* Configurable speed levels for speed fan
* Remove unused import
* Rename speed_level->speed and speed_levels->speed_count
* Rename supported_speed_levels -> supported_speed_count in API and FanTraits
Field id stays the same in the protocol, so the change is not breaking for aioesphome.
2021-03-17 10:40:02 -03:00
Guillermo Ruffino
69879920eb
add-black ( #1593 )
...
* Add black
Update pre commit
Update pre commit
add empty line
* Format with black
2021-03-07 16:03:16 -03:00
stubs12
87154e9b6f
Tuya: Use queue for sending command messages ( #1404 )
2021-02-26 12:52:40 +13:00
Paul Nicholls
9d38543cb0
Add support for string-type Tuya datapoints ( #1488 )
2021-01-26 17:44:10 +13:00
Dan Jackson
5df398ec31
Add encode_uint32 method ( #1427 )
2021-01-10 17:53:12 +13:00
Ryan Mounce
039810eef3
Fix Tuya initialisation regression ( #1408 )
2020-12-07 19:30:55 +13:00
stubs12
0ea41e2f71
Add option to suppress embedded MCU updates on certain datapoints ( #1396 )
2020-12-03 17:38:17 +13:00
Yaroslav
c9055f2aef
Allow Tuya climate temperature_multiplier to be current/target multiplier ( #1345 )
...
* Separate temperature_multiplier to current/target multiplier
* Apply suggestions from code review
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2020-11-12 06:31:35 +13:00
Yaroslav
9fed7cab5f
Add support for Tuya MCU 0x1C (obtain local time) ( #1344 )
...
* Fix some Tuya devices not handling commands sent without delay
* Also do not report WiFi status if MCU does not support it
* Support Tuya MCU 0x1c command (obtain local time)
* Use #ifdef USE_TIME to handle optional dependency on RTC
* Rename Tuya clock config variable to time to be consistent with the codebase
* Add tuya time configuration to test4
2020-11-11 11:31:28 +13:00
Connor Prussin
051a1e4772
Add a datapoint to sync the Tuya MCU minimum brightness ( #1347 )
...
The Tuya MCU keeps its own internal minimum brightness setting. This value may
not match the minimum brightness setting for ESPHome, leading to some issues:
1. Dimming is limited--on some devices the default minimum is as high as 10%,
meaning the dimmest ESPHome will go is still quite bright.
2. HA will allow a user to set a value below the MCU minimum, but the MCU will
reject it and keep the previous setting, so the UI is confusing.
This PR adds a setting to configure the datapoint for setting the MCU minimum
brightness. If the setting is set, then ESPHome will synchronize the MCU's
minimum brightness with the one configured for ESPHome on startup.
2020-11-06 12:53:25 +13:00
Jesse Hills
ff24023b39
Adds support for Tuya Climate temperature multiplier ( #1276 )
...
* Adds support for temperature multiplier
* Add new multiplier to test file
* Remove import
* Fixes
2020-09-14 19:33:37 -03:00
Otto Winter
009cea1abf
Fix tuya.cpp compile warning ( #1232 )
2020-07-30 17:26:40 +02:00
Jesse Hills
25ad33a377
Add @jesserockz to codeowners ( #1202 )
...
Co-authored-by: Otto Winter <otto@otto-winter.com >
2020-07-26 14:33:16 +02:00
Otto Winter
17b55fc23d
Tuya Sensor remove commented out code (style guide) ( #1132 )
2020-07-14 19:00:01 +02:00
Jesse Hills
ed5f207eba
Add support for Tuya Binary Sensors ( #1089 )
...
* Add Tuya binary sensor
* Add tuya binary sensor to test4
* Fix copy/paste
* Forgot id
2020-07-11 19:50:41 -03:00
Jesse Hills
a76b8e745b
Add support for Tuya Sensors ( #1088 )
...
* Add Tuya sensor
* Add tuya sensor to test4
* Forgot id
2020-07-11 19:46:10 -03:00
Jesse Hills
68d29c5af5
Add support for Tuya Climate devices ( #1076 )
...
* Start support for tuya climate devices
* Add tuya climate to test4
* Fix lint and cast
* Remove blank line
* Try to display accurate action based on observed behaviour.
* Fix action when in off mode
* Improve config dump
* merge use of CONF_SWITCH_DATAPOINT
Co-authored-by: Guillermo Ruffino <glm.net@gmail.com >
2020-07-11 19:04:34 -03:00
Jesse Hills
ef9e6e4d6e
Add support for Tuya Switches ( #1074 )
...
* Add tuya component to test4.yaml
* Add support for tuya switches
* Better config dump
2020-07-11 17:52:29 -03:00
Jim Persson
0bb81e5b2d
Add support for controlling fan direction ( #1051 )
...
* Fix fan oscillation trait not being used
* Add fan direction support to SpeedFan
* Add fan direction to API
* Add fan direction support to BinaryFan
* Fix CI errors
* Fix python format
* Change some ordering to trigger CI
* Add test for the configuration
2020-06-14 16:54:31 -03:00