Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working with a dynamic IP address on the AC #29

Open
dragonflyuk opened this issue Mar 28, 2019 · 4 comments
Open

Working with a dynamic IP address on the AC #29

dragonflyuk opened this issue Mar 28, 2019 · 4 comments

Comments

@dragonflyuk
Copy link

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?

@arthurkrupa
Copy link
Owner

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).

@arthurkrupa arthurkrupa changed the title Changing IP Address Working with a dynamic IP address on the AC Mar 28, 2019
@dragonflyuk
Copy link
Author

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

@dragonflyuk
Copy link
Author

dragonflyuk commented Apr 1, 2019

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

@aivus
Copy link

aivus commented Aug 8, 2019

Seems it's possible to send messages with broadcast according to
https://github.com/tomikaa87/gree-remote#remarks-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants