MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. Cr4z33
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    Offline
    • Profile
    • Following 1
    • Followers 1
    • Topics 16
    • Posts 461
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Need help with MMM-MQTTbridge not "communicating" with MMM-RTSPStream

      @sdetweil I am not quite sure that I understood.

      Are you saying it’s a module’s bug or is it needed further coding I should add (somewhere)?

      posted in Troubleshooting
      Cr4z33C
      Cr4z33
    • RE: Need help with MMM-MQTTbridge not "communicating" with MMM-RTSPStream

      @sdetweil it’s OK mate and thanks for having tried to help me. :)

      Let’s hope someone can come up with a working solution soon.

      posted in Troubleshooting
      Cr4z33C
      Cr4z33
    • RE: Need help with MMM-MQTTbridge not "communicating" with MMM-RTSPStream

      @sdetweil sorry for being gone for so long time, but I’ve been out of town more than scheduled. 😅

      So back in topic… the typo for the MMM-RTSPStream config section was done in this forum post only.

      Where did you get all those warnings from?
      Looking at npm start output nothing like that was displayed (on my side).

      On the other hand I could see this when I launched that command with MQTTbridge log set to true:

      [29.04.2025 09:57.21.030] [LOG]   [MQTT bridge] Subscribed to the topic: DahuaVTO/Invite/Event
      

      So the module is somehow doing something, but then as I said nothing happens at button press.

      posted in Troubleshooting
      Cr4z33C
      Cr4z33
    • Need help with MMM-MQTTbridge not "communicating" with MMM-RTSPStream

      So long story short what I want to achieve is to show my video doorbell live feed for 15 seconds on my smart mirror whenever someone presses its button.

      Therefore I want to use MMM-MQTTbridge to detect the doorbell MQTT line with code

      2025-04-16 11:40:58,897 INFO __main__ Publishing MQTT message DahuaVTO/Invite/Event: {'Action': 'Pulse', 'Code': 'Invite', 'Data': {'CallID': '3', 'IsEncryptedStream': False, 'LocaleTime': '2025-04-16 11:40:58', 'LockNum': 2, 'RealUTC': 1744796458, 'SupportPaas': False, 'TCPPort': 37777, 'UTC': 1744800058.0, 'UserID': '101'}, 'Index': 0, 'deviceType': 'DHI-VTO3311Q-WP', 'serialNumber': '*******'}
      

      and send the RTSP-PLAY command to MMM-RTSPStream to play its video feed.

      This is the MMM-MQTTbridge config.js section:

      	{
      		module: 'MMM-MQTTbridge',
      		disabled: false,
      		config: {
      			mqttServer: "mqtt://:@ipaddress:port",
      			mqttConfig:
      			{
      				listenMqtt: true,
      				interval: 500,
      			},
      			notiConfig:
      			{
      				listenNoti: true,
      				ignoreNotiId: ["CLOCK_MINUTE", "NEWS_FEED"],
      				ignoreNotiSender: ["system", "NEWS_FEED"],
      			},
      			// set "NOTIFICATIONS -> MQTT" dictionary at /dict/notiDictionary.js
      			// set "MQTT -> NOTIFICATIONS" dictionary at /dict/mqttDictionary.js
      			},
      	}
      

      This is the MMM-RTSPStream config.js section:

      {
      
      module: "MMM-RTSPStream",
      
      position: "middle_center",
      
      disabled: true,
      
      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@doorbellip/cam/realmonitor?channel=1&subtype=1#backchannel=0',
      frameRate: 'undefined',
      width: 500,
      height: 281,
      muted: true,
      ffmpegPort: 9999,
      },
      }
      }
      

      And finally this is the content of mqttDictionary.js:

      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};
      

      Looking at MM and PM2 logs there’s neither a single trace of that MQTT line being detected nor the feed being playbacked.

      Perhaps someone of you skilled people can please help me? 🥺

      The author of MMM-MQTTbridge is busy at work and therefore cannot help.

      posted in Troubleshooting
      Cr4z33C
      Cr4z33
    • RE: [MMM-MQTTbridge] A module to publish and receive MQTT messages

      @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…

      PM2 Log

      posted in Utilities
      Cr4z33C
      Cr4z33
    • RE: [MMM-MQTTbridge] A module to publish and receive MQTT messages

      @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?

      posted in Utilities
      Cr4z33C
      Cr4z33
    • RE: Google Assistant

      @sdetweil oh now I see OK thanks.

      posted in Requests
      Cr4z33C
      Cr4z33
    • RE: Google Assistant

      @sdetweil what I meant was referring to the OP saying Google Assistant module doesn’t work anymore while I am actually running it fine.

      posted in Requests
      Cr4z33C
      Cr4z33
    • RE: Google Assistant

      @Johanba what do you mean?

      I use it everyday to voice control my bathroom smart mirror.

      posted in Requests
      Cr4z33C
      Cr4z33
    • MMM-GoogleAssistant and domotics?

      I am using the module made by Bugsounet and I noticed that I cannot control my domotics with it like normal Google devices like ie. the Nest Hub 2nd Gen, etc.

      Is there anything I need to edit or to add to be able to achieve it?

      posted in Troubleshooting
      Cr4z33C
      Cr4z33
    • 1
    • 2
    • 3
    • 4
    • 5
    • 46
    • 47
    • 2 / 47