Initial Set-Up done
This commit is contained in:
@@ -23,7 +23,7 @@ class BSH:
|
||||
|
||||
#Mosquitto Settings
|
||||
client_name = "BSH_Mosquitto_Client"
|
||||
host_name = "192.168.178.36"
|
||||
host_name = "192.168.178.76"
|
||||
|
||||
session = requests.Session()
|
||||
AutomationRules = {}
|
||||
@@ -80,6 +80,7 @@ class BSH:
|
||||
#Sent MQTT Debugging Message
|
||||
def publishDebugMsg(self,msg):
|
||||
self.client.publish("bsh/debug",msg,0,True)
|
||||
print(msg)
|
||||
|
||||
#Get all BSH Decives
|
||||
def getDevices(self):
|
||||
@@ -165,7 +166,7 @@ class BSH:
|
||||
|
||||
#set up the system: login to MQTT + get all needed data from the BSH
|
||||
def __init__(self):
|
||||
self.client.connect(self.host_name)
|
||||
self.client.connect(self.host_name,1884)
|
||||
self.publishDebugMsg("Connecting to MQTT Server")
|
||||
self.publishDebugMsg("Setting up the Environment...")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user