MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Automatically wake bluetooth speaker from sleep/suspend

    Troubleshooting
    5
    16
    832
    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.
    • S
      Stinger0815 @bugsounet last edited by

      @bugsounet said in Automatically wake bluetooth speaker from sleep/suspend:

      (if you think that is the better solution… I will engage you for coding :D)

      🤭

      It’s certainly not a perfect solution - I have to add that every time there is an update in the detector helper - ohh, surprise, there is an update in the detector module 😃

      B 1 Reply Last reply Reply Quote 0
      • B
        bugsounet @Stinger0815 last edited by

        @stinger0815

        humm…
        i’m so kind today … so try v3.0.4 of GA with this recipe:

        var recipe = {
          commands: {
            "Bluetooth": {
              shellExec: {
                exec: (params) => {
                  if (params.notification == "GA_ACTIVATE") return "bluetooth_connector.sh"
                  else return null
                }
              }
            }
          },
          plugins: {
            onNotificationReceived: "Bluetooth"
          },
        }
        
        exports.recipe = recipe
        

        Note maybe you have to add path in the return value example /home/pi/bla/bla/bluetooth_connector.sh


        I am not a reference in this forum
        I am not a magician
        I'm just a developer

        Please DON'T ADS ANY of My Modules There !

        Follow new support of 4th party modules on https://wiki.bugsounet.fr

        S 1 Reply Last reply Reply Quote 0
        • S
          Stinger0815 @bugsounet last edited by

          @bugsounet said in Automatically wake bluetooth speaker from sleep/suspend:

          @stinger0815

          humm…
          i’m so kind today … so try v3.0.4 of GA with this recipe:

          var recipe = {
            commands: {
          [...]
          
          Note maybe you have to add path in the return value example `/home/pi/bla/bla/bluetooth_connector.sh`
          

          That’s pretty sweet and works fine 🙂 Thank you very much!

          B 1 Reply Last reply Reply Quote 0
          • B
            bugsounet @Stinger0815 last edited by

            that i says: i’m so kind today

            because i offer no help there, so today you have a lot of chance 🙂


            I am not a reference in this forum
            I am not a magician
            I'm just a developer

            Please DON'T ADS ANY of My Modules There !

            Follow new support of 4th party modules on https://wiki.bugsounet.fr

            1 Reply Last reply Reply Quote 0
            • B
              bert269 @Stinger0815 last edited by sdetweil

              @stinger0815 : I am so sorry to “hijack” your thread. But do you perhaps have the correct steps to follow to install and get GA to work on the rpi? I have tried numerous threads, but all are out-dated and different from Google’s current developer screens - So I get to a spot where things are no longer working.
              Google does not really help either, as I have raised questions, that gets not answered.

              Thank you and I apologize again.

              D 1 Reply Last reply Reply Quote 0
              • D
                DJBOOB66 @bert269 last edited by

                @bert269
                [http://wiki.bugsounet.fr/en/MMM-GoogleAssistant](link url)

                1 Reply Last reply Reply Quote 2
                • 1
                • 2
                • 2 / 2
                • First post
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy