Hi folks: After eight straight hours of struggling to integrate multiple Amcrest cameras, I am throwing in the towel. I’ve read the documentation 20x times, followed the HA provided examples to the letter, checked the forums for similar problems - and followed the provided info, I’ve passed format checks using several YAML format tools…but I’m still caught in a loop: my YAML format fails pre-start check. HA says to do “X”… but when I do X…it then says don’t do “X”…rinse-repeat:
Here is the error message:
"Invalid config for 'amcrest' at configuration.yaml, line 26: contains duplicate items: ['GATE 2', 'EAST PATIO'] for dictionary value 'amcrest', got [{'host': '10.10.10.110', 'username': 'admin', 'name': 'GATE 1', 'password': 'password', 'binary_sensors': ['motion_detected', 'crossline_detected', 'online'], 'sensors': ['sdcard'], 'port': 554}, {'host': '10.10.10.111', 'username': 'admin', 'name': 'GATE 2', 'password': 'password', 'binary_sensors': ['motion_detected', 'crossline_detected', 'online'], 'sensors': ['sdcard'], 'port': 554}, {'host': '10.10.10.151', 'username': 'admin', 'name': 'GATE 3', 'password': 'password', 'binary_sensors'..."
Here is my yaml code (in configuration.yaml): **Note: the complete section contains 20 cameras, in the interest of brevity only the first six are listed —
Amcrest:
- host: 10.10.10.110
username: admin
name: GATE 1
password: password
binary_sensors:
- motion_detected
- crossline_detected
- online
sensors:
- sdcard
port: 554
- host: 10.10.10.111
username: admin
name: GATE 2
password: password
binary_sensors:
- motion_detected
- crossline_detected
- online
sensors:
- sdcard
port: 554
- host: 10.10.10.151
username: admin
name: GATE 3
password: password
binary_sensors:
- motion_detected
- crossline_detected
- online
sensors:
- sdcard
port: 554
- host: 10.10.10.102
name: GATE 2
username: admin
password: password
binary_sensors:
- motion_detected
- crossline_detected
- online
sensors:
- sdcard
port: 554 `Preformatted text`
type or paste code here
```amcrest:
- host: 10.10.10.110
username: admin
name: GATE 1
password: password
binary_sensors:
- motion_detected
- crossline_detected
- online
sensors:
- sdcard
port: 554
- host: 10.10.10.111
username: admin
name: GATE 2
password: password
binary_sensors:
- motion_detected
- crossline_detected
- online
sensors:
- sdcard
port: 554
- host: 10.10.10.151
username: admin
name: GATE 3
password: password
binary_sensors:
- motion_detected
- crossline_detected
- online
sensors:
- sdcard
port: 554
- host: 10.10.10.102
name: GATE 2
username: admin
password: password
binary_sensors:
- motion_detected
- crossline_detected
- online
sensors:
- sdcard
port: 554
Thanks in Advance for an and all helpfull assistance !