Home-AssistantConfig icon indicating copy to clipboard operation
Home-AssistantConfig copied to clipboard

Build QR system for TTS

Open CCOSTAN opened this issue 6 years ago • 6 comments

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

CCOSTAN avatar Apr 10 '19 20:04 CCOSTAN

What will this be used for?

ikifar2012 avatar Apr 16 '19 14:04 ikifar2012

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..

CCOSTAN avatar Apr 16 '19 15:04 CCOSTAN

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

ikifar2012 avatar Apr 16 '19 18:04 ikifar2012

#426 will have to be done as well.

CCOSTAN avatar Apr 16 '19 18:04 CCOSTAN

yup

ikifar2012 avatar Apr 16 '19 19:04 ikifar2012

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

ikifar2012 avatar Apr 20 '19 23:04 ikifar2012