Commit Graph

734 Commits

Author SHA1 Message Date
Tobias Dörfler
12d40f81af fix(common.py) - Change loglevel for missing device configuration from WARNING to DEBUG. (#1816)
Loglevel warning produces a huge amount of log messages (around 500000 a day - depends on how much tuya devices are in your local network).

Co-authored-by: Tobias Dörfler <doerfler.tobias@akdb.de>
Co-authored-by: rospogrigio <49229287+rospogrigio@users.noreply.github.com>
2025-01-14 11:26:26 +01:00
Alex
6202c74e39 add a subset of HVAC_MODE_SETS (#1875)
iPAC-40 Portable Air Conditioning Heat Pump with Wifi and Remote Control. These devices have a limited option of modes. The available modes are Hot, Cold and Dry.

Co-authored-by: rospogrigio <49229287+rospogrigio@users.noreply.github.com>
2025-01-14 11:13:07 +01:00
dim145
1369245b15 fix: climate deprecated attributes 2025-01-14 09:37:19 +01:00
dim145
096568bd20 fix: remove useless test line in status_updated of light 2025-01-14 09:37:19 +01:00
dim145
65f3dafd04 fix: add color_mode property & adapt color mode method (is_xxx_mode) 2025-01-14 09:37:19 +01:00
dim145
b01861d53e fix: add FanEntityFeature.TURN_OFF/ON to fans 2025-01-14 09:37:19 +01:00
dim145
42b6eb1fc1 refactor: define MODE_MANUAL 2025-01-14 09:37:19 +01:00
dim145
d57932e8e4 fix: do not use deprecated attr in light entity 2025-01-14 09:37:19 +01:00
dim145
e1fb0f2ccb fix: do not use deprecated features 2025-01-14 09:37:19 +01:00
Andy Barratt
1da7b313d4 Add discovered HVAC and PRESET options (#1177)
* Add discovered HVAC and PRESET options

This commit adds the HVAC Action Set and Preset Set that I've discovered my Bödenwarme Underfloor Heating thermostat to be using as detailed here: https://github.com/rospogrigio/localtuya/issues/1175

* Add HVAC mode and action sets for climate entities

These are the actions and modes as reported by the Magnum smart wifi
thermostat: https://www.magnumheating.com/product/remote-control/

---------

Co-authored-by: Rutger Kerkhoff <rutger.kerkhoff@grafana.com>
2024-09-13 15:04:02 +02:00
Esteban Zapata Rojas
87d61eea6f at init: Replace deprecated async entry setup call with suggestion.
Based on https://developers.home-assistant.io/blog/2024/06/12/async_forward_entry_setups/
it is possible to replace it with `async_forward_entry_setups` instead,
which accepts multiple platforms and it should be more efficient.
2024-07-29 18:04:05 +02:00
hello@theauthtoken.com
d2fa4dc2a0 added dict get() instead of assuming keys exist; now handles config_flow setup failures without crashing 2024-05-03 13:19:28 +02:00
Simon Tegelid
7b37f07fd0 Add support for more ac/fan modes (#1389)
* Add support for more ac/fan modes

* Replace deprecated constants with enums

* Add support for ClimateEntityFeature.TURN_{ON,OFF}

* Fix swing log message

---------

Co-authored-by: Simon Tegelid <simon.tegelid@bitvis.io>
2024-04-15 14:28:34 +02:00
rospogrigio
490ad9ed5a Merge pull request #1613 from elad-bar/master
Fix #1610 - Replaced SUPPORT_* with enums
2024-01-22 10:37:33 +01:00
Elad Bar
9c0e733804 Replaced SUPPORT_* with enums, set minimum HA version in HACS configuration to 2024.1.0 2024-01-05 13:29:06 +02:00
rospogrigio
e5009fd3f8 Merge pull request #1476 from ncd7/climate-minmax-default-temp-when-in-F-fix
fix bug when climate entity is using default min/max temp and temp un…
2023-09-22 19:16:59 +02:00
rospogrigio
1c173d949a Merge branch 'master' into climate-minmax-default-temp-when-in-F-fix 2023-09-22 17:15:19 +02:00
rospogrigio
180b6645d2 Merge pull request #1135 from ov1d1u/master
Allow calling localtuya.set_dp service by non-admin users
2023-09-22 11:06:43 +02:00
rospogrigio
bf8f2bb06c Merge branch 'master' into master 2023-09-16 13:03:45 +02:00
rospogrigio
0c8fd9d0ec Fixing tox issues 2023-09-15 15:04:40 +02:00
rospogrigio
69774f574a Merge pull request #1465 from Nealium/offline_init
Fixes #1328
2023-09-12 17:43:37 +02:00
rospogrigio
137ff78874 Merge branch 'master' into offline_init 2023-09-12 17:10:50 +02:00
Luke Bonaccorsi
23b0cfde6d Allow port reuse so that other integrations can read the same port (#1481)
Co-authored-by: rospogrigio <49229287+rospogrigio@users.noreply.github.com>
2023-09-12 17:10:28 +02:00
rospogrigio
fa8217cdfb Merge branch 'master' into offline_init 2023-09-12 13:28:45 +02:00
dulyts
25105427b8 Handle 3.4 protocol, fix CI (#1251)
* Use refresh interval in version 3.4
* Scan interval convert to integer
* Try to fix CI
* Try to fix CI
2023-09-12 13:24:39 +02:00
nu
b3afa14095 fix bug when climate entity is using default min/max temp and temp unit is F
The default min/max temps are in C but when the climate entity is set up with F this will cause incorrect boundary check and an inability to change the temperature from the home assistant entity UI widget.
2023-08-17 23:59:53 -04:00
Neal Joslin
62011a9d6b Fixed initialization with API but no internet. 2023-07-25 23:17:59 -04:00
Ovidiu D. Nițan
2b3ade04c7 Merge branch 'rospogrigio:master' into master 2023-07-17 15:43:12 +03:00
rospogrigio
f06e4848e6 Merge pull request #1424 from rospogrigio/fix_socket.send_exceptions
Fix for socket.send() exceptions in the logs
2023-06-07 12:27:31 +02:00
rospogrigio
ba5670fc1d Fixing pylint error 2023-06-07 12:23:41 +02:00
rospogrigio
9d5984e4cf Fix for socket.send() exceptions in the logs 2023-06-07 11:59:31 +02:00
rospogrigio
53e1ad8488 Updated manifest.json 2023-05-24 14:20:18 +02:00
rospogrigio
5f9141790d Fixed tox errors 2023-05-24 11:50:27 +02:00
rospogrigio
928f8e985a Merge branch 'master' into feat-add-entities 2023-05-24 11:27:28 +02:00
rospogrigio
9d92cadef3 Reduced logging level for 'Command %d timed out waiting for sequence number'; set v.5.1.0 2023-05-24 11:24:09 +02:00
rospogrigio
9df62b79db Merge branch 'master' into feat-add-entities 2023-05-24 11:12:09 +02:00
rospogrigio
a987d35429 Merge pull request #1400 from oven-lab/master
Code test changes and issue #1375, #1398
2023-05-24 11:11:05 +02:00
oven-lab
8af1836542 Update tox.ini 2023-05-20 14:49:49 +02:00
oven-lab
f2134b877f Update tox.yaml
Added workflow_dispatch
2023-05-20 14:27:49 +02:00
oven-lab
7329aefd08 Delete combined.yaml
As described in KTibow/ha-blueprint, ha-blueprint is being retired and we should thereby switch over to hassfest and hacs validation.
2023-05-20 14:24:06 +02:00
oven-lab
2dbff47505 Alphabetize manifest.json
Alphabetized manifest.json according to home assistant requirements.
2023-05-20 14:15:08 +02:00
oven-lab
a47cdc4096 Add Hassfest validation 2023-05-20 14:06:54 +02:00
oven-lab
651dc8bd94 Update hacs.json 2023-05-20 14:00:48 +02:00
oven-lab
de88ee5681 Remove extra key 2023-05-20 13:59:29 +02:00
oven-lab
861dcc5ffd Update manifest.json 2023-05-20 13:58:52 +02:00
oven-lab
e79520ebc0 Remove extra key 2023-05-20 13:54:46 +02:00
oven-lab
d241f0323b Add HACS validation 2023-05-20 13:47:25 +02:00
oven-lab
55338e22da Merge pull request #1 from oven-lab/oven-lab-Fix-depreciated-async_get_registry
Fix depreciated async_get_registry
2023-05-20 10:09:59 +02:00
oven-lab
1691c5f296 Fix depreciated async_get_registry 2023-05-20 10:05:49 +02:00
GaoJing
7cb065bf51 revert the default region 2023-03-16 16:06:58 +08:00