Skip to content

Commit

Permalink
Update community.md
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-codechimp authored Jan 18, 2024
1 parent fa96a03 commit 17aedde
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions docs/community.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
# Community Contributions

These are a few contributions by the community.
## Automation Tips

## Coming soon
To call the battery replaced service from an entity trigger you will need the device_id, here's an easy way to get this

```
action:
- service: battery_notes.set_battery_replaced
data:
device_id: "{{ device_id(trigger.entity_id) }}"
```

## Contributing

If you want to contribute then [fork the repository](https://github.com/andrew-codechimp/HA-Battery-Notes), edit this page which is in the docs folder and submit a pull request.

0 comments on commit 17aedde

Please sign in to comment.