How to identify a google home (mini) device?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







1















I want to identify a google home device via the SDK request / response call to serve the request properly. Basically I need this information to know the location / room / floor / venue where this device is installed or kept.



Example: If I make a request to google mini - "Switch off the lights", I want to know the device id so the service can do a lookup and find the room where this device is located and switch off the lights of that room.



I don't need this for android phones/devices. It is very specific to google home devices.



I have seen originalRequest.data.user.userId but not sure if i can use this (as user of the device will not have any google login or account linking)



Is this information is exposed via dialogflow api?










share|improve this question































    1















    I want to identify a google home device via the SDK request / response call to serve the request properly. Basically I need this information to know the location / room / floor / venue where this device is installed or kept.



    Example: If I make a request to google mini - "Switch off the lights", I want to know the device id so the service can do a lookup and find the room where this device is located and switch off the lights of that room.



    I don't need this for android phones/devices. It is very specific to google home devices.



    I have seen originalRequest.data.user.userId but not sure if i can use this (as user of the device will not have any google login or account linking)



    Is this information is exposed via dialogflow api?










    share|improve this question



























      1












      1








      1








      I want to identify a google home device via the SDK request / response call to serve the request properly. Basically I need this information to know the location / room / floor / venue where this device is installed or kept.



      Example: If I make a request to google mini - "Switch off the lights", I want to know the device id so the service can do a lookup and find the room where this device is located and switch off the lights of that room.



      I don't need this for android phones/devices. It is very specific to google home devices.



      I have seen originalRequest.data.user.userId but not sure if i can use this (as user of the device will not have any google login or account linking)



      Is this information is exposed via dialogflow api?










      share|improve this question
















      I want to identify a google home device via the SDK request / response call to serve the request properly. Basically I need this information to know the location / room / floor / venue where this device is installed or kept.



      Example: If I make a request to google mini - "Switch off the lights", I want to know the device id so the service can do a lookup and find the room where this device is located and switch off the lights of that room.



      I don't need this for android phones/devices. It is very specific to google home devices.



      I have seen originalRequest.data.user.userId but not sure if i can use this (as user of the device will not have any google login or account linking)



      Is this information is exposed via dialogflow api?







      dialogflow actions-on-google google-home






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 24 '18 at 11:59









      Prisoner

      36.4k43562




      36.4k43562










      asked Nov 23 '18 at 22:02









      Suryanarayana MangipudiSuryanarayana Mangipudi

      61




      61
























          1 Answer
          1






          active

          oldest

          votes


















          0














          The Google Home device information, including its ID and room assignment, are not available to developers.



          This is why the Google Home Smart Home API handles most of this for you. It reports exactly which lights are being controlled - you do not need to know which device did the controlling, the Smart Home API tells you exactly which devices are being controlled.



          You do not need to use Dialogflow in these cases, since the Assistant does all the Natural Language Processing and simply gives you directions for which devices need to be updated.






          share|improve this answer


























          • I went through the Smart Home APIs. I understand that these are helpful for targeting. What I want is to find the ID/Name, if any, of the device(let's say Google Home Mini) through the user is giving the command. Example: I have a Home map of Google Mini and IoT targets. Now I want to execute "Switch off my lights" from Bed room, I want to target IoT device in the bed room. For this I want to know ID/Name (BEDROOM) for the Google Mini generating the intent callback. Hope this helps.

            – Suryanarayana Mangipudi
            Nov 26 '18 at 3:14













          • I've updated to be more clear. As I said - you cannot get the ID of the Home device. The Smart Home APIs tell you exactly which devices are being controlled, so you don't have to figure it out yourself.

            – Prisoner
            Nov 26 '18 at 10:30












          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53453363%2fhow-to-identify-a-google-home-mini-device%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          The Google Home device information, including its ID and room assignment, are not available to developers.



          This is why the Google Home Smart Home API handles most of this for you. It reports exactly which lights are being controlled - you do not need to know which device did the controlling, the Smart Home API tells you exactly which devices are being controlled.



          You do not need to use Dialogflow in these cases, since the Assistant does all the Natural Language Processing and simply gives you directions for which devices need to be updated.






          share|improve this answer


























          • I went through the Smart Home APIs. I understand that these are helpful for targeting. What I want is to find the ID/Name, if any, of the device(let's say Google Home Mini) through the user is giving the command. Example: I have a Home map of Google Mini and IoT targets. Now I want to execute "Switch off my lights" from Bed room, I want to target IoT device in the bed room. For this I want to know ID/Name (BEDROOM) for the Google Mini generating the intent callback. Hope this helps.

            – Suryanarayana Mangipudi
            Nov 26 '18 at 3:14













          • I've updated to be more clear. As I said - you cannot get the ID of the Home device. The Smart Home APIs tell you exactly which devices are being controlled, so you don't have to figure it out yourself.

            – Prisoner
            Nov 26 '18 at 10:30
















          0














          The Google Home device information, including its ID and room assignment, are not available to developers.



          This is why the Google Home Smart Home API handles most of this for you. It reports exactly which lights are being controlled - you do not need to know which device did the controlling, the Smart Home API tells you exactly which devices are being controlled.



          You do not need to use Dialogflow in these cases, since the Assistant does all the Natural Language Processing and simply gives you directions for which devices need to be updated.






          share|improve this answer


























          • I went through the Smart Home APIs. I understand that these are helpful for targeting. What I want is to find the ID/Name, if any, of the device(let's say Google Home Mini) through the user is giving the command. Example: I have a Home map of Google Mini and IoT targets. Now I want to execute "Switch off my lights" from Bed room, I want to target IoT device in the bed room. For this I want to know ID/Name (BEDROOM) for the Google Mini generating the intent callback. Hope this helps.

            – Suryanarayana Mangipudi
            Nov 26 '18 at 3:14













          • I've updated to be more clear. As I said - you cannot get the ID of the Home device. The Smart Home APIs tell you exactly which devices are being controlled, so you don't have to figure it out yourself.

            – Prisoner
            Nov 26 '18 at 10:30














          0












          0








          0







          The Google Home device information, including its ID and room assignment, are not available to developers.



          This is why the Google Home Smart Home API handles most of this for you. It reports exactly which lights are being controlled - you do not need to know which device did the controlling, the Smart Home API tells you exactly which devices are being controlled.



          You do not need to use Dialogflow in these cases, since the Assistant does all the Natural Language Processing and simply gives you directions for which devices need to be updated.






          share|improve this answer















          The Google Home device information, including its ID and room assignment, are not available to developers.



          This is why the Google Home Smart Home API handles most of this for you. It reports exactly which lights are being controlled - you do not need to know which device did the controlling, the Smart Home API tells you exactly which devices are being controlled.



          You do not need to use Dialogflow in these cases, since the Assistant does all the Natural Language Processing and simply gives you directions for which devices need to be updated.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 26 '18 at 10:29

























          answered Nov 24 '18 at 11:58









          PrisonerPrisoner

          36.4k43562




          36.4k43562













          • I went through the Smart Home APIs. I understand that these are helpful for targeting. What I want is to find the ID/Name, if any, of the device(let's say Google Home Mini) through the user is giving the command. Example: I have a Home map of Google Mini and IoT targets. Now I want to execute "Switch off my lights" from Bed room, I want to target IoT device in the bed room. For this I want to know ID/Name (BEDROOM) for the Google Mini generating the intent callback. Hope this helps.

            – Suryanarayana Mangipudi
            Nov 26 '18 at 3:14













          • I've updated to be more clear. As I said - you cannot get the ID of the Home device. The Smart Home APIs tell you exactly which devices are being controlled, so you don't have to figure it out yourself.

            – Prisoner
            Nov 26 '18 at 10:30



















          • I went through the Smart Home APIs. I understand that these are helpful for targeting. What I want is to find the ID/Name, if any, of the device(let's say Google Home Mini) through the user is giving the command. Example: I have a Home map of Google Mini and IoT targets. Now I want to execute "Switch off my lights" from Bed room, I want to target IoT device in the bed room. For this I want to know ID/Name (BEDROOM) for the Google Mini generating the intent callback. Hope this helps.

            – Suryanarayana Mangipudi
            Nov 26 '18 at 3:14













          • I've updated to be more clear. As I said - you cannot get the ID of the Home device. The Smart Home APIs tell you exactly which devices are being controlled, so you don't have to figure it out yourself.

            – Prisoner
            Nov 26 '18 at 10:30

















          I went through the Smart Home APIs. I understand that these are helpful for targeting. What I want is to find the ID/Name, if any, of the device(let's say Google Home Mini) through the user is giving the command. Example: I have a Home map of Google Mini and IoT targets. Now I want to execute "Switch off my lights" from Bed room, I want to target IoT device in the bed room. For this I want to know ID/Name (BEDROOM) for the Google Mini generating the intent callback. Hope this helps.

          – Suryanarayana Mangipudi
          Nov 26 '18 at 3:14







          I went through the Smart Home APIs. I understand that these are helpful for targeting. What I want is to find the ID/Name, if any, of the device(let's say Google Home Mini) through the user is giving the command. Example: I have a Home map of Google Mini and IoT targets. Now I want to execute "Switch off my lights" from Bed room, I want to target IoT device in the bed room. For this I want to know ID/Name (BEDROOM) for the Google Mini generating the intent callback. Hope this helps.

          – Suryanarayana Mangipudi
          Nov 26 '18 at 3:14















          I've updated to be more clear. As I said - you cannot get the ID of the Home device. The Smart Home APIs tell you exactly which devices are being controlled, so you don't have to figure it out yourself.

          – Prisoner
          Nov 26 '18 at 10:30





          I've updated to be more clear. As I said - you cannot get the ID of the Home device. The Smart Home APIs tell you exactly which devices are being controlled, so you don't have to figure it out yourself.

          – Prisoner
          Nov 26 '18 at 10:30




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53453363%2fhow-to-identify-a-google-home-mini-device%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          這個網誌中的熱門文章

          Xamarin.form Move up view when keyboard appear

          Post-Redirect-Get with Spring WebFlux and Thymeleaf

          Anylogic : not able to use stopDelay()