Bugsounet Coding

    • Register
    • Login
    • Search
    This Forum is now reserved to registred users!

    Solved Controlling my smart light using google assistant module

    Issues
    3
    13
    78
    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.
    • A
      alphabey last edited by

      Re: Control Google home devices using MM?

      hello everyone. First of all, I would like to thank the person @bugsounet for making this project and making it available to us.

      my problem is as follows, I installed the google assistant module and everything else necessary on my smart mirror. With the google assistant module, I can change the color and brightness of my smart light at home, but when I give the command to turn the light on and off, it answers that the device is not connected. google assistant on my phone can easily do this.

      If anyone has had this problem and was able to solve it, I would like your help.

      1 Reply Last reply Reply Quote 0
      • bugsounet
        bugsounet Main Coder last edited by

        Hi, can you past config?
        Thx

        R A 4 Replies Last reply Reply Quote 0
        • R
          Raf Translators @bugsounet last edited by Raf

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • R
            Raf Translators @bugsounet last edited by

            @bugsounet

            /*** GENERATED BY @bugsounet Gateway v2.2.2 ***/
            /*** https://forum.bugsounet.fr **/
            
            var config = {
              address: 'localhost',
              electronOptions: {
                webPreferences: {
                  webviewTag: true
                }
              },
              port: 8080,
              basePath: '/',
              ipWhitelist: [
                '127.0.0.1',
                '::ffff:127.0.0.1',
                '::1'
              ],
              useHttps: false,
              httpsPrivateKey: '',
              httpsCertificate: '',
              language: 'nl',
              locale: 'en-US',
              logLevel: [
                'INFO',
                'LOG',
                'WARN',
                'ERROR'
              ],
              timeFormat: 24,
              units: 'metric',
              modules: [
                {
                  module: 'alert'
                },
                {
                  module: 'clock',
                  position: 'top_right'
                },
                {
                  module: 'calendar',
                  header: 'Mijn Calender',
                  maximumEntries: 10,
                  position: 'top_left',
                  config: {
                    calendars: [
                      {
                        symbol: 'calendar-check',
                        url: 'https://calendar.googxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
                      }
                    ]
                  }
                },
                {
                  module: 'MMM-CalendarExt3',
                  position: 'top_left',
                  title: '',
                  config: {
                    mode: 'month',
                    instanceId: 'basicCalendar',
                    locale: 'BE',
                    maxEventLines: 5,
                    firstDayOfWeek: 1,
                    calendarSet: []
                  }
                },
                {
                  module: 'weather',
                  position: 'top_right',
                  config: {
                    weatherProvider: 'openweathermap',
                    type: 'current',
                    location: 'Wuustwezel',
                    locationID: '2783416',
                    apiKey: '027f369xxxxxxxxxxxxxxxxxxxxxxxx'
                  }
                },
                {
                  module: 'weather',
                  position: 'top_right',
                  header: 'Voorspelling voor',
                  config: {
                    weatherProvider: 'openweathermap',
                    type: 'forecast',
                    location: 'Wuustwezel',
                    locationID: '2783416',
                    apiKey: '027f36xxxxxxxxxxxxxxxxxxxxxxxxxxx'
                  }
                },
                {
                  module: 'MMM-Tools',
                  position: 'top_right',
                  config: {
                    refresh: 5000,
                    containerSize: null,
                    itemSize: null,
                    OS: {
                      displayOs: true,
                      orderOs: 1
                    },
                    CPU: {
                      displayUsage: true,
                      orderUsage: 4,
                      displayTemp: true,
                      orderTemp: 7,
                      displayType: true,
                      orderType: 2
                    },
                    RAM: {
                      displayRam: true,
                      orderRam: 5
                    },
                    STORAGE: {
                      displayStorage: true,
                      orderStorage: 6,
                      partitionExclude: []
                    },
                    NETWORK: {
                      displayNetwork: true,
                      orderNetwork: 3,
                      nativeNetwork: false,
                      displayDefaultNetwork: true
                    },
                    UPTIME: {
                      displayUptime: true,
                      useMagicMirror: true,
                      orderUptime: 8,
                      displayRecord: true,
                      orderRecord: 9
                    },
                    WARNING: {
                      enableWarning: false,
                      interval: 300000,
                      check: {
                        CPU_TEMP: 65,
                        CPU_USAGE: 75,
                        STORAGE_USED: 80,
                        MEMORY_USED: 80
                      }
                    }
                  }
                },
                {
                  module: 'EXT-Detector',
                  position: 'top_left',
                  disabled: false,
                  configDeepMerge: true,
                  config: {
                    debug: false,
                    useIcon: true,
                    touchOnly: false,
                    detectors: [
                      {
                        detector: 'Snowboy',
                        Model: 'jarvis',
                        Sensitivity: null
                      },
                      {
                        detector: 'Porcupine',
                        Model: 'ok google',
                        Sensitivity: null
                      },
                      {
                        detector: 'Porcupine',
                        Model: 'hey google',
                        Sensitivity: null
                      }
                    ]
                  }
                },
                {
                  module: 'MMM-GoogleAssistant',
                  configDeepMerge: true,
                  config: {
                    assistantConfig: {
                      latitude: 51.389468357447036,
                      longitude: 4.589640446852119
                    },
                    recipes: [
                      'Reboot-Restart-Shutdown.js',
                      '../../EXT-YouTube/recipe/EXT-YouTube.js',
                      '../../EXT-Spotify/recipe/EXT-Spotify.js'
                    ]
                  }
                },
                {
                  module: 'Gateway',
                  config: {
                    debug: false,
                    port: 8081,
                    username: 'home12',
                    password: 'avonex001',
                    noLogin: false,
                    usePM2: true,
                    PM2Id: 0,
                    useMapping: false,
                    portMapping: 8081
                  }
                },
                {
                  module: 'MMM-TuyaSL',
                  position: 'top_right',
                  header: 'TuyaSL',
                  config: {
                    userName: 'xxxxxxxxx.rafael@gmail.com',
                    password: 'xxxxxxxxxxxxx',
                    countryCode: 'EU',
                    showOnlyOnline: true,
                    showOnlyOn: false,
                    colour: true,
                    updateInterval: 300000,
                    timeout: 10000
                  }
                },
                {
                  module: 'MMM-NewsFeed',
                  position: 'bottom_bar',
                  configDeepMerge: true,
                  config: {
                    debug: true,
                    update: '15m',
                    speed: '25s',
                    maxItems: 100,
                    flux: [
                      {
                        from: 'GVA Hoofdpunten',
                        url: 'https://www.gva.be/rss/section/5685D99C-D24E-4C8A-9A59-A2AC00E293B1'
                      }
                    ],
                    personalize: {
                      Name: 'NewsFeed',
                      NameField: true,
                      NameColor: '#FFF',
                      NameBackground: '#414141',
                      ArticleColor: '#000',
                      ArticleBackground: '#D5D535',
                      DescriptionColor: '#000',
                      DescriptionBackground: '#FFF',
                      QRCode: true
                    },
                    vertical: {
                      useVertical: false,
                      width: '450px',
                      imageMaxWidth: '20vw',
                      imageMaxHeight: '20vh'
                    }
                  }
                },
                {
                  module: 'EXT-Alert',
                  disabled: false,
                  config: {
                    debug: false,
                    ignore: []
                  }
                },
                {
                  module: 'EXT-YouTubeCast',
                  position: 'middle_center',
                  disabled: false,
                  config: {
                    debug: false,
                    fullscreen: true,
                    width: '30vw',
                    height: '30vh',
                    alwaysDisplayed: false,
                    castName: 'MagicMirror',
                    port: 8569
                  }
                },
                {
                  module: 'EXT-UpdateNotification',
                  position: 'top_bar',
                  configDeepMerge: true,
                  disabled: false,
                  config: {
                    debug: false,
                    updateInterval: 600000,
                    startDelay: 60000,
                    ignoreModules: [],
                    updateCommands: [],
                    notification: {
                      useTelegramBot: true,
                      sendReady: true,
                      useScreen: true,
                      useCallback: true
                    },
                    update: {
                      autoUpdate: true,
                      autoRestart: true,
                      usePM2: true,
                      PM2Name: '0',
                      defaultCommand: 'git --reset hard && git pull && npm install',
                      logToConsole: true,
                      timeout: 120000
                    }
                  }
                },
                {
                  module: 'EXT-Browser',
                  disabled: false,
                  config: {
                    debug: false,
                    displayDelay: 60000,
                    scrollActivate: true,
                    scrollStep: 25,
                    scrollInterval: 1000,
                    scrollStart: 5000
                  }
                },
                {
                  module: 'EXT-Volume',
                  disabled: false,
                  config: {
                    debug: false,
                    volumePreset: 'PULSE',
                    myScript: null,
                    startVolume: 100
                  }
                },
                {
                  module: 'EXT-YouTube',
                  position: 'top_center',
                  disabled: false,
                  config: {
                    fullscreen: true,
                    width: '30vw',
                    height: '30vh',
                    useSearch: true,
                    alwaysDisplayed: true,
                    displayHeader: true,
                    username: 'Raf',
                    token: '02bf1641-4a9f-4f5f-b207xxxxxxxxxxxxxxxxxx'
                  }
                },
                {
                  module: 'EXT-Bring',
                  position: 'top_right',
                  disabled: false,
                  config: {
                    debug: false,
                    listName: 'Bonnie & Vake',
                    email: 'xxxxxxxxxx.rafael@gmail.com',
                    password: '04xxxxxxxxxxxxxx',
                    lang: 14,
                    columns: 3,
                    maxRows: 5,
                    updateInterval: 15000,
                    showBackground: true,
                    showBox: true,
                    showHeader: true
                  }
                },
                {
                  module: 'EXT-Spotify',
                  position: 'bottom_right',
                  disabled: false,
                  config: {
                    updateInterval: 1000,
                    idleInterval: 10000,
                    useBottomBar: true,
                    CLIENT_ID: '3537074xxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
                    CLIENT_SECRET: '37f19a3e9xxxxxxxxxxxxxxxxxxxxxxxx'
                  }
                },
                {
                  module: 'EXT-Welcome',
                  disabled: false,
                  config: {
                    welcome: 'brief Today'
                  }
                }
              ]
            }
            
            /*************** DO NOT EDIT THE LINE BELOW ***************/
            if (typeof module !== 'undefined') {module.exports = config;}
            
            
            1 Reply Last reply Reply Quote 0
            • bugsounet
              bugsounet Main Coder last edited by

              @Raf : why you post your config ?

              1 Reply Last reply Reply Quote 0
              • R
                Raf Translators last edited by

                I have the same problem

                1 Reply Last reply Reply Quote 0
                • A
                  alphabey @bugsounet last edited by

                  @bugsounet I didn’t understand exactly what you mean.

                  1 Reply Last reply Reply Quote 0
                  • A
                    alphabey @bugsounet last edited by

                    @bugsounet said in Controlling my smart light using google assistant module:

                    Hi, can you past config?
                    Thx

                    I’m waiting for your answer to solve this problem my friend. I would be very grateful if you could take care of it when you are available.

                    1 Reply Last reply Reply Quote 0
                    • bugsounet
                      bugsounet Main Coder last edited by

                      Euh… Show me your GA config
                      Thx

                      A 1 Reply Last reply Reply Quote 0
                      • A
                        alphabey @bugsounet last edited by

                        @bugsounet

                        		{
                        			module: "MMM-GoogleAssistant",
                        			configDeepMerge: true,
                        			config: {
                        				debug: false,
                        				stopCommand: "stop",
                        				assistantConfig: {
                        					latitude: ,
                        					longitude: ,
                        				},
                        				responseConfig: {
                        					chimes: {},
                        					imgStatus: {},
                        					zoom: {}
                        				},
                        				recipes: [
                        					"../../EXT-Spotify/recipe/EXT-Spotify.js",
                        				],
                        			},
                        		},
                        
                        1 Reply Last reply Reply Quote 0
                        • bugsounet
                          bugsounet Main Coder last edited by

                          For controling others devices:

                          1. All must be connect to all same google account
                          2. GA must be connect to same Google account like others
                          3. GA must be registred to Google Home

                          see GA wiki how to register your GA into Google Home if needed

                          A 1 Reply Last reply Reply Quote 0
                          • A
                            alphabey @bugsounet last edited by

                            @bugsounet The problem fixed itself. I uninstalled and reinstalled my device in the google home app. thank you

                            1 Reply Last reply Reply Quote 0
                            • bugsounet
                              bugsounet Main Coder last edited by

                              Perfect so!

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post
                              Powered by NodeBB | @bugsounet ©2022