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

      Once again thank you @rkorell and @sdetweil for willing to help me!

      Unfortunately real life last minute serious event had to stop me to dedicate to this matter for a long while.

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

      Thank you again @rkorell and @sdetweil for your precious help, but I am at a point where I don’t have enough skill to generate the needed code lines.

      What comes afterwards (ie. stop the stream, etc.) is not what worries me hehe, but all I am able to do at today is how to install a module and give it a basic config.

      Having two modules to “talk” to each other is another matter and that’s where I start asking for help to people who know what they are doing (I am more a copy&paste or a tutorial follower guy). 😁

      Once again this is the RTSP URL:

      rtsp://username:password@ipaddress/cam/realmonitor?channel=1&subtype=1#backchannel=0
      

      and this is the MQTT button press line:

      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': '*******'}
      

      I tried creating a Home Assistant automation, but it’s probably wrong.

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

      @rkorell hi it’s a good question indeed.

      However too bad that I am not skilled enough to know the answer lol that’s why I am posting here asking for help! 😂

      Let’s see if @sdetweil or someone else can find out.

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

      @wishmaster270 thanks for spending some time on my issue although you’re busy.
      As sdetweil said he’s already helping me into this. 🙂

      @sdetweil my bad, my bad and again my bad! 😓

      I was going to tryout your method when I realized I actually never checked deeply what was outputting npm start… There’s A LOT of doorbell data being captured by MMM-MQTTbridge indeed! 🤦🏼

      You can see here the output.

      Can you see at this point (maybe) some additional data that needs to be added to mqttDictionary.js or do you still believe I should go your way (HA, automation, etc.)?

      While waiting for your kind reply I will play at trying your method. 😁

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

      @sdetweil hmm I want to give it a try tomorrow morning (GMT+2).

      Would you mind if I might contact you by PM just in case? 🥺

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

      @sdetweil and how would I get the broadcasting of the doorbell video feed?

      Custom coding?

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

      @sdetweil I see I wish I had the same skills to do ALL by myself lol!

      However I wonder if I am the only person in the world having a smart video doorbell and MagicMirror?

      I mean I haven’t found any universal solution to this in this forum, but just some modules for certain doorbell hardware like Ring, etc.

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

      @sdetweil said in Need help with MMM-MQTTbridge not "communicating" with MMM-RTSPStream:

      @Cr4z33 something is not sending the mqtt message

      bell -> ha automation -> mqtt -> mqttbridge -> rtsp…
      should work

      for me, this works

      alexa-> nodered -> mqtt > ha automation -> mqtt -> mirror_app -> screen off

      And you are using this MQTT module on the smart mirror or?

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

      @sdetweil said in Need help with MMM-MQTTbridge not "communicating" with MMM-RTSPStream:

      @Cr4z33 you could build an HA automation to send the MQTT message on button push

      But then again nothing would happen.

      I mean I’ve already DahuaVTO2MQTT in the middle and I used the right line taken from its console, but here we are. 😅

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

      @sdetweil hmmm I see.

      I wonder if there’s actually another way to see the doorbell stream when the button is pressed?

      There’s a button sensor entity for it in Home Assistant.

      posted in Troubleshooting
      Cr4z33C
      Cr4z33
    • 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 / 1