Hi Redloro: Is it possible to reuse this app to control network controlled projector like Optoma UHD51? Just to turn on/off? any comment? Thank you
@nafis yep it looks like this could be modified to communicate with Optoma projectors using their PJLink protocol: https://www.manualslib.com/manual/679535/Optoma-Projectors.html?page=69#manual
Thank you Redloro. is there any example I can use? I am not a skilled programmer but can carryout the instruction.
Thank you Redloro I have used this for the last couple years. Changed network and accidentally deleted the device. I recreated the SmartApp and having an issue getting it to create my device.
I created the SmartApp and handler and published.
I installed the SmartApp on SmartThings app.
When I enter my hub, ip address, etc. and save it says an unexpected error has occurred.
How can I troubleshoot this?
Thanks
This is my Live Log Tracking from SmartThings
aaa5e41d-61ed-4f3d-acff-c530066a9bd5 12:03:07 PM: debug Outgoing: [requestId:8300933576869768812, payload:[devices:[f98ad820-39fa-4558-a44b-81186535d2fe:[online:true, on:false], 0efc501b-e545-4c07-b7b1-70c92937b12b:[online:true, on:false, brightness:36], eb73ed8a-f09b-4012-8bb9-59fbce942e7f:[online:true, on:false, brightness:36], c30d0431-4fe2-4dba-b89f-d5e0f63b9ddf:[online:true, on:false], 34a73ad5-94cb-4107-94d9-6eb37a942be5:[online:true, on:false], 08d364a4-fbd2-425a-85b1-90235d12f670:[online:true, on:false, brightness:16]]]]
aaa5e41d-61ed-4f3d-acff-c530066a9bd5 12:03:07 PM: debug queryDevice(08d364a4-fbd2-425a-85b1-90235d12f670)
aaa5e41d-61ed-4f3d-acff-c530066a9bd5 12:03:07 PM: debug queryDevice(34a73ad5-94cb-4107-94d9-6eb37a942be5)
aaa5e41d-61ed-4f3d-acff-c530066a9bd5 12:03:07 PM: debug queryDevice(c30d0431-4fe2-4dba-b89f-d5e0f63b9ddf)
aaa5e41d-61ed-4f3d-acff-c530066a9bd5 12:03:07 PM: debug queryDevice(eb73ed8a-f09b-4012-8bb9-59fbce942e7f)
aaa5e41d-61ed-4f3d-acff-c530066a9bd5 12:03:07 PM: debug queryDevice(0efc501b-e545-4c07-b7b1-70c92937b12b)
aaa5e41d-61ed-4f3d-acff-c530066a9bd5 12:03:07 PM: debug queryDevice(f98ad820-39fa-4558-a44b-81186535d2fe)
383a9dec-bda1-419d-87b5-bc9b5cf2c3e9 12:02:44 PM: trace getPhrases(), state.welcomeIssue = null
8f7646ae-f677-4d4e-be2d-e5e1b70db6bf 12:02:44 PM: error physicalgraph.exception.InconsistentDataException: DTH version mismatch for id:954b96c1-45ca-4e0c-8a62-9eb87c93298d and version:2 @line 89 (doCall)
383a9dec-bda1-419d-87b5-bc9b5cf2c3e9 12:02:40 PM: trace getPhrases(), state.welcomeIssue = null
I modified the device handler to use my Sirius presets as sources. I did it in an extremely hacky way to fit my use case, but it works… This could obviously be done a lot better, but I was looking to do something quick
To get this to work, replace the existing setSource method with the below code and in the settings for the device in the app, set your source names to: preset1, preset2, etc. You can then edit the name of the tiles within the same file to better differentiate your presets.
def setSource(id) {
//log.debug "source: "+getSourceName(id)
if(settings."source${id}".contains("preset")) {
sendCommand("/netusb/recallPreset?zone=${getZone()}&num=${settings."source${id}".substring(6)}&mode=autoplay_disabled")
} else {
sendCommand("/${getZone()}/setInput?input="+getSourceName(id)+"&mode=autoplay_disabled")
}
setSourceTile(getSourceName(id))
}
Nice code, I adapted it for my older HTR-4065. However, it needs a small addition. As things stand today the power down is a hard one, and the app cannot then turn on the receiver. In order to put the receiver into a soft shutdown the following line needs to preced the power=stanby command
sendCommand(“<YAMAHA_AV cmd="PUT"><${getZone()}><Net_Standby><Net_Standby_On>On</Net_Standby_On></Net_Standby></${getZone()}></YAMAHA_AV>”)
I’m working on getting volume control on my zone 2. It seems like it’s limited to the range of 30.5 to 80. So if I set the level to 50 it sets to the middle of that range. How can I change my range values?
UPDATE:
Problem is solved.
Not sure how, I only modified the names of the sources and republished the dth and smart app
Hi
I am using this app almost for a year but up to now was only to switch the device on.
Now I got more time and I am trying to set the input presets. I have sources on hdmi 1 and 2 and that goes fine. But I cant switch to my TV input.
Physically the TV is connected on HDMI OUT 1 and the audio source is then selected on AUDIO5 when using the remote control. When I try To put Audio 5 in the Smartthings device settings, nothing happens. As mentioned before switching to other HDMI inputs or tuner works.
Any suggestions?
The log is as follows (code in bold is when it goes wrong)
7447c26a-6068-443f-abf4-3a9d20b6fd6e 13:25:05: trace Body: [response_code:4]
7447c26a-6068-443f-abf4-3a9d20b6fd6e 13:25:05: trace Headers: [HTTP/1.1 200 OK:, Server:Network_Module/1.0 (RX-V685), Content-Type:application/json, Content-Length:19]
7447c26a-6068-443f-abf4-3a9d20b6fd6e 13:25:04: debug MusicCast Receiver send command: /main/setInput?input=AUDIO5&mode=autoplay_disabled
7447c26a-6068-443f-abf4-3a9d20b6fd6e 13:24:56: debug MusicCast Receiver send command: /main/setInput?input=hdmi1&mode=autoplay_disabled
7447c26a-6068-443f-abf4-3a9d20b6fd6e 13:24:36: trace Body: [response_code:0]
7447c26a-6068-443f-abf4-3a9d20b6fd6e 13:24:36: trace Headers: [HTTP/1.1 200 OK:, Server:Network_Module/1.0 (RX-V685), Content-Type:application/json, Content-Length:19]
7447c26a-6068-443f-abf4-3a9d20b6fd6e 13:24:36: debug MusicCast Receiver send command: /main/setInput?input=hdmi2&mode=autoplay_disabled
HI Redloro,
I have attempted to use your code many times and even without changing anything, but I keep getting an error on my phone when I try to add the Yamaha using the newly “my published” smart app. Under the smart hubs section it doesn’t allow me to select anything. Not sure if that it supposed to be happening, and then I enter the ip which for me is 10.0.0.9. and then after this I click on main and zone two for zones. And finally, When I click done, I get an error that says “Network of server error occurred. Try again later.”
do you have any suggestions to fix this error. The log on smartthings ide just says “debug getChildDevices(true), children=0”
thank you for your time.
Hey there. Since the yamaha does its volume in db its based on a log scale. The easiest way I found is to multiple the volume integer by 1.6 and then truncate the number since the yamaha api cant accept decimal numbers. So basically take the value multiple by 1.6 since the max volume on most yamaha is default to 160 and then cast the double back to an integer in groovy language. This gives you a pretty accurate linear scale for volume control.
cheers
Hi,
I’m sorry if this has been answered in the thread already, but I’ve read it and can’t figure it out.
I have a Yamaha rx-v 671 which I want to controle zone 2 with a button controller assigned through ABC button controller.
I get it to work in the app and I get the buttons to control on/off. In ABC there is an option to increase and decrease volume on speakers. Zone 2 is found and I set one button for increase and one for decrease, but when I push the button nothing happens.
Anybody knows what I need to do?
Thanks
I see this has been mentioned a few times but the last time it was mentioned was 2 years ago. Can anyone confirm if this device handler allows turning on party mode on/off using Google Assistant?
No it doesnt. Google does not recognize those buttons other than power, and possibly volume if you modify the code for the new app.
You can however create a smartthings scene to activate party mode and then tell google to run that scene.
I am currently working on a newer robust smart app that allows for multiple zones as well as google home interactions.
It is just difficult nowadays since the dev team doesn’t give alot of information on the new capabilities and google does not recognize the new capabilities yet.
Currently I am trying to integrate the new media input select capability, but have having some issues.
Anyway, in short @luder888 just create a scene in ST to enable party mode and then you can tell google to activate that scene.
Hey - I am trying to get this app to work but every time I enter the IP address of the Receiver the app errors out. “Something went wrong. Please try to install the SmartApp again.”
What am I doing wrong here?
thanks!
Hey all,
Just got my first hub yesterday and am trying to consolidate everything into smartthings.
Im currently using HA bridge to run my amps (Alexa, turn on the Bedroom Echo for turning it on and switching to AV5. Works great, but everything is annoyingly a light lol)
Im interested to utilise this in the same way, but i’m really not sure where to start. I have the smart app and the device handler installed. But i’m guessing the smart app is only for music cast?
Do I need to add a device for each function? like above for HA bridge… or how does this work?
Hi @redloro
Is this also compatible with the network-enabled Yamaha Soundbar? (I.e. Yamaha YAS209).
I saw some discussion on this thread about support for changing Sound Programs, but I don’t see that in the app, was this ever added and I am just missing it? I would love to be able to turn Straight mode on or off this way.
Hi guys, I have Yamaha FTR-4066 and I can’t connect it as a device. I set app and handler but device is to working with it. Where is the problem? Thanks
Everything works on the Yamaha but Zone B or 2 won’t turn on?