Skip to content

Commit

Permalink
Merge pull request #143 from jeremysherriff/gh-pages
Browse files Browse the repository at this point in the history
Add update_interval to bash expose sensor and binary_sensor
  • Loading branch information
bkbilly authored Jan 3, 2025
2 parents c016e34 + 604b414 commit 9182828
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules-settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ settings:

## Bash

Using this option you can create `sensors`, `binary_sensors`, `buttons` or `switches` that run custom commands. These options are optional: unit, entity\_category.
Using this option you can create `sensors`, `binary_sensors`, `buttons` or `switches` that run custom commands. These options are optional: unit, entity\_category, update_interval.

```yaml
settings:
Expand All @@ -108,9 +108,11 @@ settings:
command: cat /proc/loadavg | awk '{print $1}'
unit: load
entity_category: diagnostic
update_interval: 60
- name: WiFi Exists
type: binary_sensor
command: ip a | grep wlan0
update_interval: 300
- name: Microphone Mute
type: switch
command: amixer get Capture | grep "\[off\]"
Expand Down

0 comments on commit 9182828

Please sign in to comment.