Camera syntax config change after 0.46 upgrade to 0.52

I am not able to get my cameras to work now… i used to have 3 cameras but seems the format was changed… so tried the below with 1 camera and it wont work…

any help?

 
  platform amcrest: 
    - host: "10.10.1.223"
      password: !secret camera_password
      port: 9083
      username: !secret camera_user
      name: Living Room Camera 
      sensors:
        - motion_detector
        - sdcard
        - ptz_preset


platform: amcrest

instead of

platform amcrest:

thanks, after that Yaml didnt like the :'s i had so i updated the config to below:

  platform: amcrest
    - host 10.10.1.223
      password !secret camera_password
      port 9083
      username !secret camera_user
      name Living Room Camera
      sensors
        - motion_detector
        - sdcard
        - ptz_preset


no error after this… but i dont see a camera entitiy either…

any help on this ?

https://home-assistant.io/components/amcrest/ to see if any current settings apply.

thanks, but thats what i was trying to follow… and had the errors…

got this error today on a restart…

Aug 08 23:45:14 hassbian hass[10532]: ERROR:homeassistant.loader:Unable to find component camera.amcrest - host 10.10.1.223 password !secret camera_password port 9083 username !secret camera_user name Living Room Camera sensors - motion_detector - ptz_preset

Is this in your camera.yaml or configuration.yaml?

Are you sure you looked properly? Your changes don’t reflect that… try this.

amcrest: 
  - host: 10.10.1.223
    password: !secret camera_password
    port: 9083
    username: !secret camera_user
    name: Living Room Camera 
    sensors:
      - motion_detector
      - sdcard
      - ptz_preset