core/homeassistant/components/shelly
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
..
translations Add logbook and device trigger platforms to Shelly (#44020) 2021-01-04 23:10:42 +01:00
__init__.py Add logbook and device trigger platforms to Shelly (#44020) 2021-01-04 23:10:42 +01:00
binary_sensor.py
config_flow.py
const.py Add logbook and device trigger platforms to Shelly (#44020) 2021-01-04 23:10:42 +01:00
cover.py
device_trigger.py Add logbook and device trigger platforms to Shelly (#44020) 2021-01-04 23:10:42 +01:00
entity.py
light.py
logbook.py Add logbook and device trigger platforms to Shelly (#44020) 2021-01-04 23:10:42 +01:00
manifest.json
sensor.py
strings.json Add logbook and device trigger platforms to Shelly (#44020) 2021-01-04 23:10:42 +01:00
switch.py
utils.py Add logbook and device trigger platforms to Shelly (#44020) 2021-01-04 23:10:42 +01:00