Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add update_interval to bash expose sensor and binary_sensor #143

Merged
merged 1 commit into from
Jan 3, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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