Commit Graph

341 Commits

Author SHA1 Message Date
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
gpaesano
35ddf1564d Update climate.py
There is a typo in target precision which prevents corrct handling of temperature
2022-01-29 10:33:58 +01:00
rikman122
12bea161a8 lint code style fix 2022-01-24 10:44:38 +01:00
Rikman
6e1aa6b102 Merge branch 'master' into vacuum_platform_new 2022-01-24 10:02:49 +01:00
Martín Villagra
c7ee5fdb78 add turn on/off method 2022-01-13 17:15:49 -03:00
Rikman
cd4896d895 Merge branch 'master' into vacuum_platform_new 2022-01-13 12:25:49 +01:00
Martín Villagra
cf125ae616 add Manual/Program HVAC mode 2022-01-10 17:25:11 -03:00
Martín Villagra
b19682cfd9 use idle instead of off HVAC state 2022-01-10 17:24:59 -03:00
Martín Villagra
a8883a5d8e add Heat/Warming HVAC actions 2022-01-10 17:03:21 -03:00
Martín Villagra
9323676202 Merge remote-tracking branch 'upstream/master' into climate 2022-01-10 17:00:05 -03:00
rospogrigio
764993f771 Merge branch 'master' into master 2022-01-03 14:23:41 +01:00
rospogrigio
8e1c7ef7a4 Merge branch 'master' into master 2022-01-02 13:25:51 +01:00
rospogrigio
b3364525e4 Merge branch 'master' into master 2022-01-02 09:54:59 +01:00
rospogrigio
3201c366a3 Merge branch 'master' into update_interval 2022-01-02 09:52:56 +01:00
Martín Villagra
a2882a51e2 Merge remote-tracking branch 'upstream/master' into climate 2021-12-28 23:51:35 -03:00
Tim
ddee11f741 Revert "Merge branch 'add-string/integer-and-preset' into master"
This reverts commit a6ef6a4b7f, reversing
changes made to b748f0425c.
2021-12-22 23:05:33 +10:30
Tim
a6ef6a4b7f Merge branch 'add-string/integer-and-preset' into master 2021-12-22 22:52:42 +10:30
Tim
b748f0425c Remove blank line 2021-12-22 20:48:46 +10:30
Tim
0e048af29b fix issue with last tox fix 2021-12-22 20:01:39 +10:30
Tim
a25bf75a4d tox fixes 2021-12-22 19:45:16 +10:30
Louis
ad0e1b186c fix missing color temp label 2021-12-22 17:34:32 +11:00
Tim
e1ac7deace remove blank line 2021-12-22 11:35:04 +10:30
Sefi Ninio
5c72917c91 Merge branch 'master' into master 2021-12-21 17:56:40 +02:00
rospogrigio
88a5a73d4c Merge branch 'master' into master 2021-12-21 16:12:09 +01:00
Louis
6add1f7d1a rename variables 2021-12-21 12:55:55 +01:00
Louis
39cbd73d66 Formatting and variables 2021-12-21 12:55:55 +01:00
Louis
a5245c79f7 Implement optional light variable to reverse color temp 2021-12-21 12:55:55 +01:00
Tim
ced1550247 Merge branch 'master' into master 2021-12-17 12:11:34 +00:00
lsaadeh
26e66a088f Merge branch 'master' into master 2021-12-17 09:23:50 +11:00
Martín Villagra
187b7fa131 Merge remote-tracking branch 'upstream/master' into update_interval 2021-12-16 18:44:41 -03:00
Sefi Ninio
bfba2d7f72 fix deprecated device_state_attributes
Replace `device_state_attributes` with `extra_state_attributes`
This fixes #662
2021-12-16 18:10:49 +02:00
sibowler
5a4167fe5b Fix dependencies to account for Select type. Also fixup errors in Fan due to movement in dependencies. 2021-12-16 10:16:53 +01:00
sibowler
1b53c22791 black styling 2021-12-16 10:16:53 +01:00
sibowler
a0fff6ee2f Fixing up style errors in line with tox. 2021-12-16 10:16:53 +01:00
sibowler
61896605b8 Fixing up style issues 2021-12-16 10:16:53 +01:00
sibowler
fad7e0b1ac Reordering platforms to be alphabetical 2021-12-16 10:16:53 +01:00
sibowler
23a16babad Fix for typo introduced during debugging. 2021-12-16 10:16:53 +01:00
sibowler
e1bb45f2a2 Adding Number and Select as Tuya platforms. Provides support for a wider range of devices. 2021-12-16 10:16:53 +01:00
rikman122
c43240513c fix extra_state_attributes warning 2021-12-14 13:04:55 +01:00