I changed my setup so I am changing my notes on this thread.
I bypassed the android phone and now I am using telegram with telethon and a small python script(attached below) running on the same server as home-assistant. IFTTT is the same calls to telegram, just the telethon is listening and not the phone. I used this for the last week with no issues and very happy with the performance. Sometimes the receiver is changed, before the google home says “OK”, very FAST
Old unedited notes:
I am trying to connect google home to my denon receiver to change the source, with out a harmony hub. I would have used the hue emulator, but that does not work any more. So my plan is to go from Google Home->IFTTT->Android SMS->OLD Andorid Phone->Hangouts->Tasker(with curl)->H.A.->Denon Receiver. Sounds complicated:-)
Everything is working in a proof of concept except getting the sms message to tasker. Tasker can intercept a sms easily, but hangouts is a being a pain. I can not use a pure sms since my old phone has no sim card and does not have a real SMS so I am trying to use autoIntercept with hangouts which is the biggest pain. Anyone have a clue how to get a SMS to tasker, or anyother way to get google home to send some message to the phone?
FYI:
I will not open a port in my firewall for security reasons.
Eventually I might buy a harmony hub, but not now.
Running HA on debian.
Telegram is better than hangouts, but having an issue where every few messages tasker does not respond to the command. Not sure why. Any clue?
As for email, I want to control my denon receiver with google home and I did not want to have a long wait for the email to come through and was thinking a message service would be faster.
Not worth buying a harmony hub for this. (time spent on this is not an issue, yet)
My laziness is worth less than my security. When I need to I will just get up, walk 6 feet, and use my toe to select the correct source on the receiver.
I finally finished and it is working. Takes about 5-10 seconds, but it works. So I was able to get this working by using telegram and Notification Listener.
Google Home->IFTTT(google Assistant,Telegram)->OLD Android Phone->Telegram->Notification Listener->Tasker->H.A.->Denon Receiver
Somethings I learned,
IFTTT telegram bot can not talk to my own bots, bots can not talk to each other.
Telegram has an issue where notification would not show, needed to uninstall and reinstall.
3, In tasker, http post with json works ok with HA
Glad you got the telegram route figured out, and I appreciate not wanting to open up ports.
Not tried it for automation, but in general, I think gmail-to-gmail is pretty instant. However, I’m not sure what the detection time would be on the receiving end (using tasker?) for realizing the email has arrived.
i tried gmail through ifttt and i noticed after a few emails, the emails are slightly slowed down. I was thinking there is a gmail flood control to slow down emails if fired to fast. Not sure if that is true and there was network issues. That is why i went with telegram.
The chatbot is a bot and not a user. Telegram bots can not talk to another bot and IFTTT uses a bot to send out it messages. If chatbot is a real user and not a bot, then it could work.
I need to open a port in my firewall and at the moment I do not want too.
So I was able to remove the android phone and tasker. I found a python library that runs a telegram client I can script against. Library is telethon. After a few hours and less than 100 lines of code most things seem like it is working and it is much faster, under a second from when google says ok to receiver update.
I am running telethon on the same linux box as hass other than learning python in an hour or 2 all seems easy. http://telethon.readthedocs.io/
Would be nice but right now I can spend just a couple of hours per months on HA stuff.
I did some test using the telegram API and requests and flask modules and for now , lets continue on the other thread did you make about AD.
Yes, in the meantime I managed to do it.
I installed telethon libraries using the AD addon in hassio and then was able to login and interact with my Telegram user
This way I can intercept IFTTT push messages and react in Home Assistant.