forked from Chaospott/Heizberry
Added Wohnzimmer
This commit is contained in:
parent
1aa07e8ff2
commit
6f4f1ee9fd
@ -18,17 +18,15 @@ class Zimmer:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
zimmer = [Zimmer]
|
zimmer = [Zimmer, Zimmer]
|
||||||
zimmerName =["alexander"]
|
zimmerName =["alexander", "wohnzimmer"]
|
||||||
zimmerAutomatic = [0]
|
|
||||||
zimmerTemperaturSet = [0.0]
|
|
||||||
zimmerStatusActual = [0]
|
|
||||||
|
|
||||||
for i in range(len(zimmer)):
|
for i in range(len(zimmer)):
|
||||||
zimmer[i].name = zimmerName[i]
|
zimmer[i].name = zimmerName[i]
|
||||||
zimmer[i].automatic = zimmerAutomatic[i]
|
zimmer[i].automatic = 0
|
||||||
zimmer[i].temperaturSet = zimmerTemperaturSet[i]
|
zimmer[i].temperaturSet = 0.0
|
||||||
zimmer[i].statusActual = zimmerStatusActual[i]
|
zimmer[i].statusActual = 0
|
||||||
|
|
||||||
|
|
||||||
def on_connect(client, userdata, flags, rc):
|
def on_connect(client, userdata, flags, rc):
|
||||||
|
@ -16,9 +16,9 @@ class Zimmer:
|
|||||||
thermostat = None
|
thermostat = None
|
||||||
|
|
||||||
|
|
||||||
zimmer = [Zimmer]
|
zimmer = [Zimmer, Zimmer]
|
||||||
zimmerName = ["alexander"]
|
zimmerName = ["alexander", "wohnzimmer" ]
|
||||||
zimmerThermostat = [Thermostat('00:1A:22:16:4B:B4')]
|
zimmerThermostat = [Thermostat('00:1A:22:16:4B:B4'), Thermostat('00:1A:22:16:25:C3)]
|
||||||
|
|
||||||
for i in range(len(zimmer)):
|
for i in range(len(zimmer)):
|
||||||
zimmer[i].name = zimmerName[i]
|
zimmer[i].name = zimmerName[i]
|
||||||
|
Loading…
Reference in New Issue
Block a user