#802 How to pull devices that are tagged with 'ahu' marker only?

Ramamurthi Iyer Fri 10 Apr 2020

Hello Team,

I have multiple devices setup in NHaystack service and I need to extract devices that are just tagged as 'ahu' [ Direct marker tag] using rest endpoint. I tried the following but it gives me all the devices including Chillers, Rooftop. I do I filter on a specific device within a site.

https://localhost/haystack/read?filter=siteRef&ahu

Your help will be greatly appreciated.

Thank you!

Ramamurthi Iyer Sun 12 Apr 2020

NHaystack Team, Could you please provide information with regards to this question?

Thanks you!

Chris Breederveld Mon 13 Apr 2020

Hi, have you tried ?filter=siteRef and ahu

Ramamurthi Iyer Mon 13 Apr 2020

Hi Chris,

I tried that and I got the following output. What I need is filter by Equipment so that I can read all the point associated with the Equipment. This is required to build our analytics platform as this is the basic telemetry data to build any dashboards, KPI's and advance ML models. I somehow need to get the following filter to work. ?filter=equipRef and ahu if something like that is supported by the API. Any thoughts?

"rows": [
      {
          "hvac": "m:",
          "dis": "AHU_Test",
          "axType": "s:nhaystack:HEquip",
          "navName": "AHU_Test",
          "id": "r:S.BasicStation1.AHU_Test AHU_Test",
          "floorName": "",
          "axSlotPath": "s:slot:/Drivers/BacnetNetwork/AHU_Test/AHU_Test",
          "siteRef": "r:S.BasicStation1",
          "navNameFormat": "%displayName%",
          "ahu": "m:",
          "equip": "m:"
      },
      {
          "hvac": "m:",
          "dis": "AHU_2",
          "axType": "s:nhaystack:HEquip",
          "navName": "AHU_2",
          "id": "r:S.BasicStation1.AHU_2 AHU_2",
          "floorName": "",
          "axSlotPath": "s:slot:/Drivers/BacnetNetwork/AHU_2/AHU_2",
          "siteRef": "r:S.BasicStation1",
          "navNameFormat": "%displayName%",
          "ahu": "m:",
          "equip": "m:"
      }
  ]

}

Ramamurthi Iyer Mon 13 Apr 2020

Hi Chris,

Could you please let me know how this would be feasible on equipRef?

Thank you!

Chris Breederveld Tue 14 Apr 2020

Hi Ramamurthi, I am not sure if I understand you correctly, but I think that you are trying to get all points associated to a specific equipment or some equipment filter? You can use the following options depending on your needs:

?filter=point and equipRef->siteMeter and equipRef->ahu if you want all points for any ahu sitemeter.

?filter=point and equipRef->id == <some-id> if you want all points belonging to a specific equipment.

Ramamurthi Iyer Tue 14 Apr 2020

Thanks a lot Chris.This worked. Appreciate your help!

Login or Signup to reply.