From e9ef7ea4c67203e19824505027c122c44c53465f Mon Sep 17 00:00:00 2001 From: Jonathan Guillot Date: Thu, 11 Jun 2020 20:43:43 -0700 Subject: [PATCH] Added retain option in the MQTT section --- smartthings/README.md | 1 + smartthings/config.json | 7 ++++--- smartthings/template.yml | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/smartthings/README.md b/smartthings/README.md index 727947d..fa6152b 100644 --- a/smartthings/README.md +++ b/smartthings/README.md @@ -13,4 +13,5 @@ Everything is configurable through UI. Available params: | preface | Preface for topics | | state_suffix | State topics suffix | | command_suffix | Command topics suffix | +| retain | MQTT Retain flag option | | bridge_port | Port bridge listening on | diff --git a/smartthings/config.json b/smartthings/config.json index 3f1f409..9a8362a 100644 --- a/smartthings/config.json +++ b/smartthings/config.json @@ -17,8 +17,8 @@ "command_suffix": "cmd", "login": "login", "password": "password", - "bridge_port": 2080 - + "bridge_port": 2080, + "retain": false }, "schema": { "broker_host": "str", @@ -28,6 +28,7 @@ "command_suffix": "str", "login": "str", "password": "str", - "bridge_port": "int" + "bridge_port": "int", + "retain": "bool" } } diff --git a/smartthings/template.yml b/smartthings/template.yml index 4b9ec57..bf6235a 100644 --- a/smartthings/template.yml +++ b/smartthings/template.yml @@ -5,4 +5,5 @@ mqtt: command_suffix: {{command_suffix}} username: {{login}} password: {{password}} + retain: {{retain}} port: {{bridge_port}} \ No newline at end of file