I am trying to get the conversations piece configured properly. There doesn’t seem to be much to go off of for examples and the guide seems to be vague.
I’ve tried a few different configurations, but none seem to work.
This is what I have now:
tv_power_off:
sentence: turn the tv off
trigger:
- platform: state
entity_id: media_player.samsung_tv_remote
from: 'on'
to: 'off'
action:
- service: media_player.turn_off
entity_id: media_player.samsung_tv_remote
No matter how I try to configure this thing, I get an error when I reload HA that said it isn’t properly configured. Can someone please point me in the right direction?
Rather than marking each line individually as preformatted, use </> on the entire block (see the big blue box at the top). This is because spacing is critical, and the way you’ve posted it has lost all that information.
Looking at the documentation, and what you’re trying to do, I think what you’re after is:
conversation:
tv_power_off:
sentence: turn the tv off # The phrase it will recognize
action:
- service: media_player.turn_off
entity_id: media_player.samsung_tv_remote
There’s no trigger: section, that’s replace by your sentence.
If that doesn’t work, please share the full error message since those are often key to identifying the issue.
2017-09-18 08:59:14 ERROR (MainThread) [homeassistant.config] Invalid config for [conversation]: [tv_power_off] is an invalid option for [conversation]. Check: conv
ersation->conversation->tv_power_off. (See /var/lib/hass/configuration.yaml, line 39). Please check the docs at Conversation - Home Assistant
2017-09-18 08:59:14 ERROR (MainThread) [homeassistant.setup] Setup failed for conversation: Invalid config.
I am changing the log status right now so that I can get the debug… more to follow soon… [UPDATE] debug provided the same log entries.
Additionally, I below is exactly what I put in.
conversation:
tv_power_off:
sentence: turn the tv off # The phrase it will recognize
action:
- service: media_player.turn_off # Command Line
entity_id: media_player.samsung_tv_remote
So, it’s complaining about tv_power_off - meaning that something else is expected there. As you say though, the documentation is lacking, and it looks like it’s out of date. I’d suggest you add your voice to that issue, to show that the out of date docs are a problem.
Reading through the blog, it looks like you now need to configure an intent and script as shown there.
Not that I use any of this, so I’m as in the dark as you are
Awesome. I will try intents, model after the KitchenLight example and work from there. Thanks for the help!
As for the out-of-date guide, I see that it has already been addressed, but that was back in July, so I’ll repost and see if that will nudge them. At least we’ve captured that here.
I figured with the home automation, that conversations would be used a little more…
Are people using other means to talk to their homes? (Alexa or Google)… I don’t yet have one of these devices yet, I wanted to see how it works before I dove in head first. I’m assuming that if I want to do this with conversations, I have to tell google or alexa to tell hass.io to do something? (in my case: Okay Google, tell hass.io to turn off the TV)
One other question… maybe not related, but can I use Google on my phone to control HA?