From 3a49f62c6ba92a5accceeb97dbd61fe99040ed6f Mon Sep 17 00:00:00 2001 From: kygr Date: Sun, 3 Dec 2023 12:42:03 +0100 Subject: [PATCH] feat(mqtt): Let the user decide if mqtt commands should return logs --- README.md | 1 + defaults/main.yml | 1 + tasks/main.yml | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1407bad..28eab4b 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,7 @@ Available variables are listed below, along with their default values: tasmota_mqtt_client: '' tasmota_mqtt_topic: '' tasmota_mqtt_fulltopic: '' + tasmota_mqtt_no_log: true If tasmota_user and tasmota password are both non-empty, they will be included in the commands to authenticate access. diff --git a/defaults/main.yml b/defaults/main.yml index 6ee70e9..139ce3c 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -10,6 +10,7 @@ tasmota_mqtt_port: '' tasmota_mqtt_client: '' tasmota_mqtt_topic: '' tasmota_mqtt_fulltopic: '' +tasmota_mqtt_no_log: true tasmota_commands: [] # examples: diff --git a/tasks/main.yml b/tasks/main.yml index aa2e835..55894b9 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -21,4 +21,4 @@ (tasmota_mqtt_user + tasmota_mqtt_password + tasmota_mqtt_host + tasmota_mqtt_port + tasmota_mqtt_client + tasmota_mqtt_topic + tasmota_mqtt_fulltopic) | length > 0 - no_log: true + no_log: "{{ tasmota_mqtt_no_log }}"