homebridge-dafang-mqtt-republish
Advanced tools
Comparing version 1.0.1 to 1.0.2
12
index.js
@@ -88,4 +88,4 @@ const mqtt = require('mqtt'); | ||
if (!camera.timer) { | ||
this.log.debug('Publishing MQTT Message - ' + this.homebridge_topic + ': ' + camera.name); | ||
client.publish(this.homebridge_topic, camera.name); | ||
this.log.debug('Publishing MQTT Message - ' + this.homebridge_topic + '/motion: ' + camera.name); | ||
client.publish(this.homebridge_topic + '/motion', camera.name); | ||
} else { | ||
@@ -103,4 +103,4 @@ this.log.debug('Motion set received, but cooldown running: ' + camera.name); | ||
if (!camera.motion) { | ||
this.log.debug('Publishing MQTT Message - ' + this.homebridge_topic + '/reset: ' + camera.name); | ||
client.publish(this.homebridge_topic + '/reset', camera.name); | ||
this.log.debug('Publishing MQTT Message - ' + this.homebridge_topic + '/motion/reset: ' + camera.name); | ||
client.publish(this.homebridge_topic + '/motion/reset', camera.name); | ||
} | ||
@@ -113,4 +113,4 @@ camera.timer = null; | ||
if (!camera.timer) { | ||
this.log.debug('Publishing MQTT Message - ' + this.homebridge_topic + '/reset: ' + camera.name); | ||
client.publish(this.homebridge_topic + '/reset', camera.name); | ||
this.log.debug('Publishing MQTT Message - ' + this.homebridge_topic + '/motion/reset: ' + camera.name); | ||
client.publish(this.homebridge_topic + '/motion/reset', camera.name); | ||
} else { | ||
@@ -117,0 +117,0 @@ this.log.debug('Motion clear received, but cooldown running: ' + camera.name); |
{ | ||
"displayName": "Homebridge Dafang MQTT Republish", | ||
"name": "homebridge-dafang-mqtt-republish", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Republishes MQTT Motion Messages from Dafang Hacks into a Format homebridge-camera-ffmpeg Understands", | ||
@@ -6,0 +6,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12942