Closed ghallford closed 10 months ago
In the mog2:
section, the trigger_detector:
keys should be trigger_recorder:
trigger_detector
is no longer available as a config option for motion detectors.
It has been replaced by scan_on_motion_only
for the object detector
Thank you. Removing the trigger_detector from mog2 config worked.
Keep getting the following error on startup and won't start motion detection:
[2023-08-22 14:11:33] [ERROR ] [viseron.components] - Error validating config for component mog2: extra keys not allowed @ data['mog2']['motion_detector']['cameras']['dining_room']['trigger_detector']. Got True extra keys not allowed @ data['mog2']['motion_detector']['cameras']['kitchen']['trigger_detector']. Got True Traceback (most recent call last): File "/src/viseron/components/init.py", line 114, in validate_component_config return component_module.CONFIG_SCHEMA(self._config) # type: ignore File "/usr/local/lib/python3.8/dist-packages/voluptuous/schema_builder.py", line 272, in call return self._compiled([], data) File "/usr/local/lib/python3.8/dist-packages/voluptuous/schema_builder.py", line 594, in validate_dict return base_validate(path, iteritems(data), out) File "/usr/local/lib/python3.8/dist-packages/voluptuous/schema_builder.py", line 432, in validate_mapping raise er.MultipleInvalid(errors) voluptuous.error.MultipleInvalid: extra keys not allowed @ data['mog2']['motion_detector']['cameras']['kitchen']['trigger_detector'] [2023-08-22 14:11:33] [ERROR ] [viseron.components] - Setup of component mog2 failed [2023-08-22 14:11:33] [ERROR ] [viseron.components] - Failed setup of component mog2
Config: