Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

Dafang Hacked camera MQTT not updating. Any help?

$
0
0

@VGE wrote:

Hi guys,

I have the same problem. Im using Hass.io with the Mosquitto Broker Add-on. I have the Dafang hack working an i can reach and use the RTSP stream.

I edited /system/sdcard/config/mqtt.conf

And put in my information:

# Options for mosquitto_sub & mosquitto_pub
USER=USER1234
PASS=PW1234
HOST=192.168.1.125
PORT=1883

# Define a location
LOCATION="myhome"

# Define device name
DEVICE_NAME="dafang_cam_1"

# Define the base topic used by the camera
# send a message to myhome/dafang/set with the payload help for help.
# Results will be placed in myhome/dafang/${command} or topic/dafang/error - so please subscribe topic/d
TOPIC="$LOCATION/$DEVICE_NAME"

When i look in the Add-on logs i see the following:

1580413963: Client mosqpub|7223-DAFANG_CAM disconnected.
1580413963: New connection from 192.168.1.181 on port 1883.
1580413963: New client connected from 192.168.1.181 as mosqpub|7228-DAFANG_CAM (p1, c1, k60, u'Mosquitto').
1580413963: Client mosqpub|7228-DAFANG_CAM disconnected.
1580413964: New connection from 192.168.1.181 on port 1883.
1580413964: New client connected from 192.168.1.181 as mosqpub|7236-DAFANG_CAM (p1, c1, k60, u'Mosquitto').
1580413964: Client mosqpub|7236-DAFANG_CAM disconnected.
1580413964: New connection from 192.168.1.181 on port 1883.
1580413964: New client connected from 192.168.1.181 as mosqpub|7244-DAFANG_CAM (p1, c1, k60, u'Mosquitto').
1580413964: Client mosqpub|7244-DAFANG_CAM disconnected.
1580413965: New connection from 192.168.1.181 on port 1883.
1580413965: New client connected from 192.168.1.181 as mosqpub|7276-DAFANG_CAM (p1, c1, k60, u'Mosquitto').
1580413965: Client mosqpub|7276-DAFANG_CAM disconnected.

Mosquitto add-on config:

{
  "logins": [
    {
      "username": "USER1234",
      "password": "PW1234"
    }
  ],
  "anonymous": true,
  "customize": {
    "active": false,
    "folder": "mosquitto"
  },
  "certfile": "fullchain.pem",
  "keyfile": "privkey.pem",
  "require_certificate": false,
  "quiet_logs": true
}

I got one time discovery of the MQTT entities but now there not updating anymore or reacting to input. I restarted HA and the camera, and tried to stop/start the MQTT services on the camera but no succes.

Any help?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>