Read the statement by Michael Teeuw here.
[MMM-MQTTbridge] A module to publish and receive MQTT messages
-
@Cr4z33 Hi and welcome back.
I still do not have a glue about the RTSP module.Can you please provide your RTSP config. I try to reproduce the problem but do not have much time to test at the moment.
-
@wishmaster270 here is the code of my RTSPStream module thanks. 🙂
I replaced my video doorbell RTSP stream with some testing live HTTPS camera one as I couldn’t find a working RTSP testing stream.
Take your time as long as it takes. 👍🏼
{ module: "MMM-RTSPStream", position: "middle_center", disabled: false, config: { autoStart: false, rotateStreams: true, rotateStreamTimeout: 10, moduleWidth: 500, moduleHeight: 281, localPlayer: 'vlc', moduleOffset: { left: -170, top: -125 }, remotePlayer: 'ffmpeg', showSnapWhenPaused: false, remoteSnaps: false, shutdownDelay: 12, stream1: { name: 'Videocitofono', url: 'https://99663300.hopto.org:19526/Jpeg/1?authToken=7f9c4ca8-e776-40c9-b242-6882b7b4775e&1727250645145', frameRate: 'undefined', width: 500, height: 281, muted: true, ffmpegPort: 9999, }, } },
-
@wishmaster270 after I left this project abandoned for almost 1 year I went back to it, but I still can’t get it to work. 🥲
To resume what I want to achieve is to have MMM-RTSPStream popping up a live doorbell video feed on my smart mirror whenever someone presses the button.
The interested MQTT line is
2025-04-16 10:30:07,536 INFO __main__ Publishing MQTT message DahuaVTO/Invite/Event: {'Action': 'Pulse', 'Code': 'Invite', 'Data': {'CallID': '2', 'IsEncryptedStream': False, 'LocaleTime': '2025-04-16 10:30:07', 'LockNum': 2, 'RealUTC': 1744792207, 'SupportPaas': False, 'TCPPort': 37777, 'UTC': 1744795807.0, 'UserID': '101'}, 'Index': 0, 'deviceType': 'DHI-VTO3311Q-WP', 'serialNumber': '********'}
I therefore edited my current mqttDictionary.js by adding
var mqttHook = [ { mqttTopic: "zigbee2mqtt/BTicino F20T60A", mqttPayload: [ { payloadValue: "", mqttNotiCmd: ["POWERMETER"], mqttPayload: "" }, ], }, { mqttTopic: "DahuaVTO/Invite/Event", mqttPayload: [ { jsonpath: "Action", conditions: [ { type: "eq", value: "Pulse" }, ], mqttNotiCmd: ["videocitofono"] }, ], }, ]; var mqttNotiCommands = [ { commandId: "POWERMETER", notiID: "POWERMETER_VALUES", }, { commandId: "videocitofono", notiID: "RTSP-PLAY", notiPayload: "stream1" }, ]; module.exports = { mqttHook, mqttNotiCommands};
I then edited in config.js the lines related to the MMM-RTSPStream module like this
{ module: "MMM-RTSPStream", position: "middle_center", disabled: false, config: { autoStart: false, rotateStreams: true, rotateStreamTimeout: 10, moduleWidth: 500, moduleHeight: 281, localPlayer: 'vlc', moduleOffset: { left: -170, top: -125 }, remotePlayer: 'ffmpeg', showSnapWhenPaused: false, remoteSnaps: false, shutdownDelay: 12, stream1: { name: 'Videocitofono', url: 'rtsp://username:password@ipaddress/cam/realmonitor?channel=1&subtype=1#backchannel=0', frameRate: 'undefined', width: 500, height: 281, muted: true, ffmpegPort: 9999, }, } },
Nothing happens when I press the doorbell button.
Maybe we need to add some more data to mqttDictionary.js?
-
@Cr4z33 Sorry, but I am very busy at the moment.
Did you find any response of the MQTT module in your logs of MagicMirror if you enable the debug option of it? -
@wishmaster270 hi and sorry for bothering you hehe.
No there’s actually no sign of doorbell button pressing looking at the logs.
All I can see is my BTicino power meter and that’s it…