From 604b4145055f1c0313ceeae2d1900c7b0252b992 Mon Sep 17 00:00:00 2001 From: jeremysherriff Date: Fri, 3 Jan 2025 20:53:20 +1300 Subject: [PATCH] Add update_interval to bash expose sensor and binary_sensor --- modules-settings.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules-settings.md b/modules-settings.md index f5b3504..24c664f 100644 --- a/modules-settings.md +++ b/modules-settings.md @@ -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: @@ -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\]"