1
0
mirror of https://github.com/home-assistant/core.git synced 2025-07-22 20:57:21 +00:00

53 Commits

Author SHA1 Message Date
Michael
8238cd9f22
Store runtime data inside the config entry in Shelly () 2024-05-04 12:41:25 +02:00
Shay Levy
291df6dafe
Bump aioshelly to 9.0.0 ()
* Update Shelly to use initialize from aioshelly

* Save indentation in _async_device_connect

* Use firmware_supported property from aioshelly

* Review comments

* Bump aioshelly

* Fix lint errors

* Test RPC initialized update
2024-04-14 18:07:26 +03:00
Shay Levy
3e99afdd54
Cleanup Shelly RGBW light entities () 2024-03-30 18:48:57 +03:00
Shay Levy
63275d61a5
Add Shelly RGB/RGBW profiles support ()
* Add Shelly RGB/RGBW profiles support

* Update homeassistant/components/shelly/light.py

Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>

* Use walrus in rgbw_key_ids

* Use walrus in light_key_ids

---------

Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
2024-03-21 21:04:50 +02:00
Marc Mueller
930a396712
Add empty line after module docstring [s] () 2024-03-08 14:33:51 +01:00
Simone Chemelli
7359449636
Code quality for Shelly integration () 2024-01-30 09:47:52 +01:00
Maciej Bieniek
bf93929826
Add support for Shelly Gen3 devices ()
* Add support for Gen3 devices

* Add RPC_GENERATIONS const

* Add gen3 to tests

* More tests

* Add BLOCK_GENERATIONS const

* Use *_GENERATIONS constants from aioshelly
2023-12-11 22:58:56 +01:00
Maciej Bieniek
35b733fa2c
Bump aioshelly to version 7.0.0 ()
* Remove get_rpc_device_sleep_period() function

* Bump aioshelly version to 7.0.0

* Remove firmware compatibility check from BLE scanner

* Remove firmware compatibility check from light transition

* Update default fw ver

* Use LightEntityFeature in tests
2023-12-09 17:12:05 +02:00
Maciej Bieniek
2515dbeee1
Bump aioshelly to version 6.1.0 ()
* Bump aioshelly

* Use MODEL_* consts from aioshelly

* Add missing models to BATTERY_DEVICES_WITH_PERMANENT_CONNECTION
2023-11-24 20:55:00 +02:00
Franck Nijhof
fcb612cd6f
Collection of code styling tweaks () 2023-02-03 23:51:27 +01:00
Shay Levy
803cd8d9a3
Handle state unknown if last state is missing in Shelly ()
Shelly - handle state unknown if last state is missing
2023-01-27 23:34:56 +01:00
Shay Levy
111a38589e
Shelly code quality - use properties for status () 2022-12-07 00:00:45 +02:00
Shay Levy
e1923bc13b
Add Shelly support for Plus WallDimmer US () 2022-12-06 19:44:17 +02:00
Marc Mueller
e897c8c47c
Fix round typing [shelly] () 2022-11-20 23:45:34 +02:00
Shay Levy
9019fcb5c5
Migrate Shelly to use kelvin for color temperature () 2022-10-08 22:24:19 +03:00
Shay Levy
93b2a6cc26
Refactor Shelly to use data class for ConfigEntry data ()
* Refactor Shelly to use data class for ConfigEntry data

* Apply suggestions from code review

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Update homeassistant/components/shelly/__init__.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Optimize usage of shelly_entry_data in _async_setup_block_entry

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2022-10-06 10:10:58 +03:00
Shay Levy
22c68b95bf
Refactor Shelly wrapper to coordinator () 2022-10-05 14:39:58 +02:00
Shay Levy
0028dc46e6
Fix Shelly Duo RGBW color mode attribute () 2022-06-30 01:10:25 +02:00
Shay Levy
0d94324d58
Clean up Shelly async methods that are not awaiting () 2022-05-17 10:57:41 -07:00
Erik Montnemery
db3eb26c74
Correct color mode in shelly light () 2022-04-28 09:05:08 +02:00
epenet
5af496682b
Use light enums in shelly () 2022-04-26 15:29:56 +03:00
epenet
93be31290d
Use ColorMode enum in shelly () 2022-04-23 09:42:36 -10:00
Shay Levy
083d51a727
Cleanup - move Shelly logger to const () 2022-03-12 14:43:57 +02:00
Shay Levy
98256746d3
Fix shelly duo scene restore () 2022-03-08 09:56:57 -08:00
epenet
da316e1547
Use shorthand attributes in shelly light ()
* Use shorthand attributes in shelly light

* Adjust mypy

* Revert temperature conversions

* Adjust initialisation

* Invert min/max for mired

* Make _attr_supported_color_modes an instance attribute

Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-25 15:48:07 +02:00
Gábor Kiss
1aadda4b0f
Fix Shelly dual mode bulb mode switch ()
* fix_shelly_dual_mode_bulb_mode_switch

* Update __init__.py

* Update light.py
2021-11-28 12:07:18 +02:00
Gábor Kiss
032786fcd8
Improve Shelly color mode switch for dual mode bulbs ()
* Shelly color mode switch for SHCB-1

* Update light.py

* Update light.py

* Update homeassistant/components/shelly/light.py

Co-authored-by: Shay Levy <levyshay1@gmail.com>

* Update light.py

Co-authored-by: Shay Levy <levyshay1@gmail.com>
2021-11-09 18:24:40 +01:00
Shay Levy
722d3862db
Fix Shelly RGB/W supported color mode detection () 2021-10-09 02:22:14 +03:00
Shay Levy
542f637ac4
Improve Shelly light application/consumption type handling () 2021-09-20 11:12:18 -07:00
Shay Levy
5249c89c3f
Add Shelly RPC sensor and binary sensor platforms () 2021-09-17 15:53:39 +03:00
Shay Levy
e9eb76c7db
Add switch support for RPC device ()
* Add switch support for RPC device

* Apply review comments

* Apply review comments
2021-09-13 09:31:35 +03:00
Shay Levy
8c3c2ad8e3
Updated changes for aioshelly 1.0.0 () 2021-09-11 00:48:55 +03:00
Maciej Bieniek
acf55f2f3a
Add light transition for Shelly integration ()
* Add support for light transition

* Limit transition to 5 seconds

* Update MODELS_SUPPORTING_LIGHT_TRANSITION list
2021-08-09 20:55:14 +03:00
Maciej Bieniek
772cbd59d7
Improve typing in Shelly integration () 2021-07-21 10:11:44 -07:00
Simone Chemelli
8bc75e91a0
Add color effect to Shelly's color devices ()
* Add color effect

* Final commit based on updated firmware

* Update homeassistant/components/shelly/light.py

Co-authored-by: Shay Levy <levyshay1@gmail.com>

* Update homeassistant/components/shelly/light.py

Co-authored-by: Shay Levy <levyshay1@gmail.com>

* Update homeassistant/components/shelly/light.py

* Fix flake

Co-authored-by: Shay Levy <levyshay1@gmail.com>
2021-05-15 22:43:06 +03:00
Shay Levy
be73067f9c
Fix Shelly type hints () 2021-05-09 19:46:53 +02:00
Shay Levy
c21add195a
Catch Shelly set state exceptions when device is inaccessible () 2021-05-04 09:10:28 -07:00
Shay Levy
2440f25aaf
Shelly light color mode bugfix () 2021-05-01 07:43:03 -07:00
Shay Levy
87a595d928
Add color modes to Shelly light () 2021-04-29 09:13:58 -07:00
Shay Levy
5c71ba578d
Fix Shelly brightness offset () 2021-04-12 15:52:51 -07:00
Marc Mueller
a3cd1854f6
Update typing 12 () 2021-03-18 14:31:38 +01:00
Shay Levy
e9b8e035b4
Fix Shelly RGBW () 2021-02-26 14:28:16 -08:00
Simone Chemelli
00dd557cce
Fix Shelly mireds and color_temp return type () 2021-02-23 22:42:33 +01:00
Shay Levy
6015161dab
Fix Shelly relay device set to light appliance type () 2021-02-11 10:40:03 +01:00
Simone Chemelli
bc2c7b2d48
Add Shelly RGB devices management ()
* Add support for RGB devices

* White value handling

* Fixed logic for some devices (ColorTemp, White, Kelvin limits)

* Code cleanup

* Moved func from utils to light

* Fix for DUO

* Added "Optional" to properties that need it

* Code more understandable

* Applied code review suggestions

* Applied code review suggestions

* Updated logic to always show all available options
2021-01-11 16:47:49 +01:00
Shay Levy
982624b3ac
Support for Shelly Binary Input Sensors ()
Co-authored-by: Maciej Bieniek <bieniu@users.noreply.github.com>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-11-19 11:42:24 +01:00
Shay Levy
22a0464dce
Make Appliance Type Case-insensitive ()
"appliance_type" is a free text parameter in the device settings, this fix will make the comparison case-insensitive
2020-11-12 10:12:56 +01:00
Simone Chemelli
d8b067ebf9
Add Shelly support for REST sensors () 2020-11-11 20:13:14 +01:00
Simone Chemelli
05dc457955
Handle Shelly light domain for relay switches ( fw >=1.9 ) ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-11-05 18:38:53 +01:00
Maciej Bieniek
f855ff8751
Bump aioshelly library to 0.4.0 ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-10-21 13:37:17 +02:00