beckyricha / Broadlink-RM-SmartThings-Alexa

Control RF and Ir devices using SmartThings and Alexa.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

send multinuber "134" with smarthings->broadlink

mercedescls opened this issue · comments

can i send to the tv channel 128 (multi numbers) /combo like Device name "HBO" which is on schedule/number "134" ? i use RM Bridge. (by the way Google home->smarthings->Rm Bridge->broadlink It works well )

Yes. You can do it now with multi keys, but I am also working on a smart app I hope to release in the next couple of days to let you set up keys 0-9 using any device (broadlink, harmony, other...) and easily input channel names and numbers the app would control. I wanted to link it to schedules direct or some other lineup grabber tool, but am having enough trouble as it is. I want to finish tomorrow but am having issues wiht a SmartApp command whose syntax seems to have changed. If i get a mostly useful version, but without the fancy smartApp stuff, I'll release it anyway for people to play with.

Based on some of the other things I am seeing on tho forum, I may also try to write a smartApp to set up Broadlink devices, without the fun2code setup step. (you would still need the bridge but maybe could set it all up from your ST app in a single step - that's one for later though).

it's amazing !!!!!!!!! yeeeeeeeeeeee

all it's work greate !

but if i whant to change channels like: HBO(135) after 5s CNN(165) , BBC (32) how can i do ?

i don't understand because each chanel is whith multikey (135) isn't whit single key (9). can you explain me how can i shoud do ?

i have smartthings and G H...until now it's amazing but i whant do change 8 channels (with multikey each) with one command like "preview channels" every 5,6 seconds(145 5s 183 5s 93 5s 8 5s... ) pls help me with this

I have now posted the channel adder I mentioned, in a beta form for testing. Check it out at https://beckyricha.github.io/SmartThings-TV-Channels.html

Now i have a GH->smartthings hub->android->rm pro. If i buy a rm mini3 how is work with both because i have 2 bedrooms ?

def on() {
sendEvent(name: "switch", value: "on")
delayBetween( [ delayBetween([put('on'),put('on2'),put('on3'),put('on4')],1000)
,delayBetween([put0('on')],2000)
,delayBetween([put2('on'),put2('on2'),put2('on3'),put2('on4')],1000)
,delayBetween([put0('on')],2000)
,delayBetween([put3('on'),put3('on2'),put3('on3'),put3('on4')],1000)
,delayBetween([put0('on')],2000)
,delayBetween([put4('on'),put4('on2'),put4('on3'),put4('on4')],1000)
,delayBetween([put0('on')],2000)
,delayBetween([put5('on'),put5('on2'),put5('on3'),put5('on4')],1000)
,delayBetween([put0('on')],2000)
,delayBetween([put6('on'),put6('on2'),put6('on3'),put6('on4')],1000)
,delayBetween([put0('on')],2000)
,delayBetween([put7('on'),put7('on2'),put7('on3'),put7('on4')],1000)
,delayBetween([put0('on')],2000)

],7000)

}

private put(toggle) {
def url1="192.168.0.235:7474"
def userpassascii= "username:password"
def userpass = "Basic " + userpassascii.encodeAsBase64().toString()
def toReplace = device.displayName
def replaced = toReplace.replaceAll(' ', '%20')
def hubaction = new physicalgraph.device.HubAction(
method: "GET",
path: "/code/protv%20$toggle",
headers: [HOST: "${url1}", AUTHORIZATION: "${userpass}"])
return hubaction
}
private put2(toggle) {
def url1="192.168.0.235:7474"
def userpassascii= "username:password"
def userpass = "Basic " + userpassascii.encodeAsBase64().toString()
def toReplace = device.displayName
def replaced = toReplace.replaceAll(' ', '%20')
def hubaction = new physicalgraph.device.HubAction(
method: "GET",
path: "/code/antena%20one%20$toggle",
headers: [HOST: "${url1}", AUTHORIZATION: "${userpass}"])
return hubaction
}
private put3(toggle) {
def url1="192.168.0.235:7474"
def userpassascii= "username:password"
def userpass = "Basic " + userpassascii.encodeAsBase64().toString()
def toReplace = device.displayName
def replaced = toReplace.replaceAll(' ', '%20')
def hubaction = new physicalgraph.device.HubAction(
method: "GET",
path: "/code/kanal%20d%20$toggle",
headers: [HOST: "${url1}", AUTHORIZATION: "${userpass}"])
return hubaction
}
private put4(toggle) {
def url1="192.168.0.235:7474"
def userpassascii= "username:password"
def userpass = "Basic " + userpassascii.encodeAsBase64().toString()
def toReplace = device.displayName
def replaced = toReplace.replaceAll(' ', '%20')
def hubaction = new physicalgraph.device.HubAction(
method: "GET",
path: "/code/hbo%20one%20$toggle",
headers: [HOST: "${url1}", AUTHORIZATION: "${userpass}"])
return hubaction
}
private put5(toggle) {
def url1="192.168.0.235:7474"
def userpassascii= "username:password"
def userpass = "Basic " + userpassascii.encodeAsBase64().toString()
def toReplace = device.displayName
def replaced = toReplace.replaceAll(' ', '%20')
def hubaction = new physicalgraph.device.HubAction(
method: "GET",
path: "/code/hbo%20two%20$toggle",
headers: [HOST: "${url1}", AUTHORIZATION: "${userpass}"])
return hubaction
}
private put6(toggle) {
def url1="192.168.0.235:7474"
def userpassascii= "username:password"
def userpass = "Basic " + userpassascii.encodeAsBase64().toString()
def toReplace = device.displayName
def replaced = toReplace.replaceAll(' ', '%20')
def hubaction = new physicalgraph.device.HubAction(
method: "GET",
path: "/code/hbo%20three%20$toggle",
headers: [HOST: "${url1}", AUTHORIZATION: "${userpass}"])
return hubaction
}
private put7(toggle) {
def url1="192.168.0.235:7474"
def userpassascii= "username:password"
def userpass = "Basic " + userpassascii.encodeAsBase64().toString()
def toReplace = device.displayName
def replaced = toReplace.replaceAll(' ', '%20')
def hubaction = new physicalgraph.device.HubAction(
method: "GET",
path: "/code/digi%20film%20$toggle",
headers: [HOST: "${url1}", AUTHORIZATION: "${userpass}"])
return hubaction
}
private put0(toggle) {
def url1="192.168.0.235:7474"
def userpassascii= "username:password"
def userpass = "Basic " + userpassascii.encodeAsBase64().toString()
def toReplace = device.displayName
def replaced = toReplace.replaceAll(' ', '%20')
def hubaction = new physicalgraph.device.HubAction(
method: "GET",
path: "/code/info%20on",
headers: [HOST: "${url1}", AUTHORIZATION: "${userpass}"])
return hubaction
}

def parse(description) {

}

like this i change 7 channels