Homey Community Forum

Logic make web request

#1

Hello!

As Sony Android app no longer works on V2. I decided to make a flow which will make a POST request to my TV.

I’ve found a Siri shortcut for it: https://www.reddit.com/r/shortcuts/comments/9oh4zh/control_sony_tv_power_offon_and_other_tv_commands/

This shortcut works pretty well.

I know that homey has a http request app and also in v2 it can make requests via logic make web request. So I made a flow with logic card like this:
Method: POST
URL: http://192.168.8.10/sony/IRCC
Headers: Content-Type:text/xml: charset=UTF-8 SOAPACTION:“urn:schemas-sony-com:service:IRCC:1#X_SendIRCC” X-Auth-PSK:sony
Body: <?xml version="1.0"?><s:Envelope xmlns:s=“http://schemas.xmlsoap.org/soap/envelope/” s:encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/”><s:Body><u:X_SendIRCC xmlns:u=“urn:schemas-sony-com:service:IRCC:1”> AAAAAQAAAAEAAAAVAw==</u:X_SendIRCC></s:Body></s:Envelope>

Everything just copied from shortcut.

But it returns 403, which means no pre-shared-key
I didn’t use a {}.

I think problem with headers.

Could anyone help, how should I list headers there?

Or may be how should use this request in http request app?

Please help)

#2

Thanks to Ricardo Snoek, Jorden Chamid (legacy), Marco Frijmann (legacy).
They just released new Sony Android app. Thanks!

1 Like