Commit graph

47 commits

Author SHA1 Message Date
John Allen
901b7b6278
Send target temp to Shelly TRV in F when needed () 2024-01-19 15:42:44 +01:00
Maciej Bieniek
67a30d71e6
Fix HVAC mode duplication for Shelly Gen2 climate platform ()
Fix HVAC mode duplication
2023-12-15 18:14:53 +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
b7bf1e9f3f
Make Shelly Wall Display thermostat implementation compatible with firmware 1.2.5 () 2023-11-30 17:26:07 +01:00
Maciej Bieniek
14387cf94b
Remove Shelly Wall Display switch entity only if the relay is used as the thermostat actuator () 2023-11-26 14:46:29 +01:00
Maciej Bieniek
adc56b6b67
Add support for Shelly Wall Display in thermostat mode () 2023-11-24 12:55:41 +01:00
Maciej Bieniek
0fdf04391b
Use class attrs and shorthand attrs for Shelly () 2023-10-02 13:40:06 +02:00
Shay Levy
b0f3b7bb76
Revert "Change naming of Shelly entities to correspond with HA guidelines" () 2023-08-28 10:42:24 +02:00
Maciej Bieniek
c526d23686
Change naming of Shelly entities to correspond with HA guidelines ()
* Do not use the device name to create the entity name

* Remove unnecessary return

* Fix mypy complains

* Gen1

* Uncapitalize description.name if channel name is used

* Fix for climate and button

* switch_3 -> switch 3

* Add _attr_has_entity_name to ShellyRestAttributeEntity

* Capitalize channel name
2023-08-19 11:13:22 +02:00
Erik Montnemery
045c327928
Move DeviceInfo from entity to device registry ()
* Move DeviceInfo from entity to device registry

* Update integrations
2023-08-10 22:04:26 -04:00
Maciej Bieniek
2e156e56bf
Create an issue if Shelly TRV is not calibrated ()
* Create issue if Shelly Valve is not calibrated

* Add test

* Improve test

* Improve issue description

* Restart -> reboot
2023-07-21 14:20:03 +02:00
Michael
36b4b5b887
Remove duplicated available property from Shelly coordinator entities ()
remove duplicated available property
2023-07-18 22:18:41 +03:00
Joost Lekkerkerker
2f6826dbe3
Use DeviceInfo object s-x ()
* Use DeviceInfo object o-x

* Use DeviceInfo object
2023-07-11 13:40:15 -04:00
Franck Nijhof
5e81d28116
Update black to 23.1.0 () 2023-02-02 18:35:24 +01:00
Maciej Bieniek
9a68f0abe8
Store Shelly climate last_target_temp value in restore extra data ()
fixes undefined
2023-01-24 07:28:34 -10:00
Shay Levy
d5797d9f7d
Cleanup Shelly imports ()
* Cleanup Shelly imports

* Cleanup tests
2023-01-22 01:26:54 +02:00
Franck Nijhof
f39f3b612a
String formatting and max line length - Part 5 ()
Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>
2022-12-23 16:43:17 +01:00
Maciej Bieniek
e11917b7cb
Fix restored temperature values in Shelly climate platform ()
* Set last_target_temp value according the unit system

* Convert restored temperature values

* Add test

* Improve comments

* Move _last_target_temp value to constants
2022-12-07 09:11:18 +02:00
epenet
8b867d612f
Use UnitOfTemperature in climate entities [m-s] () 2022-12-02 19:56:18 +01:00
Shay Levy
4a089b5c28
Add tests coverage for Shelly climate platform () 2022-11-22 09:04:55 -06:00
epenet
39ac2c1101
Adjust type hints for ClimateEntityFeature () 2022-11-16 21:17:50 +01:00
Shay Levy
aea7a9af18
Bump aioshelly to 4.0.0 ()
* Bump aioshelly to 4.0.0

* Remove leftover

* Fix number platform

* Set last_update_success to false upon failure in number and climate

* Set last_update_success upon failurie in entity
2022-10-20 15:08:48 +03:00
Maciej Bieniek
1b130eb271
Save last target temperature in Shelly climate platform ()
Save last target temp
2022-10-18 22:55:50 +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
Maciej Bieniek
c46f55caa8
Add reauth flow to Shelly integration () 2022-09-24 22:01:49 -04:00
epenet
6affd9c6fb
Import climate constants from root [m-z] () 2022-09-10 23:42:28 +02:00
Maciej Bieniek
e03eb238e2
Protect against an exception in Shelly climate platform ()
Check if state in HVACMode
2022-08-22 09:03:32 +02:00
Shay Levy
0d94324d58
Clean up Shelly async methods that are not awaiting () 2022-05-17 10:57:41 -07:00
Franck Nijhof
7d2deae592
Clean up use of deprecated async_get_registry methods () 2022-05-17 13:40:19 +02:00
epenet
a3938deb24
Use climate enums in shelly () 2022-04-26 09:14:31 +02:00
epenet
d5ab7e7525
Use EntityFeature enum in components (s** 1/2) () 2022-04-06 21:38:14 -10:00
Shay Levy
083d51a727
Cleanup - move Shelly logger to const () 2022-03-12 14:43:57 +02:00
Simone Chemelli
d65b2b37dc
Fix profile name update for Shelly Valve () 2022-03-07 09:05:10 -08:00
Paulus Schoutsen
5da923c341
Protect state.as_dict from mutation () 2022-02-04 14:45:25 -08:00
Maciej Bieniek
4a4b0d9418
Fix Shelly climate entity state ()
* Fix For loops in _handle_coordinator_update()

* Change logic

* Suggested change

Co-authored-by: Simone Chemelli <simone.chemelli@gmail.com>

* Move log

Co-authored-by: Simone Chemelli <simone.chemelli@gmail.com>
2022-01-25 08:27:30 +01:00
Simone Chemelli
a1e7459dc5
Fix misuse of cast for Shelly Valve () 2022-01-16 15:28:49 +01:00
Maciej Bieniek
3265a09083
Fix changing the preset mode () 2022-01-14 17:24:54 +01:00
Simone Chemelli
69c8a02e16
Address late Shelly review ()
* Late review

* Apply review comments

* Revert review original comment

* Optimizization: loop exit

* Break instead of return

* Missing super init
2022-01-10 13:14:19 +01:00
Simone Chemelli
9479ef0a34
Fix climate channel for Shelly ()
* Revert "Improve availability for Shelly Valve"

This reverts commit d8cbd81b456820153522e6d86bbd00c4a4a31129.

* Fix channel for climate
2022-01-10 01:16:13 +01:00
Maciej Bieniek
16f6bad897
Fix status type in Shelly climate platform () 2022-01-04 19:32:25 +01:00
Simone Chemelli
90345b1cf2
Fix logging for Shelly climate platform ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-12-18 22:28:26 -08:00
Simone Chemelli
72e1fa1392
Improve availability for Shelly Valve () 2021-12-17 09:16:02 +01:00
Simone Chemelli
db6b472e7a
Add restore logic to Shelly climate platform ()
* Add restore logic to Shelly climate platform

* Handle missing channel on restore
2021-12-16 14:08:40 +01:00
Michael
90e52cd3ad
Use relative imports [S-Z] () 2021-12-13 09:39:13 +01:00
Simone Chemelli
110fd261ee
Fix & update for latest Shelly Valve firmware () 2021-11-28 20:18:15 -08:00
Simone Chemelli
c4128f853d
Add climate platform to Shelly ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-11-21 16:34:00 -06:00