Commit Graph

332 Commits

Author SHA1 Message Date
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
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
Rikman
60761b992a Merge pull request #5 from rospogrigio/master
integrate master
2021-12-13 16:20:20 +01:00
Louis
e45be52a9e rename variables 2021-12-13 11:09:13 +11:00
lsaadeh
61b0a14c64 Merge branch 'master' into master 2021-12-13 10:44:24 +11:00
regevbr
8e94b5f411 fix sync bug 2021-12-12 15:47:26 +01:00
regevbr
58ba012ad7 fix sync bug 2021-12-12 15:47:26 +01:00
Louis
65758ba6e2 Formatting and variables 2021-12-11 22:19:52 +11:00
Louis
d271da1b50 Implement optional light variable to reverse color temp 2021-12-11 21:54:57 +11:00
Thales Silva
a6b3d49853 Report fault and fault code. Cleaning record. 2021-12-08 15:01:03 -03:00
Thales Silva
52eafcf383 Report fault and fault code. Cleaning Record. 2021-12-08 15:00:35 -03:00