So I have an Amcrest IP8M-2496EW-V2. I am trying to figure out where to find it’s IP address. Any advice? I’m new to cameras with HA. I followed these instructions.
This is a wifi device?
The way to find its IP address is probably to look at the DHCP client table in your DHCP server (which is probably contained within with your router, wifi access point, cable modem, or whatever you’ve got) and guess which of the clients is the new widget whose IP address you want to know. Then if you want it to keep the same IP address always, rather than have itchange every now and then, you’ll have to set the DHCP server to always serve that IP address to that device (identified by the MAC address).
How you do all this depends on which network component your DHCP server lives in.
This is all LAN management stuff and is nothing to do with HA or cameras.
So I set the IP for the camera in the client table. I looked at the HA logs and found this. I see the login error, but I can’t tell what part of the login is the problem.
2023-11-10 08:53:40.115 ERROR (Amcrest Amcrest Camera) [homeassistant.components.amcrest] Amcrest Camera camera offline: Login error:
2023-11-10 08:53:40.115 WARNING (Amcrest Amcrest Camera) [homeassistant.components.amcrest] Error while processing events from Amcrest Camera camera: LoginError()
2023-11-10 08:53:40.232 ERROR (MainThread) [homeassistant.components.camera] Error while setting up amcrest platform for camera
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/amcrest/http.py", line 188, in _async_generate_token
resp = (await self._async_command(cmd)).content.decode()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/amcrest/http.py", line 388, in _async_command
raise LoginError()
amcrest.exceptions.LoginError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 359, in _async_setup_platform
await asyncio.shield(task)
File "/usr/src/homeassistant/homeassistant/components/amcrest/camera.py", line 146, in async_setup_platform
serial_number = await device.api.async_serial_number
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/amcrest/system.py", line 134, in async_serial_number
return pretty(await self._async_magic_box("getSerialNo"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/amcrest/http.py", line 511, in _async_magic_box
ret = await self.async_command(f"magicBox.cgi?action={action}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/amcrest/__init__.py", line 205, in async_command
ret = await super().async_command(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/amcrest/http.py", line 261, in async_command
await self._async_generate_token()
File "/usr/local/lib/python3.11/site-packages/amcrest/http.py", line 194, in _async_generate_token
resp = (await self._async_command(cmd)).content.decode()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/amcrest/http.py", line 388, in _async_command
raise LoginError()
amcrest.exceptions.LoginError
2023-11-10 08:53:55.686 ERROR (MainThread) [homeassistant.components.homekit] HomeKit HASS Bridge I1 cannot startup: entity not available: {'include_domains': [], 'exclude_domains': [], 'include_entities': ['script.movie_mode'], 'exclude_entities': [], 'include_entity_globs': [], 'exclude_entity_globs': []}
2023-11-10 08:58:40.839 ERROR (MainThread) [homeassistant.components.amcrest] Amcrest Camera camera back online
Another option is a program, called “advanced ip scanner” (or advanced port scanner). It will scan your entire network, then you can see IP of your camera.
And set it to manual, otherwise you’ll have problems (sooner or later…). All your devices which are connected to HA must have manual IP if possible, if not then make a reservation in your router. If router changes IP of a device usually it’s not visible anymore in HA.
I use Fing to find IP addresses on my network.
App available for android and iOS.