Simone Chemelli
e4f7ac6236
Add switch entity for Shelly scripts ( #108171 )
...
* introduce script switch only
* chore: add script switch test
* chore: apply review comments
* chore: fix tests
* chore: apply review comments
2024-10-13 15:11:40 +02:00
Maciej Bieniek
1290f18ed4
Add support for Shelly CCT light ( #126989 )
...
* Initial support for cct lights
* Move properties to the RpcShellyCctLight class
* Fix entity names
* Add async_remove_orphaned_entities() function
* Do not return
* Fix tests
* Combine async_remove_orphaned_virtual_entities and async_remove_orphaned_entities
* Remove SHELLY_PLUS_RGBW_CHANNELS from const
* Add tests
* Use _attr*
* Check ColorMode.COLOR_TEMP
* Add sensors for CCT light
* Remove removal condition
* Remove orphaned sensors
* Cleaning
* Add device temperature sensor for CCT light
* Simplify async_remove_orphaned_entities()
* Comment
* Add COMPONENT_ID_PATTERN const
* Call async_add_entities once
* Suggested change
* Better type for keys
* Do not call keys()
2024-10-04 08:49:35 +02:00
Maciej Bieniek
70f05e5f13
Add support for Shelly virtual boolean
component ( #119932 )
...
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-07-10 23:51:51 +02:00
Maciej Bieniek
87c1d5a6a7
Remove the switch entity for Shelly Gas Valve ( #119817 )
...
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-06-17 19:17:06 +02:00
Simone Chemelli
32a9cb4b14
Add Shelly motion sensor switch ( #115312 )
...
* Add Shelly motion sensor switch
* update name
* make motion switch a restore entity
* add test
* apply review comment
* Update tests/components/shelly/test_switch.py
Co-authored-by: Shay Levy <levyshay1@gmail.com>
* Update tests/components/shelly/test_switch.py
Co-authored-by: Shay Levy <levyshay1@gmail.com>
* Update tests/components/shelly/test_switch.py
Co-authored-by: Shay Levy <levyshay1@gmail.com>
* Update tests/components/shelly/test_switch.py
Co-authored-by: Shay Levy <levyshay1@gmail.com>
* rename switch
* Update tests/components/shelly/test_switch.py
Co-authored-by: Shay Levy <levyshay1@gmail.com>
* Update tests/components/shelly/test_switch.py
Co-authored-by: Shay Levy <levyshay1@gmail.com>
* Update tests/components/shelly/test_switch.py
Co-authored-by: Shay Levy <levyshay1@gmail.com>
* fix ruff
---------
Co-authored-by: Shay Levy <levyshay1@gmail.com>
2024-05-16 12:49:49 +02:00
Michael
8238cd9f22
Store runtime data inside the config entry in Shelly ( #116763 )
2024-05-04 12:41:25 +02:00
Maciej Bieniek
51bceb1c99
Fix climate entity creation when Shelly WallDisplay uses external relay as actuator ( #115216 )
...
* Fix climate entity creation when Shelly WallDisplay uses external relay as actuator
* More comments
* Wrap condition into function
---------
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-04-25 21:06:52 +02:00
Shay Levy
291df6dafe
Bump aioshelly to 9.0.0 ( #114025 )
...
* 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
Joost Lekkerkerker
b125a6b1bb
Remove entity description mixin in Shelly ( #112938 )
...
* Remove entity description mixin in Shelly
* fix
* Fix
2024-03-10 22:15:23 +01:00
Marc Mueller
930a396712
Add empty line after module docstring [s] ( #112704 )
2024-03-08 14:33:51 +01:00
Simone Chemelli
538ef7764e
Move Shelly thermostat check to status endpoint ( #110543 )
...
* Move Shelly thermostat check to status endpoint
* fix key path
2024-02-14 16:36:42 +01:00
Maciej Bieniek
b60f931e6d
Improve tests for Shelly WallDisplay ( #110435 )
...
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-02-12 16:51:34 -06:00
Maciej Bieniek
326da81656
Add icon translations to Shelly ( #110183 )
...
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-02-11 14:07:10 -06:00
Maciej Bieniek
3eef1a3f6a
Add valve platform for Shelly Gas Valve ( #106087 )
...
* Add valve platform
* Update BLOCK_PLATFORMS
* Add tests
* Use _attr_is_closed
* Fix mypy errors
* Make the valve switch to disabled by default
* Add deprecation issues
* Remove LOGGER
* Clean
* Add deprecation comments
* Suggested changes
* Set True for is_fixable
* Show valve entity and services in repair issue
2023-12-26 07:56:21 +01:00
Erik Montnemery
0c2485bc03
Freeze integration entity descriptions ( #105984 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-12-18 16:28:13 -10:00
Maciej Bieniek
bf93929826
Add support for Shelly Gen3 devices ( #104874 )
...
* 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
b7bf1e9f3f
Make Shelly Wall Display thermostat implementation compatible with firmware 1.2.5 ( #104812 )
2023-11-30 17:26:07 +01:00
Maciej Bieniek
2515dbeee1
Bump aioshelly to version 6.1.0 ( #104456 )
...
* Bump aioshelly
* Use MODEL_* consts from aioshelly
* Add missing models to BATTERY_DEVICES_WITH_PERMANENT_CONNECTION
2023-11-24 20:55:00 +02:00
Maciej Bieniek
adc56b6b67
Add support for Shelly Wall Display in thermostat mode ( #103937 )
2023-11-24 12:55:41 +01:00
Maciej Bieniek
17050a3286
Add support for Shelly Gas Valve addon ( #98705 )
...
* Support Gas Valve
* Treat opening and closing as open
* Use set_state()
* Change entity icon and name
* Add valve state sensor
* Closing == closed
* Add translations for valve state entity
* Valve state -> Valve status
* Add tests; use control_result
* Fix mypy error
* Add missing "valve" to the Mock
* Improve docstrings
* Fix climate platform tests
* Increase test coverage
* Add mising return
2023-08-22 11:53:52 +03:00
Shay Levy
111a38589e
Shelly code quality - use properties for status ( #83421 )
2022-12-07 00:00:45 +02:00
Shay Levy
93b2a6cc26
Refactor Shelly to use data class for ConfigEntry data ( #79671 )
...
* 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 ( #79628 )
2022-10-05 14:39:58 +02:00
Shay Levy
0d94324d58
Clean up Shelly async methods that are not awaiting ( #72026 )
2022-05-17 10:57:41 -07:00
Michael
296b738740
Add button to trigger ota firmware update for Shelly devices ( #58757 )
...
Co-authored-by: Shay Levy <levyshay1@gmail.com>
2021-11-26 14:19:39 +01:00
Shay Levy
542f637ac4
Improve Shelly light application/consumption type handling ( #56461 )
2021-09-20 11:12:18 -07:00
Shay Levy
5249c89c3f
Add Shelly RPC sensor and binary sensor platforms ( #56253 )
2021-09-17 15:53:39 +03:00
Shay Levy
e9eb76c7db
Add switch support for RPC device ( #56153 )
...
* 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 ( #56083 )
2021-09-11 00:48:55 +03:00
Maciej Bieniek
772cbd59d7
Improve typing in Shelly integration ( #52544 )
2021-07-21 10:11:44 -07:00
Shay Levy
c21add195a
Catch Shelly set state exceptions when device is inaccessible ( #50064 )
2021-05-04 09:10:28 -07:00
Shay Levy
982624b3ac
Support for Shelly Binary Input Sensors ( #43313 )
...
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 ( #43114 )
...
"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 ( #40429 )
2020-11-11 20:13:14 +01:00
Simone Chemelli
05dc457955
Handle Shelly light domain for relay switches ( fw >=1.9 ) ( #42508 )
...
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 ( #41905 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-10-21 13:37:17 +02:00
Shay Levy
4fbd4957bd
Guard both Shelly 2 & Shelly 2.5 in roller mode ( #40086 )
...
Co-authored-by: Maciej Bieniek <bieniu@users.noreply.github.com>
2020-09-15 16:29:24 +02:00
Paulus Schoutsen
cfc020daa2
Bump aioshelly to 0.3.1 ( #39917 )
2020-09-10 23:07:23 +02:00
Paulus Schoutsen
35a9106a4b
Shelly switch to guard for shelly 2 in roller mode ( #39886 )
2020-09-10 12:08:17 +02:00
Paulus Schoutsen
b07628ae57
Rework Shelly sensors ( #39747 )
...
* Rework Shelly sensors
* Lint
* Add shelly/entity to coveragerc
2020-09-07 14:13:20 +02:00
Simone Chemelli
f298281ec4
Make multi-switches device a single device with 2 switches ( #39689 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-09-06 16:05:10 +02:00
Paulus Schoutsen
4b8217777e
Add basic light and sensor support to Shelly ( #39288 )
...
* 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
Paulus Schoutsen
ca2bc9906d
Add Shelly integration ( #39178 )
2020-08-24 12:43:31 +02:00