Simplifies tags

It should be limited to 15ish chars
This commit is contained in:
Edward Firmo
2025-08-05 11:36:09 +02:00
parent 243a18bdf2
commit 250b22562d
9 changed files with 141 additions and 158 deletions

View File

@@ -14,6 +14,8 @@
substitutions:
vibration_max_duration: 2s
TAG_STD_HW_VIBRATION: std.hw.vibration
binary_sensor:
- id: bs_vibrating
name: Vibrating
@@ -61,19 +63,17 @@ script:
- id: !extend dump_config
then:
- lambda: |-
static const char *TAG = "script.dump_config.standard.hw.vibration";
// Configuration
ESP_LOGCONFIG(TAG, "Touch - Vibration feedback: %s",
ESP_LOGCONFIG("${TAG_STD_HW_VIBRATION}", "Touch - Vibration feedback: %s",
sl_touch_vibration_feedback->state.c_str());
ESP_LOGCONFIG(TAG, "Vibrate duration: %.0fms", nr_vibrating_duration->state);
ESP_LOGCONFIG(TAG, "Vibrate max duration: ${vibration_max_duration}");
ESP_LOGCONFIG("${TAG_STD_HW_VIBRATION}", "Vibrate duration: %.0fms", nr_vibrating_duration->state);
ESP_LOGCONFIG("${TAG_STD_HW_VIBRATION}", "Vibrate max duration: ${vibration_max_duration}");
// State
if (bs_vibrating->state)
ESP_LOGW(TAG, "Vibrating now: YES");
ESP_LOGW("${TAG_STD_HW_VIBRATION}", "Vibrating now: YES");
else
ESP_LOGCONFIG(TAG, "Vibrating now: No");
ESP_LOGCONFIG("${TAG_STD_HW_VIBRATION}", "Vibrating now: No");
- id: !extend dump_config_list_packages
then: