I was trying to troubleshoot my issue with my Amcrest Cameras today, again, and came up with an error I have not seen before but that is due to the fact I decided to add the Amcrest IP Camera Sensor so I could pick up the motion detection and SD card usage. Anyway, I was using that as part of the troubleshooting just to see if I could get the crazy stuff to show up and saw the following error:
17-03-18 02:11:31 ERROR (MainThread) [homeassistant.bootstrap] Invalid config for [sensor.amcrest]: expected int for dictionary value @ data['scan_interval']. Got datetime.timedelta(0, 10). (See ?, line ?). Please check the docs at https://home-assistant.io/components/sensor.amcrest/
Now, the documentation says the default scan interval is 10 seconds but I have always been taught with respect to writing code or configurations for that matter, to set things explicitly rather than relying on the defaults where possible. So I added the scan_interval setting and set it to the default.
It ‘appears’ to be pointing to the integer value, so I assume it does not like the default value being explicitly set? Or is there something else going on.