Open dragonflyuk opened 5 years ago
To use local domains/hostnames the AC's firmware has to broadcast it (which it doesn't) OR you'd need a local DNS server like dnsmasq (which still required the AC to have a static IP).
I'm not sure if you can set a static IP in the AC itself (but probably not).
If your router's DHCP doesn't support static IP to MAC binding, your only option is to run a custom DHCP server inside you network and point your router to use it (unless your router doesn't support this either).
That was my backup plan. Was thinking of setting up a pi as an router it will give me lots of other options as well. Just need to luck to see if I can do it with one ethernet port without adding too much bottleneck
I figured that setting up an additional router was overkill at this stage, so I setup the DCHP server on Hass.io and disabled the router DCHP. The damn AC units are ignoring the static allocations, and doing there own thing.
DHCPDISCOVER from f4:91:1e:48:22:04 via eth0 DHCPOFFER on 192.168.1.20 to f4:91:1e:48:22:04 via eth0 DHCPREQUEST for 192.168.1.80 (192.168.1.110) from f4:91:1e:48:22:04 via eth0: lease 192.168.1.80 unavailable. DHCPNAK on 192.168.1.80 to f4:91:1e:48:22:04 via eth0
I have set this unit the ip o 192.168.1.20 but insist on using it's own ip address each time. In this case 192.168.1.80 but over the last 12 hours it's used about 3 ips
Seems it's possible to send messages with broadcast according to https://github.com/tomikaa87/gree-remote#remarks-1
My router appears to change the IP address for the AC after a reboot, my problem is that the add-on uses the ip address to identify the aircon, rather than a hostname (not sure the ac units have one) or a mac addresss.
My router doesn't allow me to allocate static ip addresses, can anyone suggest a solution?