Commit graph

36 commits

Author SHA1 Message Date
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
Tomasz
ae5d8f4d64
Support color temperature ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-09-07 17:29:51 +02:00
Paulus Schoutsen
b07628ae57
Rework Shelly sensors ()
* Rework Shelly sensors

* Lint

* Add shelly/entity to coveragerc
2020-09-07 14:13:20 +02:00
Paulus Schoutsen
4b8217777e
Add basic light and sensor support to Shelly ()
* Add basic light platform

* Add sensor support

* Bump aioshelly to 0.2.1

* Lint

* Use UNIT_PERCENTAGE

Co-authored-by: Maciej Bieniek <bieniu@users.noreply.github.com>

* Format sensor.py

Co-authored-by: Maciej Bieniek <bieniu@users.noreply.github.com>
2020-08-28 17:33:34 +02:00