Hi, all,
I’m running a node-RED server to control my Harmony hubs. I’m actually using it mostly for controlling IR devices like fans, fake candles, etc. But I’m working on a super secret project that will in small part have a TV control screen via SharpTools.
The way node-RED works with this is, I create http endpoints for whatever Harmony command I want to send, such as http://(ip):1880/bedroomVolumeUp/
I’ve tested creating hyperlink tiles in SharpTools directly for these controls, and it works very well and quickly. My question is: is creating an individual http object PER control I want in SharpTools the most efficient way to go? Or is there some way I’m not thinking of to pass the last part of the url as a variable or something?
Like, just have one http with http;//(up):1880/() and pass it the “bedroomVolumeUp” dynamically? Through rule engine perhaps?
I just don’t want to create a ton of essentially duplicate http objects if there’s a more elegant/efficient way to do it. The thought is, if I could set up the backend once, then create a button layout with, say, variable buttons, then change the individual variable buttons in settings after the fact, that could be a little more flexible. As always, I hope I’ve made sense here and my possible use of not-exactly-perfect terminology hasn’t confused things