jheling / freeathome

Free@Home component for Home Assistant
114 stars 41 forks source link

Change IP address of free@home AP? #185

Open guerda opened 6 months ago

guerda commented 6 months ago

I have a new router and that's why my free@home AP got a new IP address. I cannot use the old IP address.

Is there an option to change the IP address in the free at home component? I have not found any option in the GUI. I would be ok to change files or entries in sqlite dbs. I understand from #176 that the IP is the unique identifier so I'm wondering if that's possible.

jheling commented 5 months ago

Hello, Maybe there is a way. In my home assistant installation there is a hidden directory named .storage. Here I see 3 files that contain information about the freeathome integration. core.config_entries, core.device_registry and core.entity_registry. Maybe you only have to change the host in the core.config_entities file

guerda commented 5 months ago

Thank you! I hadn't had the chance to reply here. I actually grepped all files and found it in two or three locations in the .storage folder. I replaced the IP and it works.

guerda commented 5 months ago

I replaced the IP in the following two files: