This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.

The Homey Community has been moved to https://community.athom.com.

This forum is now read-only for archive purposes.

[App][Beta testing]Sony Bravia(KD, KDL series 2013+) AndroidTV

135

Comments

  • The app is really working great over here. But sometimes a second command after powering on tv isn't starting. Example: I have a flow that powers on the tv, next command (with a 6 second delay) is to change the input to HDMI2. That seccond command works sometimes, and sometimes not.
  • MarcoFMarcoF Member
    @keverjeroen ;

    strange! 

    Could be the TV is refusing the requests or the are timing out.
    May I ask you to create the 2 test flows as described in the readme on Github?


  • keverjeroenkeverjeroen Member
    edited July 2016
    @MarcoF ;

    Should this work too? Or do I really have to make 2 flows?


  • MarcoFMarcoF Member
    Didn't tested it.
    You could make 3 flows and see which one trigger.
  • @MarcoF
    Hi, I remove de app and install the new version.
    Automatic does not work.
    Manual works for a few seconds and than shows the message: "Req timeout" instead of "Please set PSK" like it was in the old version.
    We are moving in the right direction.  :) 
  • MarcoFMarcoF Member
    @LexJanssen ;
    "Req. timeout" is a known issue....
    Could you try a PTP (Pull the plug/cold reboot) and see if the device comes available?
  • @ MarcoF;
    Ok it's working!!!!!!!!!!
    Thanks a lot.
    And now testing with flows...........
  • MarcoFMarcoF Member
    "Great"! 
    Let me know your further findings, because I'm experiencing the same issue with timeouts and refused connections. For me the PTP method fixes it for a few hours and max 1-2 days. 
  • @MarcoF;
    Everything works except the TVon cart.
    I let you know when there is a time out.
  • Hi MarcoF,

    I have a suggestion:  is it possible to make a card in which you can put nubers (0 to 9) so you can jump to a channel on your tv.
    You can say against Homey: TV SBS6 or TV Utrecht. you can then send to the TV number 6 or 3 and 0.
    That works for me in OpenRemote with the HTTP POST command.

    I use for TV on, the Wake-On-Lan Protocol to the TV.
  • MarcoFMarcoF Member
    edited July 2016
    @LexJanssen ;;
    The API supports "NumXX" set.
    I think this makes it possible to set the TV at a certain channel, but I didn't test it.

    About the TV-on, does your TV has an "sleep/hibernate" option?
    Our TV has several power off options and maybe your TV isn't set to the option were it can react on API calls.
    The same goes for;
    Martijn said:
    Great work, my non-Android  Sony TV is working and can be controlled with your app.. 
    One small thing , the "TV on" command isn't working yet... 

    My BRAVIA model number: KD-49X8505B


    Could you guys follow this and post the results of your TV's?
    https://forum.athom.com/discussion/comment/23221/#Comment_23221

    If the result contains "WakeUp" with Value "AAAAAQAAAAEAAAAuAw==" then the supports the "Power On" command of the "Power On" card and its a point of configuring on the right powerOff setting.
  • @MarcoF,
    Unfortunately is WakeUp not in the result file. :#
    Hou can I test "NumXX", or is in not possible in de app yet.
    I have Num1 till Num12 in de json file.
  • @MarcoF,
    Don't worry for the WakeUp command.
    I tested it with de app "Wake on LAN" and that works.
  • MarcoFMarcoF Member
    Wake on Lan is pretty "easy" so i want to add this to the app. 
    I think the manual add will be choice for using WOL
  • MarcoFMarcoF Member
    Just did a quick update.
    This update adds a first attempt for WOL.

    How does it work;
    In the settings of the device I added 2 fields; UseWol / Mac Address

    If MacAddress is not "00:00:00:00:00" and not empty/"" and  UseWol is checked, then the Power On card will use WOL instead of the normal IP communication.

    Hopefully it works and let me know your findings!!

  • WOL in the Bravia app doesn't work yet... It does work when I create a flow with a WOL card of the WOL app.
    Low priority fix because we can work around easily... :) Great work, thanks!
  • MarcoFMarcoF Member
    Were you able to set a mac address and enable wol for the device? 

    And for now WOL only could work with and flow card and not through a mobile card from the ios/android app or WebGui. 


  • MarcoF said:
    @keverjeroen ;

    strange! 

    Could be the TV is refusing the requests or the are timing out.
    May I ask you to create the 2 test flows as described in the readme on Github?



    Hi Marco! I've tested it this weekend, but I get no errors (refusing requests / time outs) when I run my flow. Can it be that the 'wait' part in the action isn't working as it should? Maybe it fires both actions at the same time, and doesn't wait the 6 seconds.
  • MarcoFMarcoF Member
    edited July 2016
    @keverjeroen ;
    hmmm don't known why this happen.
    The app write logline with time/action/results of a Flow ActionCard.
    So you could try to --run the app and then trigger the flow with this issue.

    If every thing is OK then it should show something like this;
    ======= send command! ==========
    sendCommand: actionCard:tv off
    sendCommand: Command time: 2016-07-04T09:23:16.933Z
    statusCode:: 200
    sendCommand: command succes
    In your case you should see 2 of these "block" and X secs after each other and Command time should show the time diff/delay.

  • Hi MarcoF,
    Can you also make a flowcard to send NumXX to the TV.

    The APP is working fine for me.
    Thanks for the effort you have put in there. 
  • Hi MarcoF,
    Can you also make a flowcard to send NumXX to the TV.

    The APP is working fine for me.
    Thanks for the effort you have put in there. 
    And maybe also the "enter" button or "left"/"right" button... I need one of them to wake my Apple TV. I tried to replace the code of the EPG Guide button, but that doesn't work... I don't know why!
    Thanks!
  • MarcoF said:
    @keverjeroen ;
    hmmm don't known why this happen.
    The app write logline with time/action/results of a Flow ActionCard.
    So you could try to --run the app and then trigger the flow with this issue.

    If every thing is OK then it should show something like this;
    ======= send command! ==========
    sendCommand: actionCard:tv off
    sendCommand: Command time: 2016-07-04T09:23:16.933Z
    statusCode:: 200
    sendCommand: command succes
    In your case you should see 2 of these "block" and X secs after each other and Command time should show the time diff/delay.

    I did this with the latest version of the app, but now it keeps working.. lol All the commands trigger at the right time and the TV turns on and changes the input.. So problem solved I guess..

    p.s. are you planning to publish the app in the store?
  • MarcoFMarcoF Member
    Great to head it works now! 

    I will submit it, but I PTP on my homey so development and such is "down". Will do some small card updates and it's up to you guys to test is (this coding part is no rocket science, so I believe it will work with Max 2 "releases" 
  • MarcoFMarcoF Member
    Going to submit a new version with Num0-12/Enter cards.
  • Great work Marco! I will try (and test) as soon as possible...
    Thanks for implementing the Enter card, its heavy appreciated ;)


  • After I changed the code in drivers.js to AAAAAQAAAAEAAABlAw and reinstalled the app, "Enter" works...
    Thanks for adding!

  • MarcoFMarcoF Member
    @Martijn
    Thanx! The code you mentioned is "confirm". Will add the confirm code in the next update. 
  • @MarcoF
    Ok the number cards works good.
    I have a stange behavior when using numbers like 30. Send number 3 wait 2 seconds and then number 0.
    TV goes to channel 3. 
  • MarcoFMarcoF Member
    Just submitted the app to the app store. 

    Thanx for all your testing!! 
  • fiekfiek Member
    edited July 2016
    MarcoF said:
    Just submitted the app to the app store. 

    Thanx for all your testing!! 
    Thanks again making the app  :)
Sign In or Register to comment.