reformat code
This commit is contained in:
parent
5118791779
commit
249344158c
@ -8,7 +8,7 @@ import paho.mqtt.client as paho
|
||||
# MQTT credentials
|
||||
# mqtt_username = 'homeassistant' # MQTT client username
|
||||
# mqtt_password = '3355' # MQTT client password
|
||||
client_id = 'homematicip-pi' # unique client_id
|
||||
client_id = 'homematicip-pi' # unique client_id
|
||||
mqtt_broker = "raspberrypi" # broker address, usually your HASS IP address
|
||||
|
||||
# create the MQTT client
|
||||
@ -59,8 +59,8 @@ def heating_profile(group):
|
||||
print(profile.index + ": " + profile.name)
|
||||
|
||||
if profile.name == "Home Office":
|
||||
#print("Profile Index" + profile.index)
|
||||
#print(group)
|
||||
# print("Profile Index" + profile.index)
|
||||
# print(group)
|
||||
group.set_active_profile(profile.index)
|
||||
|
||||
|
||||
@ -68,7 +68,7 @@ def main():
|
||||
global home
|
||||
home.get_current_state()
|
||||
for group in home.groups:
|
||||
if group.groupType=="HEATING":
|
||||
if group.groupType == "HEATING":
|
||||
heating_profile(group)
|
||||
if group.groupType == "META":
|
||||
for device in group.devices:
|
||||
|
Loading…
Reference in New Issue
Block a user