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