Skip to content

Commit

Permalink
Inputs and configuration (#6)
Browse files Browse the repository at this point in the history
* Add possibility to change QoS and discovery prefix

* Add support for Shelly Plus i4

* Add device automation triggers

* Update docs
  • Loading branch information
bieniu authored Jan 25, 2022
1 parent dd658f6 commit 290b608
Show file tree
Hide file tree
Showing 2 changed files with 130 additions and 38 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ You can download `shellies_discovery_gen2.py` file and save it in `<config>/pyth

- Shelly Plus 1
- Shelly Plus 1PM
- Shelly Plus i4
- Shelly Pro 1
- Shelly Pro 1PM
- Shelly Pro 2
Expand Down Expand Up @@ -51,12 +52,20 @@ logger:
- the device name is taken from the device configuration
- the relay name is taken from the device configuration
- the relay consumption type is taken from the device configuration
- if the input type is set to button, device automation triggers are available
- custom MQTT prefixes are supported
## Known problems
- availability doesn’t work (firmware change is needed)
## Script arguments
key | optional | type | default | description
-- | -- | -- | -- | --
`discovery_prefix` | True | string | `homeassistant` | MQTT discovery prefix
`qos` | True | integer | `0` | MQTT QoS, you can use `0`, `1` or `2`

## Minimal configuration

```yaml
Expand Down
Loading

0 comments on commit 290b608

Please sign in to comment.