Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

Sony TV - VD


Question

Posted

Im hoping someone can help me, although ive been researching and following fibaro for quite some time ive only just bought all my equipment.

 

I have a Sony TV (2014 4k) and i do have the plugin to control the tv which works very very well.  However, i want to create my own virtual device to be able to select a channel with one click. Say a button with the channel logo as the icon and it sends the command to the TV. Also i want to be able to have a button to be able to select a specific HDMI input.

 

I know it will require the Sony HTTP commands, but can anyone put me on the right track?  Cheers

Recommended Posts

  • 0
  • Inquirer
  • Posted

    Does anyone also know how to check the state of the Sony TV? (On or Off).  I would like to setup a bedtime scene that turns everything off, but the Sony TV plugin only has a power button and if i use that it would just turn the tv on if it is off.

     

    Is there anyway to look at the LUA code of the Sony TV plugin?

     

    Thank you

    • 0
  • Inquirer
  • Posted

    Ok so i would love some help!  im trying to figure out how i can program a string or LUA code in a virtual device for a button.

     

    i have some codes for the necessary buttons, but i have no idea how to write them in.  So for example, this is the code i have:

     

     Volume Down

    <?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="

    Please login or register to see this link.

    Please login or register to see this link.

    xmlns:u="urn:schemas-sony-com:service:IRCC:1"><IRCCCode>AAAAAQAAAAEAAAATAw==</IRCCCode></u:X_SendIRCC></s:Body></s:Envelope>

     

    How do i put that into a button where it it will turn the volume down on my Sony TV?

    Alternatively i have this code, 

     

    'VolumeDown': 'AAAAAQAAAAEAAAATAw==',

     

    Does this just go in as a string command, or do i need to add something else in?  Please someone help!  THanks

    • 0
    Posted

    This is how I do it with a DLNA device, might give you some ideas.

     

    Please login or register to see this image.

     

    Intels DeviceSpy is an efficient way to get available actions.

    • 0
    Posted

    Ok so i would love some help!  im trying to figure out how i can program a string or LUA code in a virtual device for a button.

     

    i have some codes for the necessary buttons, but i have no idea how to write them in.  So for example, this is the code i have:

     

     Volume Down

    <?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="

    Please login or register to see this link.

    Please login or register to see this link.

    xmlns:u="urn:schemas-sony-com:service:IRCC:1"><IRCCCode>AAAAAQAAAAEAAAATAw==</IRCCCode></u:X_SendIRCC></s:Body></s:Envelope>

     

    How do i put that into a button where it it will turn the volume down on my Sony TV?

    Alternatively i have this code, 

     

    'VolumeDown': 'AAAAAQAAAAEAAAATAw==',

     

    Does this just go in as a string command, or do i need to add something else in?  Please someone help!  THanks

     

     

    Trying to do the same thing

     

    Did Dhanjel suggestion work for you ?

    • 0
    Posted
    On 01/07/2015 at 11:32 AM, pt13 said:

     

    Hello, the SONY plugin does not work. I can not have the code "request authorization key."

    Is it someone has a solution for operating an VD for a Sony tv?

    THX

    • 0
    Posted

    I'm sure I posted some info on this not too long ago when I had the same issues myself after getting a Sony TV.

     

    A quick search and you will find this thread which should be pretty helpful: 

    Asking the TV will give you all available commands, here's the output from my TV which probably is pretty much the same for most newer Sony TVs.

     

    Please login or register to see this code.

     

     

    • 0
    Posted

    solved mine by moving away from IP and using a Global Cache GC-100-12

     

     

    • 0
    Posted
    On 26/11/2016 at 11:02 PM, AutoFrank said:

    solved mine by moving away from IP and using a Global Cache GC-100-12

     

     

     

    i would do the same but cannot crack picture off! :(

    • 0
    Posted
    11 hours ago, fi-bar-oh said:

     

    i would do the same but cannot crack picture off! :(

     

    pity..

    what's "picture off" ?

    • 0
    Posted
    20 minutes ago, AutoFrank said:

     

    pity..

    what's "picture off" ?

     

    i can find the http command for making the tv screen BLACK basically no picture! so when i roll down projector screen in front of it i am saving energy etc... also no backlight behind screen with screen flicker.

     

    But with IR i am struggling to get it working as 'Blank' or 'No Picture' is not a key on the remote that i can learn.

    • 0
    Posted
    7 minutes ago, fi-bar-oh said:

     

    i can find the http command for making the tv screen BLACK basically no picture! so when i roll down projector screen in front of it i am saving energy etc... also no backlight behind screen with screen flicker.

     

    But with IR i am struggling to get it working as 'Blank' or 'No Picture' is not a key on the remote that i can learn.

     

    I see...

    That's going to be difficult

    one option might be to select a blank source (HDMI1 or Prg1, etc) but that still leaves the backlight issue..

     

    Would turning off the TV be an option ?

    I have a 'ping' script I use to see if my TV is on if that any help.

    If it's off when the projector screen s lowered - leave it off

    If its on when the projector screen is lowered - turn it off  

    Please login or register to see this link.

     

    -frank

     

    • 0
    Posted
    Just now, AutoFrank said:

     

    I see...

    That's going to be difficult

    one option might be to select a blank source (HDMI1 or Prg1, etc) but that still leaves the backlight issue..

     

    Would turning off the TV be an option ?

    I have a 'ping' script I use to see if my TV is on if that any help.

    If it's off when the projector screen s lowered - leave it off

    If its on when the projector screen is lowered - turn it off  

    Please login or register to see this link.

     

    -frank

     

     

    because i have a crappy sonos playbar with only toslink and no hdmi i require the use of spdif from tv! so if i change the channel i change the audio! which means picture and no audio! i have had it working with http before but would love to find a working IR command for this! i found

     

    sendir,1:1,1,40000,1,1,96,24,24,24,48,24,48,24,48,24,48,24,48,24,24,24,48,24,24,24,24,24,24,24,24,980

     

    which says it would turn off the picture on a sony TV but it fails to work... then press again and picture would come back!

     

    the plan was if W > 10 (projector on and screen = set position then) picture off

    else

    reverse this process

     

    if you have a sony tv and can hook up a spare button for testing could you try that command to see if it blanks your display please :)

    • 0
    Posted
    7 minutes ago, fi-bar-oh said:

     

    because i have a crappy sonos playbar with only toslink and no hdmi i require the use of spdif from tv! so if i change the channel i change the audio! which means picture and no audio! i have had it working with http before but would love to find a working IR command for this! i found

     

    sendir,1:1,1,40000,1,1,96,24,24,24,48,24,48,24,48,24,48,24,48,24,24,24,48,24,24,24,24,24,24,24,24,980

     

    which says it would turn off the picture on a sony TV but it fails to work... then press again and picture would come back!

     

    the plan was if W > 10 (projector on and screen = set position then) picture off

    else

    reverse this process

     

    if you have a sony tv and can hook up a spare button for testing could you try that command to see if it blanks your display please :)

     

    Just tried that on my 2 yr old sony and no luck but I have found that even same make TV's differ a good bit... sorry

    I've never had much luck with ir codes off the internet. all my codes have been learned direct from my remotes

     

    couple of things to watch for ...

    • 0x0D0x0A at the end of the ir string
    • check 'wait for response'
    • the global cache I have has different ports and the first two numerical values represent this port (4,1 5,2 5,1 etc). might be worth checking that with your device
    • I've also had to apply an offset to some of my 'learned' commands but that's applied at the learn stage. not sure how to post apply it.

     

    beyond that .. I'm out of ideas... :-(

     

    -frank 

     

     

     

     

    • 0
    Posted

    yup out of ideas here aswell very strange! all the other codes work and the module/connector/repeat is matching... i did play with repeat as the sony codes seem a lot shorter! i do use lua and not string for flexibility aswell!

     

    if only they included that picture off button on the remote! i can macro it and flick between options on tv to have the same result, but a one button press if always better!

     

    thanks anyway for trying... that says to me that the codes ahev changed in some way

    • 0
    Posted
    7 minutes ago, fi-bar-oh said:

    yup out of ideas here aswell very strange! all the other codes work and the module/connector/repeat is matching... i did play with repeat as the sony codes seem a lot shorter! i do use lua and not string for flexibility aswell!

     

    if only they included that picture off button on the remote! i can macro it and flick between options on tv to have the same result, but a one button press if always better!

     

    thanks anyway for trying... that says to me that the codes ahev changed in some way

     

    one last one 

     

    Could you feed the sonos playbar in a different way/source so the TV can stay off

    • 0
    Posted
    2 minutes ago, AutoFrank said:

     

    one last one 

     

    Could you feed the sonos playbar in a different way/source so the TV can stay off

     

    i could but it would meaning splitting toslink or relying upon kodi for drm content... at the moment kodi is my main central controller for ALL tv content! and all my cable management is in the wall (bit of a dodge if i can scenario)

     

    i shall investigate more into this picture off... might even invest in a cheap harmony remote to see if i can mimic the ir code that way

    • 0
    Posted
    36 minutes ago, fi-bar-oh said:

     

    i could but it would meaning splitting toslink or relying upon kodi for drm content... at the moment kodi is my main central controller for ALL tv content! and all my cable management is in the wall (bit of a dodge if i can scenario)

     

    i shall investigate more into this picture off... might even invest in a cheap harmony remote to see if i can mimic the ir code that way

    good luck with it....

     

    • 0
    Posted
    17 minutes ago, AutoFrank said:

    good luck with it....

     

     

    fixed it! its a sony issue and needed the commands repeated now it works perfectly!

    • 0
    Posted
    15 minutes ago, fi-bar-oh said:

     

    fixed it! its a sony issue and needed the commands repeated now it works perfectly!

     

    Cool :-)

     

     

    • 0
    Posted (edited)

    Hi everybody,

    I'm trying to send a HTTP string command to a Sony TV from a VD, which worked from the Simple Rest Client, muting the TV, but i can't make it work from the VD button string command.

    URL: http:/192.168.1.5/sony/IRCC

    Method: POST

    Header: X-Auth-PSK: 1111

    Data: <?xml version="1.0" encoding="utf-8"?><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"><IRCCCode>AAAAAQAAAAEAAAAUAw==</IRCCCode></u:X_SendIRCC></s:Body></s:Envelope>

    VD settings:

    IP: 192.168.1.5

    Port: 80

    And my string is:

    POST /sony/IRCC HTTP/1.00x0D0x0A0x0D0x0AContent-Type: text/xml; charset=UTF-8SOAPAction: "urn:schemas-sony-com:service:IRCC:1#X_SendIRCC"X-Auth-PSK: 1111Content-Length: 308Cache-Control: no-cache<?xml version="1.0" encoding="utf-8"?><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"><IRCCCode>AAAAAQAAAAEAAAAUAw==</IRCCCode></u:X_SendIRCC></s:Body></s:Envelope>0x0D0x0A0x0D0x0A

    Can anybody help me on this one?

    Edited by sebastian.manea

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...