• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-MQTTbridge

Scheduled Pinned Locked Moved Unsolved System
44 Posts 14 Posters 11.8k Views 15 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    KSumwalt
    last edited by Aug 21, 2020, 4:28 AM

    Hello,

    I installed the module on Aug 18, 2020 and have it connecting to my broker. Either I have something off or the module always sends out the notification’s payload and I cannot over-ride such. My notiDictionary.js file looks like this:

    
    var notiHook = [
      {
        notiId: "USERS_LOGIN",
        notiPayload: [
          {
            payloadValue: '', 
            notiMqttCmd: ["Command 1"]
          },
        ],
      },
      {
        notiId: "SHOW_ALERT",
        notiPayload: [
          {
            payloadValue: '', 
            notiMqttCmd: ["Command 2"]
          },
        ],
      },
      {
        notiId: "NEWS_FEED",
        notiPayload: [
          {
            payloadValue: '', 
            notiMqttCmd: ["Command 3"]
          },
        ],
      },
    ];
    var notiMqttCommands = [
      {
        commandId: "Command 1",
        mqttTopic: "mirror/profile",
        mqttMsgPayload: 'george'
     //    mqttMsgPayload: '{state:"OFF"}'
      },
      {
        commandId: "Command 2",
        mqttTopic: "mirror/alert/set",
        mqttMsgPayload: 'on'
      },
      {
        commandId: "Command 3",
        mqttTopic: "mirror/alert/test",
        mqttMsgPayload: 'go'
      },
    ];
    
    module.exports = { notiHook, notiMqttCommands };
    
    

    When an alert is shown, the SHOW_ALERT send an MQTT Topic of mirror/alert/set but the payload according to MQTT Snooper and my HomeSeer system is [object Object]. I expected it to be a string of on. NEWS_FEED does noth8ing, as expected from the config. USERS_LOGIN is from the MMM-Face-Reco-DNN module. It has a string value of the person who’s face it recognizes. When it recognizes me, the payload for the MQTT topic is Karl both when I have no value and when I have George in the payload setting as shown above.

    This is how I have the module configured in the config.js file:

    		{
    			module: 'MMM-MQTTbridge',
    //			disabled: false,
    			config: {
    				mqttServer: "mqtt://192.168.1.2:1883",
    				mqttConfig:
    				{
    					listenMqtt: true,
    					interval: 300000,
    				},
    				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
    			},
    		},
    
    

    What might I be doing wrong?

    Note that for an IP address and no username/password I had to set the server to mqttServer: “mqtt://192.168.1.2:1883”, dropping the colon (:) prior to the IP address. I had it in there based on the provided settings for the localhost version.

    S 3 Replies Last reply Sep 3, 2020, 3:53 PM Reply Quote 0
    • S Offline
      Serge @KSumwalt
      last edited by Serge Sep 3, 2020, 4:15 PM Sep 3, 2020, 3:53 PM

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • M Offline
        Mrtrol2013
        last edited by Oct 5, 2020, 10:34 AM

        Can I use this module to manage MMM-pages?

        1 Reply Last reply Reply Quote 0
        • S Offline
          Serge @KSumwalt
          last edited by Oct 10, 2020, 8:46 PM

          @KSumwalt

          the module is working. try to reinstall it and check the configuration once more.
          Here is the community member says that he uses module perfectly https://forum.magicmirror.builders/topic/13726/mmm-ledstripcontrol-control-a-led-strip-with-optional-pong-game-support

          @Mrtrol2013 said in MMM-MQTTbridge:

          Can I use this module to manage MMM-pages?

          Yes.

          See

          • that part of MMM-pages’s readme here https://github.com/edward-shen/MMM-pages#regarding-notifications and

          • that part of MMM-MQTTbridge’s readme here https://github.com/sergge1/MMM-MQTTbridge#mqtt-to-notifications-dictionary-section

          1 Reply Last reply Reply Quote 0
          • S Offline
            Serge @KSumwalt
            last edited by Oct 10, 2020, 8:52 PM

            @KSumwalt please update the module and try once more. If the problem will exist, send here your logs

            1 Reply Last reply Reply Quote 0
            • F Offline
              fribse
              last edited by fribse Oct 11, 2020, 3:29 PM Oct 11, 2020, 1:40 PM

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • C Offline
                Cr4z33
                last edited by Sep 26, 2022, 8:43 AM

                I’ve got a BTicino F20T60A power consumption meter connected by MQTT so can someone please help me to show power usage only on MagicMirror by using this MM module?

                Feel free to ask me MQTT / Home Assistant details to provide (as I don’t know right now what you need 😅)!

                W 1 Reply Last reply Sep 26, 2022, 8:15 PM Reply Quote 0
                • W Offline
                  wishmaster270 Module Developer @Cr4z33
                  last edited by wishmaster270 Sep 26, 2022, 8:17 PM Sep 26, 2022, 8:15 PM

                  @Cr4z33 Hi, I am working on a module which will be called MMM-ValuesByNotification (https://github.com/Tom-Hirschberger/MMM-ValuesByNotification) and will perfectly fit your needs.
                  If the payload of the notification is a valid json string the values can be selected with the JsonPath syntax.

                  If needed the values can be reformatted.

                  I am using it to display the temperature and humidity of different sensors in my house and the level of my watertank.

                  Screenshot

                  The module is functional already but not documented yet. The configuration can be a little bit tricky but I am planning to add a lot of examples to the readme in the next weeks.

                  C 1 Reply Last reply Sep 27, 2022, 7:20 AM Reply Quote 2
                  • C Offline
                    Cr4z33 @wishmaster270
                    last edited by Sep 27, 2022, 7:20 AM

                    @wishmaster270 that’s great news I’ve added your repo and will wait then for the instructions once they come out.

                    1 Reply Last reply Reply Quote 0
                    • W Offline
                      wishmaster270 Module Developer @Serge
                      last edited by Nov 20, 2022, 1:36 PM

                      @Serge Hi,
                      as i am unable to modify the first post to announce new release i will start a new thread. Maybe you can link to it in the first post.

                      S 1 Reply Last reply Nov 27, 2022, 2:03 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 4 / 5
                      • First post
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy