Feature Request: Allow multiple instances of MakerAPI EDIT: never mind, works now

EDIT: disregard. This didn't work when I tried before typing this out, but after a refresh i can get multiple installations and sets of devices working no problem.

Lots of apps allow multiple instances to exist together listed on the Apps page in something of a parent child arrangement, like multiple dashboards for example. I seem to always have a few weird projects in progress at a time that often rely on maker API to poll a list of attributes for devices or to send commands to certain kinds of devices, a Wear OS app with a slider that sets dimmers for example. Every time I am trying a new project on a new platform and need a specific subset of devices I have to spend a bunch of time figuring out how to work with json on a watch or a calculator or mobile app or whatever it may be just to avoid listing motion sensors in a list of dimmers because my MakerAPI "everything" URL has to include every device that's used in ANY of my integrations, rather than being able to make a child Maker API authorization that only includes devices I need / where the HTTP request wouldn't return a bunch of devices I won't be using anyway. Not that json file sizes are extreme or anything, but as a matter of efficiency, it does bother me that every time I hit that URL to update the current value of attribute A for devices with capability Z, I get a json response with 20x more devices than the project needs and have to parse all that useless info, sometimes on devices with limited resources or storage, or limited wifi bandwidth or speed.

Dashboards and MakerAPI aren't that different when you think about it, the former is basically the GUI version of the latter. I can make a new dashboard and only authorize certain types of devices for it, but for MakerAPI I cannot.

You can have multiple copies of MakerAPI.

Each instance of MakerAPI has individual selectors for the devices that are included.

I have 5 hubs running and each has at least two instances of MakerAPI. None of them have ALL the hub's devices selected. Each Hub has a MakerAPI instance named "Node-Red Maker" and it's obvious what that does. Of the total devices in the selector, I'd say 70% are selected, leaving 30% not selected.

Bottom line, it's clear I completely missed the actual request included in your paragraph. I read it 3 times to see what I was missing.

4 Likes

As @csteele said, it’s already possible to have multiple instances of Maker API. I have a couple, with different devices authorized for each.

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.