Writing this guide as I had quite a bit of buyer’s remorse when I learnt that the amcrest ASH-21 wouldn’t work with the amcrest integration that I have been using for my other cameras. Instead for a couple of bucks more, the IP2M841 would have been a better deal.
This camera has no http interface, and would only give an RTSP feed following amcrest’s documentation to configure it for blueiris.
Having given up before, a recent urgent use-case got me trying to figure out a solution again.
Here’s how to got it to work with HA and also for Homekit
Note that if you configure HomeKit to use this camera entity only from the UI, the Home app will fail to open the stream. Therefore for it to work you need to follow through (2).
(1) Create the generic camera entry
configuration.yaml
camera:
- platform: generic
stream_source: "rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=0&authbasic=64"
name: "LivingRoom"
(2) Create the manual HomeKit entry - in my case I have HomeKit.yaml
- name: Livingroomcam
port: 21081
mode: accessory
filter:
include_entities:
- camera.livingroom
entity_config:
camera.livingroom:
name: Living Room
video_codec: copy
support_audio: True
stream_source: "-re -rtsp_transport tcp -i rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=0&authbasic=64"
max_fps: 30
max_width: 1920
max_height: 1080