roleoroleo / yi-hack_ha_integration

Home Assistant custom integration for Yi cameras: yi-hack-MStar, yi-hack-Allwinner, yi-hack-Allwinner-v2, yi-hack-v5 and sonoff-hack
GNU General Public License v3.0
218 stars 32 forks source link

Change the camera IP in the configuration #78

Closed isbkch closed 5 months ago

isbkch commented 2 years ago

My system rebooted and my camera IP changed even though it was reserved... Anyway, I'm wondering how can I change the camera IP without having to reinstall it again (and loose all my preconfigured automations)

roleoroleo commented 2 years ago

I should implement a service discovery protocol in the cam. But it isn't a simple task. Are you able to set a dhcp reservation with your router?

isbkch commented 2 years ago

Yes, I am, it's just that sometimes when the power goes out, even my reserved addresses get reset, probably a bug with my router or something. I was just wondering where can I change the IP of an already set up camera, a file? a line in DB? I would lose all my automation if I had to delete the old camera and add it from scratch

roleoroleo commented 2 years ago

Probably core files in the .storage directory. But it's not safe to edit them manually.

alexfranke commented 2 years ago

Yeah, config.storage\core.config_entries is where I changed the IP addresses of a few cameras after I moved them to a different vlan. (It seems to work fine with a manual change.) I also couldn't find a mechanism to update the IP address after initially adding them. Did you get this working, @isbkch ?

github-actions[bot] commented 6 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.