Hello,
is it possible to add support for STR-DN1050 or other devices. API is very similar to BraviaTV, but registration do not require any PIN. I can manage my device with mobile, and when I attach my device and sniff traffic, I found API is the same.
there is an example from curl:
curl -s -H “X-CERS-DEVICE-ID: TVSideView:98-4c-43-36-8c-0c” http://192.168.10.197:50001/cers/ActionList.xml
<actionList><action name="register" mode="1" url="http://192.168.10.197:50001/cers/register" /><action name="getSystemInformation" url="http://192.168.10.197:50001/cers/getSystemInformation" /><action name="getRemoteCommandList" url="http://192.168.10.197:50001/cers/getRemoteCommandList" /><action name="getStatus" url="http://192.168.10.197:50001/cers/getStatus" /><action name="getText" url="http://192.168.10.197:50001/cers/getText" /><action name="sendText" url="http://192.168.10.197:50001/cers/sendText" /></actionList>
or
curl -s -H “X-CERS-DEVICE-ID: TVSideView:98-4c-43-36-8c-0c” http://192.168.10.197:50001/cers/getRemoteCommandList
<remoteCommandList><command name="STR:PowerMain" type="ircc" value="AAAAAgAAADAAAAAVAQ==" /><command name="Mute" type="ircc" value="AAAAAgAAADAAAAAUAQ==" /><command name="MuteOn" type="ircc" value="AAAAAwAADRAAAAAgAQ==" /><command name="MuteOff" type="ircc" value="AAAAAwAADRAAAAAhAQ==" /><command name="Confirm" type="ircc" value="AAAAAgAAADAAAAAMAQ==" /><command name="Home" type="ircc" value="AAAAAgAAADAAAABTAQ==" /><command name="Display" type="ircc" value="AAAAAgAAADAAAABLAQ==" /><command name="Return" type="ircc" value="AAAAAwAAARAAAAB9AQ==" /><command name="Options" type="ircc" value="AAAAAwAAARAAAABzAQ==" /><command name="STR:FunctionPlus" type="ircc" value="AAAAAgAAALAAAABpAQ==" /><command name="STR:FunctionMinus" type="ircc" value="AAAAAgAAALAAAABqAQ==" /><command name="Play" type="ircc" value="AAAAAwAAARAAAAAyAQ==" /><command name="Pause" type="ircc" value="AAAAAwAAARAAAAA5AQ==" /><command name="Stop" type="ircc" value="AAAAAwAAARAAAAA4AQ==" /><command name="Next" type="ircc" value="AAAAAwAAARAAAAAxAQ==" /><command name="Prev" type="ircc" value="AAAAAwAAARAAAAAwAQ==" /><command name="STR:Shuffle" type="ircc" value="AAAAAwAAARAAAAAqAQ==" /><command name="STR:Repeat" type="ircc" value="AAAAAwAAARAAAAAsAQ==" /><command name="STR:FF" type="ircc" value="AAAAAwAAARAAAAA0AQ==" /><command name="STR:FR" type="ircc" value="AAAAAwAAARAAAAAzAQ==" /><command name="VolumeUp" type="ircc" value="AAAAAgAAADAAAAASAQ==" /><command name="VolumeDown" type="ircc" value="AAAAAgAAADAAAAATAQ==" /><command name="Up" type="ircc" value="AAAAAgAAALAAAAB4AQ==" /><command name="Down" type="ircc" value="AAAAAgAAALAAAAB5AQ==" /><command name="Left" type="ircc" value="AAAAAgAAALAAAAB6AQ==" /><command name="Right" type="ircc" value="AAAAAgAAALAAAAB7AQ==" /><command name="STR:Num1" type="ircc" value="AAAAAgAAADAAAAAAAQ==" /><command name="STR:Num2" type="ircc" value="AAAAAgAAADAAAAABAQ==" /><command name="STR:Num3" type="ircc" value="AAAAAgAAADAAAAACAQ==" /><command name="STR:Num4" type="ircc" value="AAAAAgAAADAAAAADAQ==" /><command name="STR:Num5" type="ircc" value="AAAAAgAAADAAAAAEAQ==" /><command name="STR:Num6" type="ircc" value="AAAAAgAAADAAAAAFAQ==" /><command name="STR:Num7" type="ircc" value="AAAAAgAAADAAAAAGAQ==" /><command name="STR:Num8" type="ircc" value="AAAAAgAAADAAAAAHAQ==" /><command name="STR:Num9" type="ircc" value="AAAAAgAAADAAAAAIAQ==" /><command name="STR:Num0" type="ircc" value="AAAAAgAAADAAAAAJAQ==" /><command name="STR:PureDirect" type="ircc" value="AAAAAwAABRAAAAB5AQ==" /></remoteCommandList>
when I integrate it with mobile device, I found the header is added to each request:
X-CERS-DEVICE-ID: TVSideView:98-4c-43-36-8c-0c
Assuming it’s possible to add integration and help others to support devices, I switch from openhab to home assistant, Openhab support it. maybe it’s possible to integrate to home assistant to?
Ed