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-KitchenTimer - Touch-friendly countdown timer

    Scheduled Pinned Locked Moved Utilities
    timertouchkitchen
    18 Posts 2 Posters 728 Views 2 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.
    • B Offline
      bwente @Niggich
      last edited by

      @Niggich it’s a good idea, but unfortunately it can’t directly start a normal Alexa timer.

      One option is to pair your Screen with the Echo over Bluetooth. That would give you the alarm sound through the Echo, but it wouldn’t activate the timer indicator on the Echo Wall Clock.

      Another possibility may be installing alexa-remote on the Mirror or use HA. The module could notify it when a timer starts, and it could then ask the Echo to set the corresponding timer. That should also activate the Wall Clock. maybe?

      NiggichN 1 Reply Last reply Reply Quote 0
      • NiggichN Offline
        Niggich @bwente
        last edited by Niggich

        @bwente Thank you for your answer. HA it’s a good idea, but how I tell HA I start the Timer on the mirror? I also have an iobroker. Maybe this helps…

        B 1 Reply Last reply Reply Quote 0
        • B Offline
          bwente @Niggich
          last edited by

          @Niggich

          Yes. Since you use Home Assistant, MagicMirror can publish an MQTT message when the timer starts, and HA can start a matching Alexa timer on the Echo paired with the Wall Clock.

          The catch is they are separate timers, not truly synced. Starting and canceling can be synced, but pausing the MagicMirror timer will not pause Alexa.

          NiggichN 1 Reply Last reply Reply Quote 0
          • NiggichN Offline
            Niggich @bwente
            last edited by

            @bwente

            Ok, I try to configure MMM-MQTTbridge to connect the mirror to my HA. I think the connection from Mirror to HA is working but I don’t know how to configure the module to Send Notifications to my HA. Sorry…

            B 1 Reply Last reply Reply Quote 0
            • B Offline
              bwente @Niggich
              last edited by

              @Niggich On the HA side you would listen for the timer topic.

              alias: Start Echo timer from MagicMirror
              triggers:
                - trigger: mqtt
                  topic: magicmirror/kitchen-timer/started
              
              actions:
                - action: media_player.play_media
                  target:
                    entity_id: media_player.kitchen_echo
                  data:
                    media_content_type: custom
                    media_content_id: >-
                      set a timer for
                      {{ trigger.payload_json.remainingSeconds | int }}
                      seconds
              
              NiggichN 1 Reply Last reply Reply Quote 0
              • NiggichN Offline
                Niggich @bwente
                last edited by Niggich

                @bwente Ok, thank you. So I don’t need to configure something at the MMM-MQTTbridge just in HA?

                edit: I try the whole afternoon, but I don’t know how to do. I also try it with MMM-HomeAssistant.

                B 1 Reply Last reply Reply Quote 0
                • B Offline
                  bwente @Niggich
                  last edited by

                  @Niggich

                  Something like this for your MMM-MQTTbridge config on your mirror.

                  {
                    module: "MMM-MQTTbridge",
                    disabled: false,
                    config: {
                      mqttServer: "mqtt://USERNAME:PASSWORD@192.168.1.10:1883",
                      stringifyPayload: true,
                  
                      mqttConfig: {
                        // This example only sends MagicMirror events to MQTT.
                        listenMqtt: false,
                        interval: 300000,
                      },
                  
                      notiConfig: {
                        listenNoti: true,
                        ignoreNotiId: ["CLOCK_MINUTE", "CLOCK_SECOND", "NEWS_FEED"],
                        ignoreNotiSender: ["system"],
                        qos: 0,
                      },
                    },
                  },
                  

                  then edit

                  ~/MagicMirror/modules/MMM-MQTTbridge/dict/notiDictionary.js
                  
                  var notiHook = [
                    {
                      notiId: "KITCHEN_TIMER_STARTED",
                      notiPayload: [
                        {
                          notiMqttCmd: ["Kitchen timer started"],
                        },
                      ],
                    },
                  ];
                  
                  var notiMqttCommands = [
                    {
                      commandId: "Kitchen timer started",
                      mqttTopic: "magicmirror/kitchen-timer/started",
                      stringifyPayload: true,
                      retain: false,
                      qos: 0,
                    },
                  ];
                  
                  module.exports = { notiHook, notiMqttCommands };
                  

                  after restarting your mirror you should be able to listen for the topic: magicmirror/kitchen-timer/started in Home Assistant developer tools.

                  NiggichN 1 Reply Last reply Reply Quote 0
                  • NiggichN Offline
                    Niggich @bwente
                    last edited by

                    @bwente Wow, you’re great. My Echo know I want to start a Timer but it’s asking for how long.

                    B 1 Reply Last reply Reply Quote 0
                    • B Offline
                      bwente @Niggich
                      last edited by

                      @Niggich said:

                      My Echo know I want to start a Timer but it’s asking for how long.

                      Great, now that you’ve confirmed MQTT is working, the next step is to add the Home Assistant automation.

                      alias: MagicMirror kitchen timer started
                      triggers:
                        - trigger: mqtt
                          topic: magicmirror/kitchen-timer/started
                      
                      actions:
                        - action: media_player.play_media
                          target:
                            entity_id: media_player.kitchen_echo
                          data:
                            media_content_type: custom
                            media_content_id: >-
                              set a timer for
                              {{ trigger.payload_json.remainingSeconds | int }}
                              seconds
                      

                      I think that will work. I don’t know if it needs to be escaped or not.

                      NiggichN 1 Reply Last reply Reply Quote 0
                      • NiggichN Offline
                        Niggich @bwente
                        last edited by

                        @bwente I add the automation already and change it again but the echo still asking “for how log should be the timer”… I also try to fix it with ChatGPT but this was not working.

                        B 1 Reply Last reply Reply Quote 0
                        • B Offline
                          bwente @Niggich
                          last edited by

                          @Niggich looks like trigger.payload_json.remainingSeconds is empty or double quoted. Can you view just the payload and see?

                          1 Reply Last reply Reply Quote 0

                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                          With your input, this post could be even better 💗

                          Register Login
                          • 1 / 1
                          • 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