Add information about an event platform for Shelly Gen2 devices (#28800)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
Maciej Bieniek 2023-09-21 16:29:21 +00:00 committed by GitHub
parent 9dff28371a
commit d8cf4bb7b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,6 +28,7 @@ ha_platforms:
- climate
- cover
- diagnostics
- event
- light
- number
- sensor
@ -121,6 +122,10 @@ Depending on how a device's button type is configured, the integration will crea
For generation 2 hardware it's possible to select if a device's input is connected to a button or a switch. Binary sensors are created only if the input mode is set to `switch`. When the input is of type `button` you need to use events for your automations.
## Event entities (generation 2)
If the **Input Mode** of the switch connected to the device is set to `Button`, the integration creates an event entity for this switch. You can use this entity in your automations.
## Events
If the **BUTTON TYPE** of the switch connected to the device is set to `momentary` or `detached switch`, integration fires events under the type `shelly.click` when the switch is used. You can use these events in your automations.