can anyone assist in solving the following error please:
2020-11-18 21:51:24.759890 INFO DahuaMQTT: Starting thread
2020-11-18 21:51:24.766634 WARNING dahua_mqtt: ------------------------------------------------------------
2020-11-18 21:51:24.767871 WARNING dahua_mqtt: Unexpected error running initialize() for dahua_mqtt
2020-11-18 21:51:24.768463 WARNING dahua_mqtt: ------------------------------------------------------------
2020-11-18 21:51:24.771452 WARNING dahua_mqtt: Traceback (most recent call last):
File “/usr/lib/python3.8/site-packages/appdaemon/app_management.py”, line 150, in initialize_app
await utils.run_in_executor(self, init)
File “/usr/lib/python3.8/site-packages/appdaemon/utils.py”, line 290, in run_in_executor
response = future.result()
File “/usr/lib/python3.8/concurrent/futures/thread.py”, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File “/config/appdaemon/apps/dahua_mqtt.py”, line 66, in initialize
for camera in self.args[“cameras”]:
KeyError: ‘cameras’
2020-11-18 21:51:24.772203 WARNING dahua_mqtt: ------------------------------------------------------------
2020-11-18 21:51:24.776470 INFO AppDaemon: App initialization complete
running AppDaemon 4
Current version: 0.3.1
configuration:
system_packages:
- ffmpeg
- musl
- libcurl
- python3
- python3-dev
- libcrypto1.1
- libssl1.1
- curl-dev
- gcc
- g++
python_packages:
- hass-apps
- pip==20.1.1
- pycurl
init_commands: []
disable_auto_token: false
log_level: info
apps.yaml
hello_world:
module: hello
class: HelloWorld
DahuaMQTT:
class: DahuaMQTT
module: dahua_mqtt
cameras:
- host: 192.168.1.46
port: 80
user: admin
pass: x
topic: cameras/1
retain: true
events: VideoMotion
dahua_mqtt:
class: DahuaMQTT
module: dahua_mqtt