Simplifies tags
It should be limited to 15ish chars
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user