+ log(fp, [vv_retur,vv_top,hetgas,str(compressor()[0])])
+ broker_address="monitor.tranquillity.se"
+ client = mqtt.Client("P1") #create new instance
+ client.connect(broker_address) #connect to broker
+ client.publish("heatpump/running",str(compressor()[0]), retain=True)#publish
+ client.publish("heatpump/toptemp",str(vv_top), retain=True)#publish
+ client.publish("heatpump/returntemp",str(vv_retur), retain=True)#publish
+ client.publish("heatpump/hottemp",str(hetgas), retain=True)#publish
+ running_g.set(compressor()[0])
+ top_g.set(vv_top)
+ return_g.set(vv_retur)
+ gas_g.set(hetgas)
+ if vv_top < 47: