Skip to content

Commit

Permalink
docs: add automation example to the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
SplinterHead committed Sep 27, 2024
1 parent 040abd9 commit 48b3f08
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,27 @@ The integration will create sensor entities for metrics that relate to your acco
### Button
The integration exposes a button for automating tasks:

- Opening the daily pot
- Opening the daily pot

## Example Config
#### Example 1: Automate opening the Lucky Pot at 11pm each day, if we've earned the minimum
```yaml
- id: '<generated>'
alias: Open Lucky Pot
description: Check when we are able to open the Honeygain Lucky Pot, and open it
trigger:
- platform: time_pattern
hours: '23'
minutes: '0'
seconds: '0'
condition:
- condition: numeric_state
entity_id: sensor.today_s_earnings
above: 0.015
action:
- service: button.press
data: {}
target:
entity_id: button.open_lucky_pot
mode: single
```

0 comments on commit 48b3f08

Please sign in to comment.