hi Guys,
is it possible to ask Google home about a sensor state and have her read out the response logged on Home assistant.
for example
Me: Hey Google how much room is my qnap drive 1?
GH: drive 1 of your server is at 87%
hi Guys,
is it possible to ask Google home about a sensor state and have her read out the response logged on Home assistant.
for example
Me: Hey Google how much room is my qnap drive 1?
GH: drive 1 of your server is at 87%
You can do this with IFTT, google home TTS, and scripts. Youâll basically need create a script using templates, and port the dialogue out to google home using tts.google,say. Then youâd use IFTTT to call that script when you send a voice command to google home, and itâll read whatever is written in your script.
I am doing the the same thing, but instead of hard disk space, I have google tell me the weather condition and how much charge is left on my iphone battery.
Thanks
How do you get ifttt not to respond?
Hi guys,
Iâm pretty new this whole automation stuff, do you guys have an example how you do the script?
You can do this without IFTTT
Hi, can you share an example?
This is my intent scripts for Alexa. you might be able to adapt to google home.
I ask
Alexa, tell me the status of the front door
Alexa, tell me everything that is on
statussensor:
speech:
type: plain
text: >
{%- for state in states -%}
{%- if state.name.lower() == Sensor.lower() -%}
{%- if loop.first %}The {% elif loop.last %} and the {% else %}, the {% endif -%}
{{ state.name }} status is {{ state.state }} {{- state.attributes.unit_of_measurement}}
{%- endif -%}
{%- else -%}
Sorry, I can't find the status of {{ state.name }}
{%- endfor -%}
allsensors:
speech:
type: plain
text: >
{%- for state in states.switch -%}
{%- if state.state == ASensor.lower() -%}
{%- if loop.first %}The {% elif loop.last %} and the {% else %}, the {% endif -%}
{{ state.name }} status is {{ state.state }} {{- state.attributes.unit_of_measurement}}
{%- endif -%}
{%- else -%}
Sorry, I can't find anything in state of {{ ASensor }}
{%- endfor -%}
{%- for state in states.binary_sensor -%}
{%- if state.state == ASensor.lower() -%}
{%- if loop.first %}The {% elif loop.last %} and the {% else %}, the {% endif -%}
{{ state.name }} status is {{ state.state }} {{- state.attributes.unit_of_measurement}}
{%- endif -%}
{%- else -%}
Sorry, I can't find anything in state of {{ ASensor }}
{%- endfor -%}
hereâs mine
good_morning:
alias: Good Morning Greeting
sequence:
data_template:
language: en
message: â{{[ââGood Morningââ, ââHello, sleepy headââ, ââGood dayââ, ââIts 5:10AM,
rise and shine!ââ] | random }} âCurrently its{{states(ââsensor.yweather_currentââ)}}. The
weather temperature is {{states(ââsensor.yweather_temperatureââ)}}degrees
Celsius. Todays high will reach {{states(ââsensor.yweather_temperature_maxââ)}}
degrees Celsiusâ âHave a wonderful dayââ
entity_id: media_player.living_room_speaker
service: tts.google_say
Not sure what you mean by this. Are you saying that you donât want a response message from Google Home? If so, you can try typing a character with no phonetic value like âł in the Google Home response field.
I am still not too keen on HAâs native support for Google Assistant. Its great for devices like
lights or other devices because you would say âhey google, turn on living room lightsâ, but for non-physical entities like scripts and scenes, itâs a bit clunky. I would have to say, âhey, google turn on good morningâ to run my script. With IFTTT, I can say whatever I want, like âhey google, good morningâ, and it will give me the weather report.
Iâm afraid thatâs not true, the domain available are:
group, scene, script, switct, fan, light, cover, media_player and climate.
Or at least it doesnât directly work, you still need a script for each sensorâŚ
Hi thatâs what i was wanting to know. I donât want a custom response via iftt.
Thank you.
Doing it this way means google with give a response like activating âgood morningâ
Or is there away to turn this off?
No,Iâm afraid there is no way to turn that off for nowâŚ
I tried to see how the API from google work but it seems the smart home component cannot reply to simple query.
For a thermostat it can give back the set temperature, but a device that just deliver a value was not planned.
Another way is to use Google Action, but it would mean having to say something like âOk Google, ask home-assistant whatâs the temperature in the living roomâ, which is also far from perfect.
iâve tried setting up an ifttt trigger but there something wrong their end i think as i cant add new triggers, only current active ones work
IFTTT is working fine. I just used it a second ago
Are you able to create a new trigger. My current triggers work yet new ones dont
yes ,âŚno problems
Yesterday it wasnât working thereâs is s few posts on reddit ifttt too.
All seems good today