LG WebOS better integration

will do this tomorrow somewhere between work :wink:

New release candidate arrived:

  • Toast message action cards now give error messages
  • Images send in Toast messages are resized to 200px
  • Added remote logging for debugging on/off states

Remote logging only sends logging when the tv is turned on or off with the following data:

{
  http: {
    clientHost: YOUR PUBLIC IP ADDRESS SO I KNOW WHO'S LOGLINE IT IS
    contentType: application/json
  },
  json: {
    status: THE STATE OF THE LAST MESSAGE FROM THE TV
    processing: LAST PROCESS STATE OF THE LAST MESSAGE FROM THE TV
    tvSetTo: true|false IF THE TV TURNED ON|OFF IN THE APP
  }
}

The data is sent to https://www.loggly.com/ where I can view it. No other information is logged and no other event in the app is sent to the remote. This is purely for me to find all the different possible states so I can create a super reliable powerListener.

If you have objections to the remote logging, please let me know and we’ll discuss it.

EDIT: Removed RC6 and updated to RC7 due to me forgetting to check for an empty value causing a crash in some cases…

@MaxvandeLaar Hi,

For me works RC4 perfect, no problems anymore. The app shows the correct status in 1seconds. Only for Info, my Tv is LG Oled 65G7. Perfect work @MaxvandeLaar :+1: :+1: :+1:

1 Like

Due to a small bug in the Toast Flow I quickly released RC7 :slight_smile: Sorry for the inconvenience

Sorry for the spam

1 Like

Hey everyone,

So, a long time ago I said I was working on creating Alerts with buttons right? I got it working :wink: I can now create an Alert (not a toast) and add buttons to it that can launch applications for example

very cool!!! now find a usecase for that…

@Kaoh, yep got no clue at the moment. Especially since you can create ‘infinite’ buttons so I also need to figure out what how to make it manageable if it ever ends up in the app.

So if anyone has a use case for this, let me know and we’ll discuss.

So, a message on screen with a button in it? Or am I really not getting it? :wink:

Yep, even multiple buttons, with custom actions :slight_smile:

This opens Netflix for example

1 Like

Yes could be Cool.
Usecase could be ask to switch to another input, e.g. when you watch Netflix and would like to be reminded to see the news at 20:00 every day.

Big question is if it also possible to trigger something at homey… i.E. some flow… that would make it super useful. E.g. question to dim the lights when Netflix starts…

@Ollem

Big question is if it also possible to trigger something at homey… i.E. some flow… that would make it super useful. E.g. question to dim the lights when Netflix starts…

This is actually my next step yes… If this works, I do see use cases, otherwise it’s somewhat more difficult

Niiiice.

Someone rings the bell on the front door, pop-up with button to show the videofeed from the door full screen? :smiley: Don’t know if it’s possible, but it’s the first thing that came up.

Are the buttons only to be used for internal functions of the tv or can you also launch external functions, on Homey f.e.?

@Martijn_C, at the moment only TV actions (and not many) I am figuring out if it’s possible to call urls so you can trigger something on Homey or somewhere else.

@Martijn_C, @Ollem, it doesn’t seem possible at first glance. Best bet would be to create an WebOS application that you can install, call that with an parameter so the WebOS application on the TV can send it back to Homey. Seems a bit exaggerated for the current use cases in my opinion. However, you are all free to create a WebOS TV application and let me know to call it correctly (app id and parameters) :wink:

1 Like

So now I officially released version 2.0.0.

After some release candidates, a shout out to the testers :wink:, I feel this version will significantly improve the way I can debug and support the and you all get much faster on/off state detection.

What’s in store for v2.1.0 you ask?

  • Reintroduction of the old on/off detection for those who experience issues with the new awesome detection mechanism. If you do and haven’t contacted me about it yet, please do so :slight_smile:
  • I hope to introduce IR signal to turn the TV on, so I can say my app does literally everything the official Athom app does.
2 Likes

You’re the best! Athom should be thankful :slight_smile:

1 Like

Excellent work Max :+1:,

I will try your new release asap.

Just a small question/request, is it possible to add an action card for the “when” trigger, based upon someone pressing the mute button?
I am trying to control my Devialet speakers via a small server-app, the only thing which could be very useful if I can send a mute command to the server based upon the event and not to check the mute status by a certain frequency.

@Jurgen, I am surprised I missed that one. Good call will definitely add it in v2.0.1 or v2.1.0 depending on how quickly things progress.

The app works great! :grinning: Good job! :+1:

@MaxvandeLaar Thanks! Looking forward to it.