In case someone didn’t know how to get the IP o the pump
from zeroconf import ServiceBrowser, Zeroconf
import ipaddress
class MyListener:
def remove_service(self, zeroconf, type, name):
print("Service %s removed" % (name,))
def add_service(self, zeroconf, type, name):
info = zeroconf.get_service_info(type, name)
ip = ipaddress.IPv4Address(info.address)
print("%s: Service %s added, service info: %s" % (ip, name, info))
zeroconf = Zeroconf()
listener = MyListener()
browser = ServiceBrowser(zeroconf, "_daikin._tcp.local.", listener)
try:
input("Press enter to exit...\n\n")
finally:
zeroconf.close()