Commit Graph

488 Commits

Author SHA1 Message Date
sibowler
1c9a1e4e4b Spelling correction 2022-07-14 15:26:58 +10:00
sibowler
f85b25dea9 Fixing formatting/style errors 2022-07-14 08:59:54 +10:00
sibowler
06968d8a9c Rebase merge fix. Earlier commit also included changes for manually specifying DPS where entity detection failed, restoring DPS values on reconnect and also supporting devices which don't report DPS status until it has been set once. 2022-07-14 06:58:00 +10:00
sibowler
0fe550576a Fix NumberEntity HA changes and add step control 2022-07-14 06:53:13 +10:00
sibowler
364569bad8 Rebase from upstream 2022-07-14 06:46:36 +10:00
DeeSe
f06b8ccb49 Added DPS value type configuration 2022-07-07 14:07:19 +02:00
rospogrigio
54dbc3a359 Update manifest.json 2022-06-27 19:07:43 +02:00
rospogrigio
dd565379a3 Optimized setup_entities by regrouping platforms 2022-06-20 10:23:34 +02:00
rospogrigio
1499120665 Update it.json 2022-06-15 14:11:57 +02:00
rospogrigio
aa786fb12e Update it.json 2022-06-15 14:11:57 +02:00
emanu
e66681957d Update it.json
Updated translation for Tuya 4.0
2022-06-15 14:11:57 +02:00
emanu
2ee049f204 Create it.json
Added Italian translation
2022-06-15 14:11:57 +02:00
Leandro Issa
f40b0491cf Add files via upload 2022-06-14 16:48:13 +02:00
rospogrigio
b1b6c3ef03 Merge branch 'master' into localtuya_4.0 2022-06-10 09:35:28 +02:00
rospogrigio
1efe8db021 Fixed restoring entity state when reloading 2022-06-08 14:08:48 +02:00
rospogrigio
47d399e3a9 Improved description of reload service; removed some print messages 2022-06-08 10:03:11 +02:00
rospogrigio
d8b1946ed5 Cleaned debug messages 2022-06-07 10:55:21 +02:00
rospogrigio
d1a024148b Merge branch 'master' into localtuya_4.0 2022-06-06 14:05:22 +00:00
rospogrigio
4c0072f404 Introduced checkbox to choose whether to setup Cloud API account 2022-06-06 15:59:50 +02:00
rospogrigio
9a0f5b8edb Improved code readability (racu10's suggestion) 2022-06-03 12:34:32 +02:00
rospogrigio
8b11ffaf86 Turned all 'print' messages into _LOGGER.debug 2022-06-01 18:05:12 +02:00
rospogrigio
da8ed8d82b Fix for 'KeyError: tuya_devices' at startup 2022-06-01 17:31:58 +02:00
rospogrigio
00c126acb8 Fixed labels missing when editing Cloud configuration 2022-06-01 17:27:56 +02:00
rospogrigio
110585b3f8 Changed deprecated async_get_registry() to async_get() 2022-05-31 15:02:19 +02:00
rospogrigio
d7f53ada07 Fixed Adding new device manually 2022-05-30 12:08:20 +02:00
sibowler
01a9fb6a48 Revert "Revert "Rebase from upstream"" 2022-05-29 07:20:19 +10:00
sibowler
73be0c8a45 Revert "Rebase from upstream" 2022-05-29 06:57:37 +10:00
sibowler
370e37272c Merge branch 'master' of https://github.com/rospogrigio/localtuya into rospogrigio-master 2022-05-29 06:52:05 +10:00
rospogrigio
f9b88c79a0 Fixed wrong 'already_configured' message when editing entities 2022-05-27 12:54:20 +02:00
rospogrigio
d8b64eb819 Changed permissions for cloud_api.py 2022-05-27 12:35:32 +02:00
rospogrigio
98643a4012 Fixed diagnostics currupting stored config_entry 2022-05-26 13:49:52 +02:00
rospogrigio
cbac83f362 Removed local_key censoring in device diagnostics 2022-05-24 11:03:50 +02:00
rospogrigio
3896064c73 Removed local_key censoring in device diagnostics 2022-05-24 10:44:17 +02:00
rospogrigio
42aafa048a Removed local_key censoring in device diagnostics 2022-05-24 10:35:13 +02:00
rospogrigio
824c0127c1 Removed local_key censoring in device diagnostics 2022-05-24 10:30:27 +02:00
rospogrigio
cd39a3a74d tox fixes 2022-05-23 17:26:19 +02:00
rospogrigio
6c6b955048 First tox fixes 2022-05-23 15:31:08 +02:00
rospogrigio
f85e579a68 Fixed device diagnostic corrupting config entry 2022-05-23 14:38:03 +02:00
rospogrigio
6be13c5ba0 Obfuscated diagnostics; fixed IP auto-update; cleaned logs 2022-05-23 11:22:48 +00:00
rospogrigio
cdfe8e4906 Finalized device editing, device diagnostics, auto-update of local key and IP 2022-05-23 13:18:56 +02:00
rospogrigio
afc0230796 Introduced migration; fixed update when adding device 2022-05-23 13:18:56 +02:00
rospogrigio
d4c20ebfed Modified config flow, introduced device deletion 2022-05-23 13:18:56 +02:00
rospogrigio
b22cb29811 Introduced diagnostics 2022-05-23 13:18:56 +02:00
rospogrigio
b2a1350e56 Introduced TuyaCloudApi class 2022-05-23 13:18:51 +02:00
Leandro Issa
ded67c6cea Merge branch 'master' into master 2022-04-03 01:30:08 -03:00
rospogrigio
9ee9224b8d Merge branch 'master' into pabigot/20211031a 2022-03-31 12:27:06 +02:00
Peter A. Bigot
8a1c6e0380 Fix out-of-range color temperatures
If light.turn_on is invoked with `brightness: 128, color_temp: 500`
for a bulb that supports mired range 154..370 in value range 1..255
the calculated color temperature will be negative.  When the bulb
receives the command it may turn on, but will fail processing the
color_temp operation and will not send a response.

At this point `light.toggle` will have no effect because Home
Assistant is unaware that the bulb is on.

Fix the state by clamping the sent color temperature to the allowed
range.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2022-03-29 13:27:45 -07:00
Peter A. Bigot
2a277a0c26 Fix kelvin-to-mired conversion
Use the core utility rather than reimplementing it.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2022-03-29 12:45:46 -07:00
Leandro Issa
22cabf0c1a Rename pt_br.json to pt-BR.json 2022-02-27 00:42:32 -03:00
Leandro Issa
b16dcfdce9 Add files via upload 2022-02-09 20:56:56 -03:00