change heatingProfile topic
This commit is contained in:
parent
249344158c
commit
3ee82d9717
@ -55,7 +55,7 @@ def heating_profile(group):
|
|||||||
if profile.name != "":
|
if profile.name != "":
|
||||||
client.publish(topic + "/availability", "ON")
|
client.publish(topic + "/availability", "ON")
|
||||||
client.publish(topic + "/activeProfile", group.activeProfile.name)
|
client.publish(topic + "/activeProfile", group.activeProfile.name)
|
||||||
client.publish(topic + "/" + profile.index, profile.name)
|
client.publish(topic + "/heatingProfiles/" + profile.index, profile.name)
|
||||||
print(profile.index + ": " + profile.name)
|
print(profile.index + ": " + profile.name)
|
||||||
|
|
||||||
if profile.name == "Home Office":
|
if profile.name == "Home Office":
|
||||||
|
Loading…
Reference in New Issue
Block a user