Wake Home Theater? - Tasker Tips & Tricks

Hi,
I shall want to turn on my Home Theater with Tasker.
It's possible?
I know that it is possible with Onkyo remote or peel smart remote but I would want use run tag and to tasker.
Thank you.
(sorry for my English)

I have a project set up to show a permanent notification when connected to my home WiFi. This has a button linked to a task which pings the server & depending on response either sends a wake on LAN command or sends a shutdown command.
It requires secure settings for the ping, WoL Wake On Lan Wan (in play store), Droid Remote Lite for the shutdown option (also in play store but requires a small Java app running on PC) & also auto input to action the shutdown command in Droid remote. I've attached the xml you'd need to add your wifi SID to the profile trigger, setup WOL & link the plugin in tasker to the profile, setup Droid remote for your Home Theatre's IP & change the IP in the secure settings part of the task for the ping. There may be simpler ways if doing the shutdown element but I'm not experienced enough with tasker yet. Any suggestions on improvement welcome.

News mustn't home screen and maybe add every language

There are many ways to achieve this depending what hardware you have at home. I'm able to turn on my TV, Amplifier and HTPC using Tasker and a Veralite Z-Wave hub.
I first sent the "RSPW2" code to my TV which is connected to my LAN using WiFi so the TV can monitor the network for remote control codes even when its in standby mode instead of only monitoring code from it's RS232 port.
Then I created a scene in my VeraLite to send the "POWR1" code (Power On) to the TV which will turn on the TV and the Audio amplifier at the same time since both of them are HDMI CEC compatible. The scene is also sending a wake-on-lan command to the HTPC (I don't have any HDMI-CEC adapter on my HTPC.
Finally used Tasker and the AutoVera plug-in to start that Vera scene.
You can do the same thing for pretty much all TV brands, you just need to find the codes table for your tv brand, most of the time its in the user's manual.
Well if someone need a detailed guide for this kind of Tasker/Z-Wave/Home Theater setup, let me know.

Hi,
I found the solution with remote AnyMote. the application offers Tasker tasks.

Related

[Q] Remote App and the Apple TV

Has anyone been able to set up the Remote app to work with the Apple TV? I gave it a shot but it didn't seem to work.
Thanks!
*bump* cause I'm trying to do the same thing...
Yes i got it to work. I setup another remote profile and I believe I setup the new profile as another TV but of course this one controls the Apple TV. so my channel buttons are grayed out in this remote. To program the directional buttons, menu, play and pause I "trained" each command by pointing my Harmony One into the HTC One's IR window and held down the command until the HTC One learned it. It works great

How Chromecast Works

http://computers-solution.com/how-chromecast-works-chromecast-protocol-described/
Google in their This summer event introduced a brand new media device that offers to take advantage from the Biggest display within your house without including any type of difficulties.
All product internet titans: Apple, Google and Microsoft have been attempting to simplify discussing media to HDTVs and which makes them wiser. Google itself had produced Google TV, Nexus Q and today Chromecast.
chromecast-hdmi
Chromecast is first Zero config music, video discussing to TV service, beating the simplicity anything else on the market. Discussing any media or browser tab from device to TV is simply a tap away.
Just how performs this fascinating a single click discussing works?
Chromecast Protocol Described
DLNA + UPnP allows you stream media from mobile phones, laptops to compatible HDTVs. But you will find plenty of steps involved. Mostly, these solutions are complex enough for any typical home user. But Chromecast uses UPnP and DIAL protocol to eradicate intrication.
dial-discovery
DIAL (Uncover And Launch Protocol) uses UPnP (Universal Plug N Play) protocol for network element discovery. Upnp multicasts and probes for available audience and senders on the given local Wi-fi compatability network. So basically moment clicking Chromecast icon on Chrome tab or android device, it probes and finds out First screen DIAL server (Chromecast device blocked to High definition tv within this situation). Once discovered, it synchronizes information about how for connecting into it.
According to Leos Nicholas, the straightforward Service Discovery Protocol (SSDP) response states the unit is running Linux: “Linux/3..8-g702c5ee, UPnP/1., Portable SDK for UPnP products/1.6.18″ and also the “X-User-Agent” is “redsonic”. So its basically a Linux based Chrome OS device, as already stated by Google.
The unit description response states the model title is “Eureka Dongle”. It props up following DIAL applications:
http://10.x.x.x:8008/applications/Netflix
http://10.x.x.x:8008/applications/YouTube
http://10.x.x.x:8008/applications/GoogleMusic
http://10.x.x.x:8008/applications/ChromeCast
http://10.x.x.x:8008/applications/The planet pandora
Chromecast uses smartphone to manage media playback. The videos/music is performed in the cloud instead of in the smartphone, this causes it to be possible continue the playback once the initiator is no more in your home wi-fi compatability network.
chromecast-1
In the tests, he discovered that whenever a YouTube video has been performed from phone, the DIAL Application Information Request states the “ramp” protocol was utilized. Playback could be stopped using HTTP Remove. So basically, you are able to control the press playback using standard methods, outdoors Chrome. However, other controls like video progress seeking didn’t use any standard stuff, to ensure that part might be written being an proprietary extension towards the DIAL and ramp protocol.
For Netflix it seems to become with a couple kind of websocket within the local LAN. For Google Be A Musician, Chrome casting, it uses DIAL “ramp” protocol.
DIAL Protocol
DIAL protocol has two components, DIAL Service Discovery and also the DIAL Relaxation Service. DIAL Service Discovery allows a DIAL client device to uncover DIAL servers on its local network segment and access the DIAL Relaxation Service on individuals products.=
The DIAL Relaxation Service allows a DIAL client to question, launch and optionally stop programs on the DIAL Server device. DIAL Service Discovery is accomplished utilizing a new Search Target inside the SSDP protocol defined by UPnP as well as an additional header within the reaction to an HTTP request the UPnP device description.
The DIAL Relaxation Services are utilized using HTTP. On DIAL protocol here.
What’s Inside ChromeCast Dongle
Chromecast is really a Chrome OS device on the low-finish hardware. The circuit board is extremely small and it has an onboard Marvell processor (most likely just one core 1Ghz) as well as an AzureWave combo Wi-Fi nick, together with 4GB of expensive memory storage (for caching) and 512MB of low-current RAM.
Additional DIAL info on the DIAL website

send to Chromecast by default in apps?

Is there a way to have apps such as Netflix send to Chromecast by default?
I have a tablet dedicated to chromecast control but have to tell it to use chromecast each time in each app.
I'd settle for having to tap the cast icon each time but that I have to then specify which chromecast to send to when I only have one is infruriating.
Jonnyapps said:
Is there a way to have apps such as Netflix send to Chromecast by default?
I have a tablet dedicated to chromecast control but have to tell it to use chromecast each time in each app.
I'd settle for having to tap the cast icon each time but that I have to then specify which chromecast to send to when I only have one is infruriating.
Click to expand...
Click to collapse
While I'm sure it could be done but it wouldn't make sense to do because what happens when you want to watch something on the tablet or phone?
Consider this...With the right TV the two Cast button presses are in lieu of having to change the input on the TV since selecting a CCast will change the input for you and even turn the TV on if it was off.
Also, as mentioned elsewhere, the Cast button is designed to a pop-up menu, giving the option to disconnect, as well as see the label of the Chromecast.
I can understand the convenience, but I actually prefer the two-tap, with the AllCast beta which supported "always use this Chromecast" for single-click use, I had accidentally tapped and turned on the TV. Then I had to get the TV remote to turn the TV off, since Chromecast doesn't do that.

Is there a working way to mimic the chromecast's cec switch-input behavior?

Hi everyone, first time poster so I'm sorry if this isn't the right forum to post in, but I felt like it was the closest I could think of.
I'm trying to find a way to mimic how the chromecast causes a tv to switch to the input of the chromecast dongle. I have an Android Box that came rooted and has HDMI-CEC capability. What I'm looking to do is somehow use Tasker to trigger the CEC-switch activity/intent/whatever to have my tv (turn on) and switch to the HDMI source of the Android Box (the box will be left on 24/7 and tasker will continually run as background service on the box). Basically, I'm trying to imitate the chromecast's cast action to bring me to my Android Box's input and ultimately it's home screen.
That's where I'm stuck at the moment. Things I've thought might work:
1. Wake-On-Lan (Doesn't seem to wake the box, even when I've checked to make sure the power button made the box sleep and not perform a full shutdown) Tried-Unsuccessful
2. AutoCast to have the box cast to itself, but it doesn't have chromecast/miracast/etc built-in as far as I can tell according to the specs and see anything about cast ability while browsing through its menus.
3. Using Android's HDMI-CEC library in a Java Action in Tasker to imitate the CEC switch sources intent/activity. However, I just recently learned that Google decided to lockdown their API for HDMI-CEC interactivity, so that scrubs that idea.
4. The best bet, and what gave me the idea to post here, is this App Cast Receiver that was created by another user on these forums that seems to accomplish something close to what I'm trying to do in allowing an android device to imitate a chromecast device. If I were able to use this couldn't I then use the AutoCast app I mentioned above to have the Android Box cast to itself, then stop the AutoCast app a few seconds later (after giving the box's CEC capability enough time to make the tv switch sources)? But, unfortunately it appears the app has since been deserted and won't work with the newer chromecast sdk. Maybe someone has an alternative app?
Since this is my first Android Box I'm not quite sure how Tasker actions function when ran from the box. Example: Would a Wake Screen Action trigger a switch of HDMI inputs?
So, after exhausting all my ideas after coming up with nothing in my searches I figured I'd ask the community here since this seems to be a pretty dev/mod-heavy community (and I love it). I'm not sure if this would be better suited for the Tasker or AMLogic Android Box forums on here. If so, I'll happily move the post if a mod cannot do so for me.
TL;DR: Looking for some way, be it app or otherwise, to imitate chromecast behavior (utilizing CEC) in order to make tv switch source to a running Android Box's homescreen.
Hey! tell me more about 3, I was looking to have a Raspberry Pi act as a go-between to simulate CEC with a non-CEC TV by receiving my remotes IR codes and sending either CEC codes to the ChromeCast or using the CC API to pause/stop play - but only reverse engineered versions are available on Pi.
The Pi has built-in CEC support so you can use `apt-get install cec-tools` and then play with the `cec-client` to do some interesting stuff. The ChromeCast in my case has an invalid address so I don't seem to be able to activate pause play. (I see a logical address of 4 but also an address of `f.f.f.f`, ie invalid).
Anyways, it may be worth playing with a Pi and seeing if HDMI-CEC will do what you want, and then seeing if you can get a CEC library for android and just recreate the Pi work. Less hoops to jump around.
I don't know enough about the Android side. The CC API has an Android implementation so I would think you'd be able to do everything you want, iff it does the switching. I've done very little development on Android (a meteor app and an Android native camera library work), unfortunately. (If the Pine64 supports CEC I may end up going down this route).
I've posted more about my interest here: on reddit /r/Chromecast/comments/5znpuk/i_want_to_use_a_raspberry_pi_to_control_the/
jlongman said:
Hey! tell me more about 3, I was looking to have a Raspberry Pi act as a go-between to simulate CEC with a non-CEC TV by receiving my remotes IR codes and sending either CEC codes to the ChromeCast or using the CC API to pause/stop play - but only reverse engineered versions are available on Pi.
The Pi has built-in CEC support so you can use `apt-get install cec-tools` and then play with the `cec-client` to do some interesting stuff. The ChromeCast in my case has an invalid address so I don't seem to be able to activate pause play. (I see a logical address of 4 but also an address of `f.f.f.f`, ie invalid).
Anyways, it may be worth playing with a Pi and seeing if HDMI-CEC will do what you want, and then seeing if you can get a CEC library for android and just recreate the Pi work. Less hoops to jump around.
I don't know enough about the Android side. The CC API has an Android implementation so I would think you'd be able to do everything you want, iff it does the switching. I've done very little development on Android (a meteor app and an Android native camera library work), unfortunately. (If the Pine64 supports CEC I may end up going down this route).
I've posted more about my interest here: on reddit /r/Chromecast/comments/5znpuk/i_want_to_use_a_raspberry_pi_to_control_the/
Click to expand...
Click to collapse
Here's the link to Android's documentation for the HDMI-CEC Control Service. But, like I said it's been locked down and only allows system-level access now.
I don't have any Pi at my disposal (plus my Android Box also has built-in CEC-capability/functionality) and since my situation doesn't actually involve chromecast I never thought to look at their api/sdk. But, I was able to finally solve my problem with a painfully simple, yet not that intuitive or logical method. The way my box's os/firmware appears to work is by firing the cec signal to switch inputs only on its boot_complete and wake_from_standby procedures. My solution just simulates pressing the Standby button twice in a row via Shell command (with Root option checked) from within Tasker. Logically, I thought after the first press the box wouldn't respond to the second press due to already being in standby mode (because of the first button press). But, it turns out both simulated presses occur (maybe keyevents are queue?), allowing me to put the box in standby momentarily and immediately bring it out of standby, which triggers the wake_from_standby procedure and in turn causes the input to switch (or my tv to turn on then input to switch).
My thought with the Pi and CC API was that you would use the PI to monitor the HDMI-CEC bus as the output is controlled by the CC - assuming it switches the input to itself but my TV doesn't support HDMI so maybe that's a bad assumption - and then use that knowledge to replay using the Android HDMI-CEC API. And not understanding what you meant by the API being locked down. That kind of sucks - I was hoping Android would be another bridge platform if the Pi failed me.
Well congrats on a working solution. Cheers!

Forced bluetooth audio when casting ?

Hello everyone !
I would like to know if it's possible with Tasker to force the sound to be played on a Bluetooth device ?
If I'm casting my phone on a Microsoft Wireless Display, the sound is also casting on it.
But I want my sound to be sent on a Bluetooth device.
I've tried the app SoundAbout and it's working. But it's not free and as it's not perfect (there is no shortcut to quickly enable/disable it) I'm looking for a solution with Tasker.
If someone knows how to do that ?
Nobody ?
Look for a way to do it manually.
You should be able to automate it with Tasker.
Autoinput (Tasker plugin) can simulate presses in apps, if needed.
Yes thanks, I know AutoInput and I think it's going to be the only option !

Categories

Resources