From 1e2920ecff0cfa825ba737486a0a79156e3151da Mon Sep 17 00:00:00 2001 From: msinn Date: Tue, 2 Jan 2018 21:03:08 +0100 Subject: [PATCH] Fixes for cli and mqtt --- cli/plugin.yaml | 2 +- mqtt/__init__.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/plugin.yaml b/cli/plugin.yaml index 93b90f33f..dc28cfb6f 100755 --- a/cli/plugin.yaml +++ b/cli/plugin.yaml @@ -34,7 +34,7 @@ parameters: en: 'used network interface, e.g. 127.0.0.1 (localhost) or listen on all network interfaces: 0.0.0.0' port: - type: num + type: int default: 2323 description: de: 'Netzwerk Port der für die Verbindung genutzt wird' diff --git a/mqtt/__init__.py b/mqtt/__init__.py index 48776db45..6de419926 100644 --- a/mqtt/__init__.py +++ b/mqtt/__init__.py @@ -55,7 +55,7 @@ class Mqtt(SmartPlugin): ALLOW_MULTIINSTANCE = True - PLUGIN_VERSION = "1.3c.4" + PLUGIN_VERSION = "1.4.4" __plugif_CallbackTopics = {} # for plugin interface __plugif_Sub = None @@ -437,7 +437,7 @@ def on_mqtt_message(self, client, userdata, message): item = self.topics.get(message.topic, None) if item != None: payload = self.cast_mqtt(item.type(), message.payload) - self.logger.warning(self.get_loginstance()+"Received topic '{}', payload '{}' (type {}), QoS '{}', retain '{}' for item '{}'".format( message.topic, str(payload), item.type(), str(message.qos), str(message.retain), str(item.id()) )) + self.logger.info(self.get_loginstance()+"Received topic '{}', payload '{}' (type {}), QoS '{}', retain '{}' for item '{}'".format( message.topic, str(payload), item.type(), str(message.qos), str(message.retain), str(item.id()) )) item(payload, 'MQTT') logic = self.logictopics.get(message.topic, None) if logic != None: