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

    Posts

    Recent Best Controversial
    • Having problems scanning qr codes from MMM-News-QR

      Hi All

      I just wanted to hear if others can actually scan the QR codes? I can’t figure out what is going wrong, I have news showing up, I have the QR code show up (both handling it via push, very nice).
      But for some reason my phone won’t scan the code, it keeps attempting to, but noooo.

      posted in Troubleshooting
      F
      fribse
    • RE: MMM-HomeAssistant-Sensors (Development) - Show your HA Sensors on your Mirror

      @Snille Looks very nice, good job!

      posted in Utilities
      F
      fribse
    • RE: I would love to show the finished mirror, but I'm waiting for the glass :-) This is the project so far...

      While recovering from Covid-19, I just wanted to post an image of the mirror in it’s place.
      Still waiting for some extra light in the bathroom, as the tinted mirror makes it rather dark to look at.
      The light strips in the mirror works quite well.
      I still need to buff up the mirror :-D
      But I like that the mirror is hanging only by the small hinges, so it kind of floats on the wall.
      I’ve set it to turn on the monitor together with the powerfull light above the mirror, so the light from the monitor will not be that visible.

      DSC_2972_2.JPG

      posted in Show your Mirror
      F
      fribse
    • Can I start a script from MMM-Remote-Control or something else?

      I have finally gotten most of it working.
      I’m almost ready for halloween :-)
      I’m going to create a scene that will make the light flicker, and then I want to start a movie playback via a MQTT command.
      I’ve made a script that will random select a clip and play it back, and it shows up as it should, on top of the MM.
      But how can I get that done?
      I tried using the ‘MMM-Remote-Control’ and add a command with customcommand, but it seems that I can not just add a random command, I can only redefine the already set up commands???

      The MQTTBridge sends out perfect NOTI’s, so anything that can react to this would work? Any ideas?

      posted in Troubleshooting
      F
      fribse
    • RE: Notification issued from MMM-MQTTbridge but nothing happens

      And again, Serge sharp eyes found the errors. I was somply trying to hard to add quotes and stuff so it got messed up.
      The working config for receiving commands from Home Assistant looks like this now:

      var mqttHook = [
          {
            mqttTopic: "cmnd/bathroom/mirror",
            mqttPayload: [
              {
                payloadValue: "MONITOROFF",
                mqttNotiCmd: ["MONITOROFF"]
              },
              {
                payloadValue: "MONITORON",
                mqttNotiCmd: ["MONITORON"]
              },
              {
                payloadValue: "UNDIM",
                mqttNotiCmd: ["UNDIM"]
              },
              {
                payloadValue: "DIM",
                mqttNotiCmd: ["DIM"]
              },
            ],
          },
        ];
      var mqttNotiCommands = [
          {
            commandId: "MONITOROFF",
            notiID: 'REMOTE_ACTION',
            notiPayload: {action: 'MONITOROFF'}
          },
          {
            commandId: "MONITORON",
            notiID: 'REMOTE_ACTION',
            notiPayload: {action: 'MONITORON'}
          },
          {
            commandId: "DIM",
            notiID: 'REMOTE_ACTION',
            notiPayload: {action: 'BRIGHTNESS', value: '50'}
          },
          {
            commandId: "UNDIM",
            notiID: 'REMOTE_ACTION',
            notiPayload: {action: 'BRIGHTNESS', value: '255'}
          },
        ];
      
        module.exports = { mqttHook,  mqttNotiCommands};
      
      posted in Troubleshooting
      F
      fribse
    • RE: MMM-MQTTbridge doesn't seem to report USER_PRESENCE correctly?

      The config that works looks like this:

      var notiHook = [
        {
          notiId: "USER_PRESENCE",
          notiPayload: [
            {
              payloadValue: '1',
              notiMqttCmd: ["SCREENON"]
            },
            {
              payloadValue: '0',
              notiMqttCmd: ["SCREENOFF"]
            }
          ]
        }
      ];
      var notiMqttCommands = [
        {
          commandId: "SCREENOFF",
          mqttTopic: "state/bathroom/mirror/monitor",
          mqttMsgPayload: "OFF"
        },
        {
          commandId: "SCREENON",
          mqttTopic: "state/bathroom/mirror/monitor",
          mqttMsgPayload: "ON"
        }
      ];
      
      module.exports = { notiHook, notiMqttCommands };
      

      Thankyou again for your excellent help and sharp eyes Serge!. :flexed_biceps: :heart_suit:

      posted in Troubleshooting
      F
      fribse
    • MMM-MQTTbridge doesn't seem to report USER_PRESENCE correctly?

      I can see that MMM-Remote-Control set’s the USER_PRESENCE depending on the state of the monitor.
      I try to interpret that to update the status of the switch in HomeAssistant by having it set up in the notiDictionary

      The config looks like this:

      var notiHook = [
        {
          notiId: "USER_PRESENCE",
          notiPayload: [
            {
              payloadValue: true,
              notiMqttCmd: ["SCREENON"]
            },
            {
              payloadValue: false,
              notiMqttCmd: ["SCREENOFF"]
            },
          ],
        },
      ];
      var notiMqttCommands = [
        {
          commandId: "SCREENOFF",
          mqttTopic: "bathroom/mirror/monitor",
          mqttMsgPayload: "{'state':'OFF'}"
        },
        {
          commandId: "SCREENON",
          mqttTopic: "bathroom/mirror/monitor",
          mqttMsgPayload: "{'state':'ON'}"
        },
      ];
      
      module.exports = { notiHook, notiMqttCommands };
      
      

      The logs looks like this:

      0|mm     | [2020-10-16 09:44:34.089] [LOG]
      0|mm     | [MQTT bridge] NOTI->MQTT. Topic: bathroom/mirror/monitor, payload: false
      0|mm     | [2020-10-16 09:44:34.101] [LOG]
      0|mm     | Powering off HDMI
      0|mm     | [2020-10-16 09:44:34.102] [LOG]
      0|mm     | [2020-10-16 09:44:36.936] [LOG]
      0|mm     | [MQTT bridge] NOTI->MQTT. Topic: bathroom/mirror/monitor, payload: {"state":"ON"}
      0|mm     | [2020-10-16 09:44:37.793] [LOG]
      0|mm     | Powering on HDMI with preferred settings
      0|mm     | [2020-10-16 09:44:37.795] [LOG]
      

      So when it turns off, it doesn’t report state: off it just reports ‘false’ and it only reports state:on when it’s on.

      I do see the messages appear in the MQTT, but as they are incorrectly formatted, HA doesn’t update it properly.

      posted in Troubleshooting
      F
      fribse
    • Notification issued from MMM-MQTTbridge but nothing happens

      As I posted elsewhere, after find the logs, I could get the errors removed, so now it posts the notification to REMOTE_ACTION, but nothing happens:

      It does receive the MQTT command, but nothing happens on the NOTI:

      0|mm     | [MQTT bridge] MQTT message received. Topic: bathroom/mirror, message: MONITOROFF
      0|mm     | [2020-10-16 09:23:53.728] [LOG]
      0|mm     | [MQTT bridge] MQTT -> NOTI issued: 'REMOTE_ACTION', payload: {action: 'MONITOROFF' }
      

      Same thing happens for MONITORON, DIM and UNDIM.

      The mqttdictionary file looks like this now:

      var mqttHook = [
          {
            mqttTopic: "bathroom/mirror",
            mqttPayload: [
              {
                payloadValue: "MONITOROFF",
                mqttNotiCmd: ["MONITOROFF"]
              },
              {
                payloadValue: "MONITORON",
                mqttNotiCmd: ["MONITORON"]
              },
              {
                payloadValue: "UNDIM",
                mqttNotiCmd: ["UNDIM"]
              },
              {
                payloadValue: "DIM",
                mqttNotiCmd: ["DIM"]
              },
            ],
          },
        ];
      var mqttNotiCommands = [
          {
            commandId: "MONITOROFF",
            notiID: "'REMOTE_ACTION'",
            notiPayload: "{action: 'MONITOROFF' }"
          },
          {
            commandId: "MONITORON",
            notiID: "'REMOTE_ACTION'",
            notiPayload: "{action: 'MONITORON' }"
          },
          {
            commandId: "DIM",
            notiID: "'REMOTE_ACTION'",
            notiPayload: "{action: 'BRIGHTNESS', value: '50')"
          },
          {
            commandId: "UNDIM",
            notiID: "'REMOTE_ACTION'",
            notiPayload: "action: 'BRIGHTNESS', value: '255'}"
          },
        ];
      
        module.exports = { mqttHook,  mqttNotiCommands};
      

      And the notification looks just like the one here in the documentation example here:

      this.sendNotification('REMOTE_ACTION', {action: 'RESTART'});
      

      The ipWhitelisting has been both tried with [(“127.0.0.1”,“localhost”,“my.ip.range.0/24”)] and also with just [].
      I can issue the commands MONITOROFF/MONITORON directly in the Remote-Control menu at /remote.html

      Any input from the developers on this? @Serge , @Bugsounet, @Jopyth :-)

      Is it a MMM-MQTTbridge problem or a MMM-Remote-Control problem?

      posted in Troubleshooting
      F
      fribse
    • RE: I'm trying to get MMM-MQTTbridge to work, but where do I find the debug log to see notifications etc?

      Ahh, and the second you post this, you actually find it mentioned in a sentence on the forum :-D

      So if I issue

      pm2 logs
      

      I see the logs I need!

      I’m going to break this post off, and make a seperate about the problem with nothing happening now.

      posted in Troubleshooting
      F
      fribse
    • I'm trying to get MMM-MQTTbridge to work, but where do I find the debug log to see notifications etc?

      Hi All

      I had this up and running before the latest updates to MM and to the MMM-MQTTbridge. But now it doesn’t.
      I need to find out what is going on, but where do I find the debug log on the latest MM?
      I can see in my old posts when I originally tried to set this up I could get nice long logs that detailed what was going on, but I can’t find the logs now.

      I need to have the MMM-MQTTbridge report status of monitor (to update the switch in HomeAssistant), to receive monitoron/off (which is sent from a homebuilt PIR in the bathroom) and to execute a custom command (for halloween scary stuff :-D ).

      posted in Troubleshooting
      F
      fribse
    • 1 / 1