Browse Source

Added Wohnzimmer

master
lukario 6 months ago
parent
commit
6f4f1ee9fd
2 changed files with 9 additions and 11 deletions
  1. +6
    -8
      heizberry_control.py
  2. +3
    -3
      heizberry_io.py

+ 6
- 8
heizberry_control.py View File

@ -18,17 +18,15 @@ class Zimmer:
zimmer = [Zimmer]
zimmerName =["alexander"]
zimmerAutomatic = [0]
zimmerTemperaturSet = [0.0]
zimmerStatusActual = [0]
zimmer = [Zimmer, Zimmer]
zimmerName =["alexander", "wohnzimmer"]
for i in range(len(zimmer)):
zimmer[i].name = zimmerName[i]
zimmer[i].automatic = zimmerAutomatic[i]
zimmer[i].temperaturSet = zimmerTemperaturSet[i]
zimmer[i].statusActual = zimmerStatusActual[i]
zimmer[i].automatic = 0
zimmer[i].temperaturSet = 0.0
zimmer[i].statusActual = 0
def on_connect(client, userdata, flags, rc):


+ 3
- 3
heizberry_io.py View File

@ -16,9 +16,9 @@ class Zimmer:
thermostat = None
zimmer = [Zimmer]
zimmerName = ["alexander"]
zimmerThermostat = [Thermostat('00:1A:22:16:4B:B4')]
zimmer = [Zimmer, Zimmer]
zimmerName = ["alexander", "wohnzimmer" ]
zimmerThermostat = [Thermostat('00:1A:22:16:4B:B4'), Thermostat('00:1A:22:16:25:C3)]
for i in range(len(zimmer)):
zimmer[i].name = zimmerName[i]


Loading…
Cancel
Save