Initial Set-Up done

This commit is contained in:
2021-06-07 17:41:23 +02:00
parent c1e8b31910
commit 13641cedca
3 changed files with 43 additions and 5 deletions

View File

@@ -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...")