Skip to content

Commit

Permalink
Fixes for cli and mqtt
Browse files Browse the repository at this point in the history
  • Loading branch information
msinn committed Jan 2, 2018
1 parent 1f9f8fb commit 1e2920e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cli/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions mqtt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 1e2920e

Please sign in to comment.