hass-core/homeassistant
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
..
auth Add option to deactivate a user (#43463) 2020-11-27 09:13:16 +01:00
components Add logbook and device trigger platforms to Shelly (#44020) 2021-01-04 23:10:42 +01:00
generated Add Ondilo ico integration (#44728) 2021-01-04 08:09:01 -08:00
helpers Fix script wait templates with now/utcnow (#44717) 2021-01-01 13:03:34 +01:00
scripts Upgrade colorlog to 4.6.2 (#44652) 2020-12-30 17:12:51 +01:00
util Add more debug details to running timeouts (#43644) 2021-01-04 13:10:39 +01:00
__init__.py
__main__.py Upgrade isort to 5.4.2 (#37939) 2020-08-29 08:23:55 +02:00
block_async_io.py Various type hint improvements (#37952) 2020-07-22 08:06:37 -07:00
bootstrap.py Add more debug details to running timeouts (#43644) 2021-01-04 13:10:39 +01:00
config.py Add link to log view in persistent notification (#42060) 2020-10-21 12:09:45 -05:00
config_entries.py Use singleton enum for "not set" sentinels (#41990) 2020-12-19 12:46:27 +01:00
const.py Drop Python 3.7 support (#43805) 2021-01-01 13:47:01 +01:00
core.py Drop remaining Python < 3.8 support (#44743) 2021-01-04 11:47:29 +01:00
data_entry_flow.py Add data entry flow show progress step (#42419) 2020-11-09 18:39:28 +01:00
exceptions.py Correct service not found exception message (#43846) 2020-12-02 10:32:25 +01:00
loader.py Use singleton enum for "not set" sentinels (#41990) 2020-12-19 12:46:27 +01:00
package_constraints.txt Fix zeroconf outgoing dns compression corruption for large packets (#44828) 2021-01-04 21:18:54 +01:00
requirements.py Use singleton enum for "not set" sentinels (#41990) 2020-12-19 12:46:27 +01:00
runner.py Drop remaining Python < 3.8 support (#44743) 2021-01-04 11:47:29 +01:00
setup.py Use dict syntax (#41325) 2020-10-06 15:02:23 +02:00
strings.json Add unknown_authorize_url_generation to base strings for config flows (#42484) 2020-11-24 12:00:16 -05:00