Thanks for having replied
-
Why is it necessary to change the MQTT discovery prefix ? Does Viseron use a specific prefix for MQTT ?
-
What I do not understand is why I cannot see in Mosquitto Broker logs the IP address of Viseron (172.17.0.3)
-
The IP address of the MQTT broker is the same as my server (all containers are on the same sever) ?
-
I have tried to follow the MQTT discovery tutorial, but it unfortunately did not work for me (the test is stuck)
Viseron config.yaml
# See the README for the full list of configuration options.
cameras:
- name: Front Door
mqtt_name: viseron_front_door
host: !secret camera_ip
port: 554
username: !secret username
password: !secret password
path: //h264Preview_01_main
fps: 30
width: 2560
height: 1920
stream_format: rtsp
publish_image: true
motion_detection:
interval: 1
trigger_detector: false
# timeout: true
# max_timeout: 30
# width: 300
# height: 300
# area: 0.1
# frames: 3
object_detection:
interval: 1
labels:
- label: person
confidence: 0.8
- label: cat
confidence: 0.6
recorder:
lookback: 60
timeout: 120
retain: 365
folder: /recordings
thumbnail:
save_to_disk: true
send_to_mqtt: true
# MQTT is optional
mqtt:
broker: 192.168.10.2
port: 1883
username: XXX
password: XXX
logging:
level: debug
Viseron logs:
[2021-06-06 14:43:16] [root ] [INFO ] - -------------------------------------------,
[2021-06-06 14:43:16] [root ] [INFO ] - Initializing...,
[2021-06-06 14:43:16] [root ] [DEBUG ] - Starting cleanup scheduler,
[2021-06-06 14:43:16] [root ] [DEBUG ] - Running initial cleanup,
[2021-06-06 14:43:16] [lib.cleanup ] [DEBUG ] - Running cleanup,
[2021-06-06 14:43:16] [lib.cleanup ] [DEBUG ] - Items in /recordings/2021-06-04: 1,
[2021-06-06 14:43:16] [lib.cleanup ] [DEBUG ] - Items in /recordings/2021-06-05: 1,
[2021-06-06 14:43:16] [lib.cleanup ] [DEBUG ] - Items in /recordings/2021-05-31: 1,
[2021-06-06 14:43:16] [lib.cleanup ] [DEBUG ] - Items in /recordings/2021-06-06: 1,
[2021-06-06 14:43:16] [lib.mqtt ] [INFO ] - Initializing MQTT connection,
[2021-06-06 14:43:16] [lib.detector ] [DEBUG ] - Initializing object detector darknet,
[2021-06-06 14:43:16] [lib.detector ] [DEBUG ] - OpenCL activated,
[2021-06-06 14:43:16] [lib.detector ] [DEBUG ] - Object detector initialized,
[2021-06-06 14:43:16] [root ] [INFO ] - Initializing NVR threads,
[2021-06-06 14:43:16] [lib.nvr.front_door ] [DEBUG ] - Initializing NVR thread,
[2021-06-06 14:43:16] [lib.camera.front_door ] [DEBUG ] - Initializing camera Front Door,
[2021-06-06 14:43:16] [lib.camera.front_door ] [DEBUG ] - Getting stream information for rtsp://xxxx:[email protected]:554//h264Preview_01_main,
MQTT broker logs:
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.,
[s6-init] ensuring user provided files have correct perms...exited 0.,
[fix-attrs.d] applying ownership & permissions fixes...,
[fix-attrs.d] done.,
[cont-init.d] executing container initialization scripts...,
[cont-init.d] mosquitto.sh: executing... ,
[13:12:56] INFO: SSL is not enabled,
[cont-init.d] mosquitto.sh: exited 0.,
[cont-init.d] nginx.sh: executing... ,
[cont-init.d] nginx.sh: exited 0.,
[cont-init.d] done.,
[services.d] starting services,
[services.d] done.,
[13:12:57] INFO: Starting NGINX for authentication handling...,
[13:12:57] INFO: Starting mosquitto MQTT broker...,
1622977977: mosquitto version 1.6.12 starting,
1622977977: |-- *** auth-plug: startup,
[13:12:57] INFO: Successfully send discovery information to Home Assistant.,
[13:12:57] INFO: Successfully send service information to the Supervisor.,
1622977977: Config loaded from /etc/mosquitto/mosquitto.conf.,
1622977977: Loading plugin: /usr/share/mosquitto/auth-plug.so,
1622977977: ├── Username/password checking enabled.,
1622977977: ├── TLS-PSK checking enabled.,
1622977977: └── Extended authentication not enabled.,
1622977977: Opening ipv4 listen socket on port 1883.,
1622977977: Opening ipv6 listen socket on port 1883.,
1622977977: Opening websockets listen socket on port 1884.,
1622977977: Warning: Mosquitto should not be run as root/administrator.,
1622977977: mosquitto version 1.6.12 running,
1622977977: New connection from 127.0.0.1 on port 1883.,
1622977977: Socket error on client <unknown>, disconnecting.,
1622977983: New connection from 172.30.33.2 on port 1883.,
1622977983: New client connected from 172.30.33.2 as mosq-KhN02P1FYxJ093adpz (p2, c1, k60, u'addons').,
1622977983: Client mosq-KhN02P1FYxJ093adpz disconnected.,
1622977984: New connection from 172.30.33.2 on port 1883.,
1622977984: New client connected from 172.30.33.2 as mosq-3vb54eT5JHbOAbMU9J (p2, c1, k60, u'addons').,
1622977984: Client mosq-3vb54eT5JHbOAbMU9J disconnected.,
1622977984: New connection from 172.30.33.2 on port 1883.,
1622977984: New bridge connected from 172.30.33.2 as zwave (p2, c1, k60, u'addons').,
1622977990: New connection from 172.30.32.1 on port 1883.,
{"result": "ok", "data": {}}1622977990: New client connected from 172.30.32.1 as 4kFVBcF1f9c2xzPbl6UESR (p2, c1, k60, u'Matthieu').,
1622978016: New connection from 172.30.33.3 on port 1883.,
1622978016: New client connected from 172.30.33.3 as mqttjs_9829a5e9 (p2, c1, k60, u'addons').,
1622979778: Saving in-memory database to /data/mosquitto.db.,
1622981579: Saving in-memory database to /data/mosquitto.db.,
1622983299: New connection from 172.30.33.1 on port 1883.,
1622983299: New client connected from 172.30.33.1 as mosq-cRVebsMRVAl91oTcja (p2, c1, k60).,
1622983299: Client mosq-cRVebsMRVAl91oTcja disconnected.,
1622983363: New connection from 172.30.32.1 on port 1883.,
1622983363: New client connected from 172.30.32.1 as mosq-pdG4WLHei7q3cxsamc (p2, c1, k60).,