CCOSTAN / Home-AssistantConfig

:house: Home Assistant configuration & Documentation for my Smart House. Write-ups, videos, part lists, and links throughout. Be sure to :star: it. Updated FREQUENTLY!
https://www.vCloudInfo.com
Other
4.78k stars 508 forks source link

Build QR system for TTS #533

Open CCOSTAN opened 5 years ago

CCOSTAN commented 5 years ago

Print QR codes that trigger Cloud/WebHooks that trigger TTS notifications.

ikifar2012 commented 5 years ago

What will this be used for?

CCOSTAN commented 5 years ago

So my super early thoughts on it are, QR codes around various things in the house that when scanned, trigger a TTS notification.

QR code the TV Remote, get verbal instructions in the living room on how to use it. QR code the garbage can, trigger the responsibility routine which announces who's day it is for chores and if it's garbage day.

Some things like that using webhooks..

ikifar2012 commented 5 years ago

This would be your trigger

  trigger:
    platform: webhook
    webhook_id: some_hook_id

but you need to figure out how to make a POST request to this URL

https://ha.ip/api/webhook/some_hook_id?token=LongLivedToken

I don't think you can do this in the web browser and a Siri Shortcut would work but guests in your home would have to download the Shortcuts app and install a shortcut

CCOSTAN commented 5 years ago

426 will have to be done as well.

ikifar2012 commented 5 years ago

yup

ikifar2012 commented 5 years ago

Just for fun I created some example HTML code (I am not a coder, I just used examples from the web) for a web page that when visited makes a POST request so you can put that web page in a QR code and it should work to make the webhook request to home assistant: https://github.com/ikifar2012/Browser-HTTP-POST