Commit Graph

260 Commits (cde6e007bf5efd5dcdac2cf1724ba513142d4029)

Author SHA1 Message Date
Erik Montnemery 64bc9a8196
Migrate integrations r-s to extend SensorEntity (#48215) 2021-03-22 19:54:14 +01:00
Maciej Bieniek 0f5efca76b
Fix Shelly sleeping device initialization after reconfiguration (#48076) 2021-03-18 13:26:20 -07:00
Marc Mueller a3cd1854f6
Update typing 12 (#48073) 2021-03-18 14:31:38 +01:00
HomeAssistant Azure 4306c8fbb4 [ci skip] Translation update 2021-03-17 00:03:55 +00:00
HomeAssistant Azure c11b85af2f [ci skip] Translation update 2021-03-16 00:04:36 +00:00
Erik Montnemery 14ff6d4d1f
Update integrations p-s to override extra_state_attributes() (#47759) 2021-03-11 21:23:20 +01:00
Shay Levy 19f67335ec
Revert Shelly temperature sensor name change (#47664) 2021-03-09 13:45:58 +01:00
Paulus Schoutsen 34b9e6f6fc
Shelly: set confirm only (#47608) 2021-03-09 13:13:43 +01:00
Shay Levy 24db0ff956
Fix Shelly logbook exception when missing COAP (#47620) 2021-03-08 15:59:54 +01:00
Quentame 198ecb0945
Uniformize platform setup (#47101)
* A platform is not a component

* Fix dynalite

* SUPPORTED_PLATFORMS --> PLATFORMS

* In tests

* In tests 2

* Fix SmartThings

* Fix ZHA test

* Fix Z-Wave

* Revert Z-Wave

* Use PLATFORMS const in ambient_station

* Fix ihc comment
2021-03-02 21:43:59 +01:00
Shay Levy adad4a7785
Fix Shelly Polling (#47224) 2021-03-01 17:27:43 +01:00
Shay Levy e9b8e035b4
Fix Shelly RGBW (#47116) 2021-02-26 14:28:16 -08:00
Simone Chemelli 8971ab2edc
Bump aioshelly to 0.6.1 (#47088) 2021-02-26 11:07:53 -08:00
CurrentThread d5ee49cd4e
Add support for Shelly SHBTN-2 device triggers (#46644) 2021-02-26 11:52:47 +01:00
HomeAssistant Azure 989d3e5c87 [ci skip] Translation update 2021-02-26 00:06:13 +00:00
Simone Chemelli 65a2f07a01
Fix missing Shelly external input (#47028)
* Add support for external input (Shelly 1/1pm add-on)

* Make external sensor naming consistent

* Fix case consistency
2021-02-25 09:51:18 +01:00
Simone Chemelli 4c294adfe8
Add missing tilt icon to Shelly tilt sensor (#46993) 2021-02-24 21:18:14 +01:00
Maciej Bieniek b645b151f9
Catch AuthRequired exception in confirm discovery step for Shelly config flow (#46135) 2021-02-24 07:13:32 -06:00
HomeAssistant Azure 9159f54900 [ci skip] Translation update 2021-02-24 00:04:14 +00:00
Simone Chemelli 00dd557cce
Fix Shelly mireds and color_temp return type (#46112) 2021-02-23 22:42:33 +01:00
HomeAssistant Azure 580d25c622 [ci skip] Translation update 2021-02-23 00:05:06 +00:00
Simone Chemelli 82a9dc620c
Add device_class to Shelly cover domain (#46894)
Fix author
2021-02-22 14:31:22 +01:00
HomeAssistant Azure 0cb1f61deb [ci skip] Translation update 2021-02-21 00:07:04 +00:00
HomeAssistant Azure d9ce7db554 [ci skip] Translation update 2021-02-19 00:03:06 +00:00
HomeAssistant Azure 1bb535aa67 [ci skip] Translation update 2021-02-16 00:03:57 +00:00
HomeAssistant Azure 17a4678906 [ci skip] Translation update 2021-02-14 00:06:28 +00:00
Franck Nijhof bc1daf1802
None optional hass typing in FlowHandler (#46462)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-02-13 13:21:37 +01:00
Maciej Bieniek b8584cab5d
Remove unnecessary gethostbyname() from Shelly integration (#46483) 2021-02-13 12:27:54 +01:00
HomeAssistant Azure ee04473e85 [ci skip] Translation update 2021-02-12 00:02:46 +00:00
Shay Levy 6015161dab
Fix Shelly relay device set to light appliance type (#46181) 2021-02-11 10:40:03 +01:00
HomeAssistant Azure 8007391244 [ci skip] Translation update 2021-02-11 00:02:56 +00:00
Shay Levy 7d2d98fc3c
Revert multiple interfaces (#46300) 2021-02-10 12:38:16 +01:00
HomeAssistant Azure 5fcb948e28 [ci skip] Translation update 2021-02-10 00:05:10 +00:00
Maciej Bieniek 2fc1c19a45
Allow to setup of a previously discovered sleeping Shelly device (#46124)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-02-09 09:28:40 +01:00
Erik Montnemery 0780e52ca4
Support templates in event triggers (#46207)
* Support templates in event triggers

* Don't validate trigger schemas twice
2021-02-08 14:06:27 +01:00
HomeAssistant Azure ce159d7db3 [ci skip] Translation update 2021-02-06 00:07:22 +00:00
Shay Levy fefe4a2021
Fix exception in Shelly sleeping device that switches to polling (#45930) 2021-02-04 11:07:30 +01:00
Shay Levy 0875f654c8
Add support for Shelly battery operated devices (#45406)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-02-03 17:03:22 +01:00
Paulus Schoutsen 959ed6d077 Update translations 2021-02-03 11:46:49 +01:00
Shay Levy 5bc4db5ef9
Fix exception when last Shelly device is removed (#45476) 2021-01-27 08:15:56 -05:00
Simone Chemelli bc2c7b2d48
Add Shelly RGB devices management (#43993)
* 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 76537305e2
Add logbook and device trigger platforms to Shelly (#44020)
* Add logbook and device trigger platforms to Shelly

Add `logbook` platform for describing “shelly.click” event
Add `device_trigger` platform for adding automation based on click events:

Example of logbook event:
Shelly 'single' click event for Test I3 channel 3 was fired.
(Test I3 is the name of the device)

Example of automation triggers:
First button triple clicked
First button long clicked and then single clicked
First button double clicked
First button long clicked
First button single clicked and then long clicked
First button single clicked
Second button triple clicked
..
Second button single clicked

* Fix codespell

* Remove pylint added for debug

* Add tests

* Rebase

* Fix Rebase & Apply PR review suggestions

Fix tests after rebasing
Use `INPUTS_EVENTS_DICT` for input triggers
Apply PR suggestions
2021-01-04 23:10:42 +01:00
Simone Chemelli 3a32e16f4d
Add myself to codeowners for Shelly (#44814) 2021-01-04 14:14:09 +01:00
Simone Chemelli f07bf6a88e
Cleanup timeouts values for Shelly (#44790)
* Updated timeouts

* Small cleanup

* Fix + small cleanup of test code
2021-01-04 14:04:40 +01:00
Maciej Bieniek f771d8ff14
Change rest sensors update interval for Shelly Motion (#44692)
* Change rest sensors update interval for Shelly Motion

* Cleaning

* Fix typo

* Remove unnecessary parentheses
2021-01-04 13:14:07 +01:00
Paulus Schoutsen 2b0556520b
Catch Shelly zeroconf types with uppercase too (#44672)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-01-01 20:54:43 +01:00
Maciej Bieniek 687f90e164
Add motion binary sensor (#44445) 2020-12-31 00:02:56 +01:00
Simone Chemelli 338938a38e
Fix shelly shutdown AttributeError (#44172)
* Additional check for clean shutdown

* Changed approach

* Remover leftover

* Added callback key

* Moved to listen once
2020-12-30 10:29:54 +01:00
HomeAssistant Azure 5bdf022bf2 [ci skip] Translation update 2020-12-20 00:04:36 +00:00
Shay Levy fd24baa1f6
Fix Shelly devices missing properties field (#44279) 2020-12-16 21:28:59 +01:00
Shay Levy 4880a1d55a
Change shelly CONNECTION_CLASS to CONN_CLASS_LOCAL_PUSH (#44260)
Shelly integration is using local push since HA 0.118
2020-12-15 19:25:14 +01:00
Shay Levy 5fc7df2746
Prevent firing Shelly input events at startup (#43986)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-12-07 09:27:33 +01:00
HomeAssistant Azure 9c63fbfcb1 [ci skip] Translation update 2020-12-07 00:04:18 +00:00
HomeAssistant Azure 42f00cff30 [ci skip] Translation update 2020-12-04 00:05:42 +00:00
Shay Levy 2498340e1f
Fix Shelly uptime sensor (#43651)
Fix sensor to include time zone
Report new value only if delta > 5 seconds
Modify REST sensors class to use callable attributes
2020-11-27 09:40:06 +01:00
Simone Chemelli b7f36106df
Add Shelly UNI ADC sensor (#43490) 2020-11-25 15:37:07 +01:00
Shay Levy ebaf143cf6
Support for Shelly Input Events (#43479) 2020-11-25 15:29:01 +01: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
Simone Chemelli 3dbfd2cb70
Add shelly installed firmware info (#43221) 2020-11-19 10:47:23 +01:00
HomeAssistant Azure 262fadd9bc [ci skip] Translation update 2020-11-18 00:09:55 +00:00
HomeAssistant Azure c8113e6b11 [ci skip] Translation update 2020-11-17 00:06:49 +00:00
Simone Chemelli 4c2bf1ddf5
Avoid creating battery sensor if Shelly device is external powered (#43243) 2020-11-16 11:49:23 +01:00
Paulus Schoutsen 3404e6ded1 Update translations 2020-11-13 10:40:51 +01:00
Simone Chemelli 31502e960a
Shelly: minor improvements (#43138) 2020-11-12 19:49:06 +01:00
Shay Levy ad06b6b340
Revert "shelly_naming" rebase errors (#43134) 2020-11-12 15:22:51 +01:00
Simone Chemelli cdc53329d0
Add Shelly totalWorkTime as Lamp life (Shelly Air) (#43112)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-11-12 10:38:53 +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
Paulus Schoutsen 621a0a5dd2 Update translations 2020-11-11 13:25:22 +01:00
Paulus Schoutsen 68d757e5d2
Remove brand names from translations (#43092) 2020-11-11 13:22:52 +01:00
Paulus Schoutsen 54f3d9078a Update translations 2020-11-11 12:10:09 +01:00
Shay Levy 0ddf14a98a
Cleanup and naming schema fixes for Shelly (#42987)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-11-11 09:05:08 +01:00
Shay Levy 8b998365a4
Increase update timeouts used in Shelly integration (#42937)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-11-08 21:49:41 +01:00
Simone Chemelli 12a891cc0a
Bump aioshelly to 0.5.1 (#42940) 2020-11-07 18:10:14 +01:00
HomeAssistant Azure 57c6bb96f4 [ci skip] Translation update 2020-11-07 00:04:02 +00:00
HomeAssistant Azure e972686a13 [ci skip] Translation update 2020-11-06 00:04:57 +00: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
Adam Ernst 623f2b6f9c
Tweak Shelly message to be clearer (#42862)
Not all Shelly devices are battery-powered.
2020-11-05 10:09:22 +01:00
Paulus Schoutsen 349e4a5ac2
Fix shelly import (#42783) 2020-11-03 09:49:34 +01:00
HomeAssistant Azure aab0ff2ea5 [ci skip] Translation update 2020-11-03 00:04:39 +00:00
Shay Levy f45075eeb5
Use own CoAP lib and support for multicast updates (#42718)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-11-02 16:46:34 +01:00
HomeAssistant Azure ce16ff27ef [ci skip] Translation update 2020-11-02 00:03:44 +00:00
HomeAssistant Azure b9d04b9304 [ci skip] Translation update 2020-10-30 00:02:45 +00:00
HomeAssistant Azure f4cebfbb7e [ci skip] Translation update 2020-10-27 00:06:28 +00:00
HomeAssistant Azure ed232ac733 [ci skip] Translation update 2020-10-24 00:05:17 +00:00
HomeAssistant Azure 6e53aa1155 [ci skip] Translation update 2020-10-23 00:03:04 +00:00
HomeAssistant Azure b102ad731f [ci skip] Translation update 2020-10-22 00:09:52 +00:00
On Freund a07c0d1605
Fallback to mac in Shelly config flow title (#40783) 2020-10-21 15:05:06 +02: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
HomeAssistant Azure 994ae09f69 [ci skip] Translation update 2020-10-15 00:03:50 +00:00
Simone Chemelli 70eebc7211
Shelly: fix for RGB devices (#41841) 2020-10-14 21:09:03 +02:00
HomeAssistant Azure 1417a4161f [ci skip] Translation update 2020-10-13 00:03:24 +00:00
HomeAssistant Azure f787289ea0 [ci skip] Translation update 2020-10-12 00:03:31 +00:00
HomeAssistant Azure 80522f1bdc [ci skip] Translation update 2020-10-11 00:03:37 +00:00
HomeAssistant Azure 6ae12c3faf [ci skip] Translation update 2020-10-10 00:05:05 +00:00
HomeAssistant Azure 29aea5a66c [ci skip] Translation update 2020-10-09 00:04:33 +00:00
HomeAssistant Azure d73d36d0cd [ci skip] Translation update 2020-10-08 00:06:03 +00:00
HomeAssistant Azure 486c0b644a [ci skip] Translation update 2020-10-07 00:06:20 +00:00
HomeAssistant Azure 8d1d585b40 [ci skip] Translation update 2020-10-05 00:04:23 +00:00
HomeAssistant Azure f8c2d877aa [ci skip] Translation update 2020-10-04 00:05:05 +00:00
Paulus Schoutsen 576fbbe0be
Bump aioshelly to 0.3.4 (#41065) 2020-10-02 15:27:45 +02:00
HomeAssistant Azure 81c6d48cb4 [ci skip] Translation update 2020-10-02 00:05:51 +00:00
Maciej Bieniek d1c04750cd
Add voltage, power factor and energy returned sensors to Shelly integration (#40681) 2020-10-01 12:08:03 +02:00
Simone Chemelli b4b056b75b
Handle Shelly channel names (if available) for emeters devices (#40820) 2020-10-01 12:07:18 +02:00
HomeAssistant Azure 8d0f1e7db2 [ci skip] Translation update 2020-09-30 00:04:43 +00:00
HomeAssistant Azure 704ffe391a [ci skip] Translation update 2020-09-29 00:03:20 +00:00
Maciej Bieniek 29d87646dd
Improve config flow descriptions in Shelly integration (#40396) 2020-09-28 13:35:40 +02:00
HomeAssistant Azure e9e17122e7 [ci skip] Translation update 2020-09-28 00:03:28 +00:00
Maciej Bieniek 088558b8df
Increase the timeout during config entry setup in Shelly integration (#40684) 2020-09-27 23:03:47 +02:00
Simone Chemelli 8895752837
Handle Shelly channel names (if available) (#40119)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2020-09-27 10:16:45 +02:00
HomeAssistant Azure 2b00d28af9 [ci skip] Translation update 2020-09-27 00:06:49 +00:00
Maciej Bieniek b8f837365c
Bump aioshelly library to version 0.3.3 (#40415) 2020-09-26 22:39:02 +02:00
HomeAssistant Azure c3afe39ea0 [ci skip] Translation update 2020-09-26 00:05:34 +00:00
springstan 6c8e0e20fb
Add and use light lux constant in entire code base (#40171) 2020-09-23 20:48:01 +02:00
Maciej Bieniek 663245c351
Fix OSError (#40393) 2020-09-21 21:10:02 +02:00
HomeAssistant Azure 587e3f1eb2 [ci skip] Translation update 2020-09-21 00:02:47 +00:00
Tomasz 2d9019d4b2
Fix shelly sensor names (#39854) 2020-09-18 14:32:33 +02:00
HomeAssistant Azure f28b7f2187 [ci skip] Translation update 2020-09-16 00:09:01 +00:00
Maciej Bieniek 413263a6eb
Bump aioshelly library to version 0.3.2 (#40118) 2020-09-16 00:12:59 +02:00
springstan db582bdc1b
Use http status constants more, add HTTP_ACCEPTED and HTTP_BAD_GATEWAY (#39993)
* Use http status codes and add HTTP_BAD_GATEWAY constant

* Address review comments:
 - using constants in tado integration
 - using constant in media_player init.py

* Add and use HTTP_ACCEPTED constant
2020-09-15 20:01:07 +03:00
Maciej Bieniek 56ba4907e1
Remove the unnecessary prefix from the sensor names in the Shelly integration (#40097) 2020-09-15 16:30:33 +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
HomeAssistant Azure d0f4b23063 [ci skip] Translation update 2020-09-15 00:09:18 +00:00
Simone Chemelli ca26c8bbd7
Shelly: Power and Energy sensors in roller mode (#39709) 2020-09-12 22:31:01 +02:00
HomeAssistant Azure ee5c1ea3f7 [ci skip] Translation update 2020-09-12 00:05:00 +00:00
J. Nick Koston 9389a7c9be
Limit zeroconf discovery to name/macaddress when provided (#39877)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-09-11 12:19:21 +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
HomeAssistant Azure 6e79d49c80 [ci skip] Translation update 2020-09-10 00:04:20 +00:00
Maciej Bieniek 748e2696dc
Add missing sensors after reworking sensor platform in Shelly integration (#39765) 2020-09-08 23:22:44 +02:00
Paulus Schoutsen 1e2741ff1b
Some shelly fixes (#39798) 2020-09-08 15:12:20 +02:00
Simone Chemelli 0c8630a2f0
Support shelly cover(roller) mode (#39711)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-09-08 10:35:01 +02:00
Tomasz ae5d8f4d64
Support color temperature (#39743)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-09-07 17:29:51 +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
Maciej Bieniek f29154011e
Bump aioshelly library to 0.3.0 (#39716) 2020-09-06 10:34:51 -05: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
Simone Chemelli 1fffa748e5
Improve handling of DHCP devices (#39683) 2020-09-06 00:17:10 +02:00
springstan d2b1918e9c
Drop UNIT_ prefix for percentage constant (#39383) 2020-09-05 21:09:14 +02:00
Maciej Bieniek 0b7576b634
Add some missing sensors for Shelly integration (#39651) 2020-09-04 16:42:57 +02:00
Maciej Bieniek ad3e520e09
Fix sensors without unit attribute in Shelly integration (#39629) 2020-09-04 11:44:22 +02:00
HomeAssistant Azure bfd6989c75 [ci skip] Translation update 2020-09-04 00:04:26 +00:00
Maciej Bieniek 7e50a4999c
Add support for Shelly Gas to the Shelly integration (#39478)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-09-03 10:54:25 +02:00
HomeAssistant Azure 65b227126d [ci skip] Translation update 2020-09-03 00:06:16 +00:00
Simone Chemelli 07f2f78b02
Add shelly overtemp and vibration sensors (#39556) 2020-09-02 08:56:27 +02:00
HomeAssistant Azure 5ce62c8446 [ci skip] Translation update 2020-09-02 00:03:29 +00:00
Paulus Schoutsen aa476b392c
Filter out disconnected Shelly sensors (#39516) 2020-09-01 08:18:11 -04:00
On Freund 963651d6f2
Add support for authenticated Shelly devices (#39461)
* Add support for authenticated Shelly devices

* Fix comment typos

* Update homeassistant/components/shelly/config_flow.py

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

* Fix unauthenticated devices

* Update homeassistant/components/shelly/config_flow.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Code review fixes

* More code review fixes

* Fix typo

* Update homeassistant/components/shelly/config_flow.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

Co-authored-by: Maciej Bieniek <bieniu@users.noreply.github.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-09-01 08:08:37 -04:00
On Freund dde0dab3db
Handle missing values in Shelly sensors (#39515) 2020-09-01 08:04:42 -04:00
HomeAssistant Azure 8d68963854 [ci skip] Translation update 2020-09-01 00:07:08 +00:00
Maciej Bieniek 80910b4f9a
Add bieniu as code owner for shelly (#39467) 2020-08-30 13:17:27 -05:00