Commit graph

39 commits

Author SHA1 Message Date
Simone Chemelli
0738f08215
Add missing sensors for Shelly Plus H&T (#76001)
* Add missing sensors for Shelly Plus H&T

* Cleanup

* Fix

* Add voltage to battery sensor

* Apply review comments
2022-08-01 09:52:51 +02:00
Shay Levy
0d94324d58
Clean up Shelly async methods that are not awaiting (#72026) 2022-05-17 10:57:41 -07:00
Franck Nijhof
69cc6ab5f1
Clean up accessing entity_registry.async_get_registry helper via hass (#72005) 2022-05-17 16:40:45 +02:00
RadekHvizdos
8549af3855
Add missing Shelly Cover sensors bugfix (#71831)
Switching Shelly Plus 2PM from switch to cover mode results in missing sensors for Power, Voltage, Energy and Temperature.

These parameters are still available in the API, but need to be accessed via "cover" key instead of "switch" key.

This change adds the missing sensors.
2022-05-15 12:29:35 +03:00
Radu Cotescu
9c1f37aa95
Input binary sensors are not generated for Shelly 1 Pro (#69046)
Co-authored-by: Shay Levy <levyshay1@gmail.com>
2022-04-04 13:39:40 +02:00
Shay Levy
083d51a727
Cleanup - move Shelly logger to const (#68046) 2022-03-12 14:43:57 +02:00
Shay Levy
5e577058bb
Fix Shelly Plus i4 KeyError (#65604) 2022-02-03 16:19:36 -08:00
Shay Levy
efbbef5922
Fix Shelly detached switches automation triggers (#65059) 2022-01-28 08:30:44 -08:00
Simone Chemelli
c27e4feff6
Refresh device_info for Shelly devices (#62899)
* Rework device_info

* Update device_info via registry

* Optimized checks: only when needed

* Revert device_info rework as not needed

* Fix reboot detection for all scenarios

* Final optimization

* Remove leftover

* Bump aioshelly

* Bump fritzconnection and remove workarounds

* Cleanup fritzbox_callmonitor

* Rework device_info

* Update device_info via registry

* Optimized checks: only when needed

* Revert device_info rework as not needed

* Fix reboot detection for all scenarios

* Final optimization

* Remove leftover

* Update homeassistant/components/shelly/utils.py

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

* Update homeassistant/components/shelly/__init__.py

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

* Revert slipped in commit

* Rename param

* Apply review comment

* Apply comment review #2

Co-authored-by: Shay Levy <levyshay1@gmail.com>
2021-12-30 15:37:28 +01:00
Shay Levy
f46055de99
Fix Shelly device name for older firmware (#60826) 2021-12-02 09:26:00 -08:00
Simone Chemelli
07c09ab268
Add new name handling for Shelly RPC devices (#60539) 2021-11-29 16:16:49 +01:00
Michael
e3910856ad
Use native datetime value in Shelly sensors (#60179)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-11-23 08:18:58 -08:00
Shay Levy
6820faf5a0
Fix Shelly button type in roller mode (#57429) 2021-10-10 22:39:57 +03:00
Shay Levy
47340802b3
Add Shelly RPC device trigger and logbook platforms (#56428)
* Add RPC device trigger and logbook platforms

* Single input event for Block and RPC

* Add device generation to shelly.click
2021-09-21 00:09:44 +03: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
f1a88f0563
Add config flow support for RPC device (#56118) 2021-09-11 23:28:33 +03:00
Shay Levy
8c3c2ad8e3
Updated changes for aioshelly 1.0.0 (#56083) 2021-09-11 00:48:55 +03:00
Simone Chemelli
e9a00ad4ce
Add last reset to Shelly's energy entities (#53710) 2021-07-29 12:10:53 -07:00
Maciej Bieniek
772cbd59d7
Improve typing in Shelly integration (#52544) 2021-07-21 10:11:44 -07:00
Shay Levy
be73067f9c
Fix Shelly type hints (#50322) 2021-05-09 19:46:53 +02:00
Simone Chemelli
c85f70b639
Small code cleanup for Shelly (#50270) 2021-05-07 22:14:41 -05:00
Simone Chemelli
cf96d86985
Add yaml key to Shelly to allow CoAP port customization (#48729)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-05-07 13:23:29 -07:00
Shay Levy
34a588d1ba
Fix Shelly button first trigger (#49635) 2021-04-24 21:47:18 -07:00
Marc Mueller
a3cd1854f6
Update typing 12 (#48073) 2021-03-18 14:31:38 +01:00
Shay Levy
24db0ff956
Fix Shelly logbook exception when missing COAP (#47620) 2021-03-08 15:59:54 +01:00
CurrentThread
d5ee49cd4e
Add support for Shelly SHBTN-2 device triggers (#46644) 2021-02-26 11:52:47 +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
Shay Levy
5bc4db5ef9
Fix exception when last Shelly device is removed (#45476) 2021-01-27 08:15:56 -05: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
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
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
Shay Levy
ad06b6b340
Revert "shelly_naming" rebase errors (#43134) 2020-11-12 15:22:51 +01:00
Simone Chemelli
d8b067ebf9
Add Shelly support for REST sensors (#40429) 2020-11-11 20:13:14 +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
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