OPPO UDP-203 IP control - HTTP binding

Hi! :slight_smile:

I would like to control the OPPO UDP-203 bluray player using the HTTP protocol
last night I listened to the transmission between the app and sniffed something
I have some commands that work after entering in web browser like a normal web address
e.g.

http://192.168.1.xx:436/sendremotekey?%7B%22key%22%3A%22POW%22%7D

,

I installed http binding
and I added something like this in .items:

Switch FF_LivingRoom_OPPO_Power "OPPO Player" <player> (FF_LivingRoom) {http="<[ON:GET:http://192.168.1.xx:436/sendremotekey?%7B%22key%22%3A%22POW%22%7D]" }
I also tried {http=">[ON:POST:http://192.168.1.xx:436/sendremotekey%7B%22key%22%3A%22POW%22%7D]"} or 
{http=">[ON:POST:http://192.168.1.xx:436/sendremotekey?{"key":"POW"}]"}

however, when I use Switch it does not react
i also try send 192.168.1.xx/web/remotecontrol?command=116 to enigma2 sat receiver but also without success
what am I doing wrong?

I can offer the following:

That should fix it.

thank you for your replay Rich!
i try > and <, i spend couple of hours trying to get this work
now i have:

 {http=">[ON:GET:http://192.168.1.26:436/sendremotekey?%7B%22key%22%3A%22MUT%22%7D]" }

must be %… syntax, because otherwise (if i will use “”) the sitemap is broken

events.log:

2018-02-20 16:36:32.823 [vent.ItemStateChangedEvent] - FF_LivingRoom_OPPO_Eject changed from ON to OFF

2018-02-20 16:36:37.060 [ome.event.ItemCommandEvent] - Item 'FF_LivingRoom_OPPO_Eject' received command ON
==> /var/log/openhab2/openhab.log <==
2018-02-20 16:36:37.029 [WARN ] [org.apache.karaf.services.eventadmin] - EventAdmin: Exception during event dispatch [org.osgi.service.event.Event [topic=openhab/command/FF_LivingRoom_OPPO_Eject] {bridgemarker=true, item=FF_LivingRoom_OPPO_Eject, command=ON} | {org.osgi.service.cm.ManagedService, org.osgi.service.event.EventHandler}={event.topics=openhab/*, service.pid=org.openhab.http, component.name=org.openhab.binding.http, component.id=14, service.id=311, service.bundleid=228, service.scope=bundle} | Bundle(org.openhab.binding.http_1.11.0 [228])]
java.util.UnknownFormatConversionException: Conversion = 'k'

	at java.util.Formatter$FormatSpecifier.conversion(Formatter.java:2691) [?:?]

	at java.util.Formatter$FormatSpecifier.<init>(Formatter.java:2720) [?:?]

	at java.util.Formatter.parse(Formatter.java:2560) [?:?]

	at java.util.Formatter.format(Formatter.java:2501) [?:?]

	at java.util.Formatter.format(Formatter.java:2455) [?:?]

	at java.lang.String.format(String.java:2940) [?:?]

	at org.openhab.binding.http.internal.HttpBinding.formatAndExecute(HttpBinding.java:267) [228:org.openhab.binding.http:1.11.0]

	at org.openhab.binding.http.internal.HttpBinding.internalReceiveCommand(HttpBinding.java:130) [228:org.openhab.binding.http:1.11.0]

	at org.openhab.core.binding.AbstractBinding.receiveCommand(AbstractBinding.java:94) [207:org.openhab.core.compat1x:2.2.0]

	at org.openhab.core.events.AbstractEventSubscriber.handleEvent(AbstractEventSubscriber.java:45) [207:org.openhab.core.compat1x:2.2.0]

	at org.apache.felix.eventadmin.impl.handler.EventHandlerProxy.sendEvent(EventHandlerProxy.java:415) [3:org.apache.karaf.services.eventadmin:4.1.3]

	at org.apache.felix.eventadmin.impl.tasks.HandlerTask.runWithoutBlacklistTiming(HandlerTask.java:82) [3:org.apache.karaf.services.eventadmin:4.1.3]

	at org.apache.felix.eventadmin.impl.tasks.SyncDeliverTasks.execute(SyncDeliverTasks.java:104) [3:org.apache.karaf.services.eventadmin:4.1.3]

	at org.apache.felix.eventadmin.impl.tasks.AsyncDeliverTasks$TaskExecuter.run(AsyncDeliverTasks.java:166) [3:org.apache.karaf.services.eventadmin:4.1.3]
.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

	at java.lang.Thread.run(Thread.java:748) [?:?]

==> /var/log/openhab2/events.log <==

2018-02-20 16:36:37.185 [vent.ItemStateChangedEvent] - FF_LivingRoom_OPPO_Eject changed from OFF to ON

i try to send curl command using ssh on openbabianpi and works :slight_smile:

[17:13:22] openhabian@local:~$ curl -i -H "Accept: application/json" -H "Content-Type: application/json" http://192.168.1.26:436/sendremotekey?%7B%22key%22%3A%22MUT%22%7D

HTTP/1.1 200 OK
Content-Type: text/plain; charset=utf-8
Content-Length: 25
Cache-Control: no-cache
Pragma: no-cache
Expires: -1
{"success":true,"msg":""}
http=">[ON:GET:http://192.168.1.26:436/sendremotekey?%7B%22key%22%3A%22MUT%22%7D]"

I don’t believe you can use the % symbol in the url portion of the item binding, except as defined here.

Hi did you do it?..
thanks