Recipes & adapterDeviceId

I need some way to relate a recipe back to the device I exposed via the SDK. Since I cannot store NEEO device ids with the system I am writing a driver for, I thought I could use the ID that I was providing upon registration with NEEO. When directly looking at the device info, it's returned as 'adapterDeviceId'.

It is not being returned when retrieving all the recipes. Did I miss something? Or is there any easy way to retrieve this information?

Reply
7replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • Boris Pruessmann You're able to receive each ID (for all devices) via an single API Call. You just need to call a dedicated adress and load the XML, but i missed it currently to overhand.

    I know that Niels de Klerk use the correct adress inside his API guide, maybe try a look there or maybe he will come back to you shortly.

    Reply Like
  • What are you trying to achieve exactly? I can’t see much reason for getting the NEEO end of a driver as the SDK handles that.

    Reply Like
    • Niels de Klerk that’s what I am doing - triggering a recipe. The problem is finding the right one. 

      Or did you mean a manually created recipe?

      Reply Like
    • Boris Pruessmann you could do both depending on your needs. To start a recipe use:

      GET http://10.2.1.64:3000/projects/home/rooms/

      Find the room key in the responce. like in this example:
       

       

      use the room key to get all data from the room:

      http://10.2.1.64:3000/projects/home/rooms/<Insert Key Here>/
      http://10.2.1.64:3000/projects/home/rooms/6367632568841404416/

      in this case you want to know all the recipes from that room so you can directly use:
      http://10.2.1.64:3000/projects/home/rooms/6367632568841404416/recipes

      The responce will show all recipes and their key's. Lets say one of the key's is 6468527153813127168, then you can get the specifics from this recipe by using:

      http://10.2.1.64:3000/projects/home/rooms/6367632568841404416/recipes/6468527153813127168

      Executing the recipe can be done with this API:


      http://<IPAddress>:3000/projects/home/rooms/<RoomKey>/recipes/<RecipeKey>/execute

      http://10.2.1.64:3000/projects/home/rooms/6367632568841404416/recipes/6468527153813127168/execute

       

      I'm using the Advanced RESR client and sometimes Postman to test and play with the API's as they return formated json and is more easy to read. The image example is done with Advanced Rest client.

      Reply Like
  • I want to externally trigger the recipe that maps to the device I am exposing through my driver.

    Example:

    • The driver is exposing a musicplayer that is mapping to a specific audio zone. That zone has an ID that I am using as adapterDeviceId.
    • The driver allows me to control the audio zone via NEEO - Play, Pause, etc.
    • The audio device has an alarm functionality. When the alarm hits, audio playback starts. There is an SDK that allows me to do certain things when that happens. For example, triggering the recipe that maps to the musicplayer. That way the amplifier will be turned on, so that the audio output can be heard.
    Reply Like 1
    • Boris Pruessmann ok. You could also make a or use a recipe and execute that recipe using the API. Also found in my guide. 

      Reply Like
  • The API was looking for can be found under /v1/projects/home/devices/ btw. Thanks Markus Mahr

    Reply Like
Like Follow