mirror of
https://github.com/outbackdingo/onvif2mqtt.git
synced 2026-01-27 10:19:48 +00:00
VideoSource name error
This commit is contained in:
@@ -76,7 +76,7 @@ export default class Manager {
|
||||
/* Event Callbacks */
|
||||
onMotionDetected = debounceStateUpdate((onvifDeviceId, motionState) => {
|
||||
const topicKey = 'motion';
|
||||
const boolMotionState = motionState.IsMotion;
|
||||
const boolMotionState = motionState.IsMotion !== undefined ? motionState.IsMotion : motionState.State;
|
||||
|
||||
this.publishTemplates(onvifDeviceId, topicKey, boolMotionState);
|
||||
this.publisher.publish(onvifDeviceId, topicKey, convertBooleanToSensorState(boolMotionState));
|
||||
|
||||
@@ -12,7 +12,7 @@ export const CALLBACK_TYPES = {
|
||||
const EVENTS = {
|
||||
'RuleEngine/CellMotionDetector/Motion': CALLBACK_TYPES.motion,
|
||||
'RuleEngine/CellMotionDetector/Motion//.': CALLBACK_TYPES.motion,
|
||||
'VideoSoure/MotionAlarm': CALLBACK_TYPES.motion
|
||||
'VideoSource/MotionAlarm': CALLBACK_TYPES.motion
|
||||
};
|
||||
|
||||
const DEFAULT_CALLBACKS = {
|
||||
|
||||
Reference in New Issue
Block a user