thank you for the reply! i believe i am using the Global Cache API with the code.
right now the only solution i have come up with is using a Bond Bridge for each blind (as they have an IR receiver) and integrating that with smartthings, but there must be a better solution.
here’s how it works:
i have 6 blinds, and 12 custom Smartapps to be able to control my blinds. 6 apps for OPEN and 6 for CLOSE.
so one app for Kitchen Blinds Open and one app for Kitchen Blinds Close. Then another app for Den Blinds Open, and one app for Den Blinds Close, etc.
then i have a virtual momentary button switch for each app to control them (Den Blinds Open momentary, Den Blinds Close momentary etc). and then i can automate them with routines, etc.
each blind has an IR receiver, and I have a Global Cache Ethernet-2-IR device that sends out the IR signal to each blind individually. So the custom smartapp just connects to the local IP address (in hex) of the Ethernet-2-IR and then sends out an IR signal. it’s worked perfectly with the below code for years.
the code is really short. I haven’t been paying attention to ST in years, as everything has just worked fine, so I am at a loss to as what I should do. here is an example code for closing one of the blinds:
def theCom = “sendir,1:1,7,40100,1,1,733,91,458,92,91,275,275,91,92,274,92,183,92,459,732,92,457,92,91,275,275,91,92,275,91,183,92,459,732,92,458,91,92,274,275,92,91,275,91,183,92,4010\r”
// Automatically generated. Make future change here.
definition(
name: “Bedroom Blinds Close”,
namespace: “”,
author: “joe”,
description: “Bedroom Blinds Close”,
category: “My Apps”,
iconUrl: “https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience.png”,
iconX2Url: “https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience@2x.png”)
preferences {
section(“When this switch is turned on, send the command.”) {
input “trigger”, “capability.switch”, title: “Which switch?”, required: true
}
}
def installed() {
log.debug “Installed with settings: ${settings}”
initialize()
}
def updated() {
log.debug “Updated with settings: ${settings}”
unsubscribe()
initialize()
}
def initialize() {
subscribe(trigger, “switch.on”, switchOnHandler)
}
def switchOnHandler(evt) {
def deviceNetworkId = “C0A80027:1386”
def theCom = “sendir,1:1,7,40100,1,1,733,91,458,92,91,275,275,91,92,274,92,183,92,459,732,92,457,92,91,275,275,91,92,275,91,183,92,459,732,92,458,91,92,274,275,92,91,275,91,183,92,4010\r”
sendHubCommand(new physicalgraph.device.HubAction(“”“$theCom\r\n”“”, physicalgraph.device.Protocol.LAN, “C0A80027:1386”))
}