#Custom ESPHome control not triggering from voice command

1 messages · Page 1 of 1 (latest)

wet marsh
#

Any idea why this completes but no action happens:

intent:
  name: HassTurnOff
slots:
  area: living room
  name: tv
details:
  area:
    name: area
    value: living_room
    text: living room
  name:
    name: name
    value: TV
    text: tv
targets:
  button.esp32_s3_n16r8_001_power_toggle:
    matched: true
match: true
sentence_template: <turn> off (<area> <name>|<name> [in <area>])
unmatched_slots: {}
source: builtin
#

does it say there it didn't complete?

#

I can click the control and it works fine but nothing happens when VA triggers it

fiery nova
#

i'm not 100% certain but could be because it is a button and not a switch , but i'm not really up on the intent side of things.

wet marsh
#

So do you have to say something like push the tv button? 😅

#

instead of turn off

fiery nova
#

lol, one way around it would be to use an automation with a sentence trigger. so you basically have the sentence 'turn tv off' and then the action presses the button

wet marsh
#

I was hoping there was some sub setting to classify this esphome as default "TV" device that it would then know how to properly operate it without too much custom things hacked on to it

#

Like how a light knows that it is a light and "turn on light" knows to generically turn it on.

fiery nova
#

yeah that would be good, I have my tv integrate it and i think HA just classes it as a media player, so it is limited by those controls. so basically just have on / off and volume control. But I don't think you can do that in ESPHome as media_player requires audio components as far as I recall.
i'm not familiar with the config you made ... i briefly saw it in show off . IN ESPHome do you have the buttons all defined as buttons?

wet marsh
#

Yeah all as buttons

#

I thought that would be best as it's a remote control that you just push buttons nothing stays on or off just momentary pushes

fiery nova
#

maybe make a template switch for the power button and mute , as in theory they have an on and off state, whereas others are mostly as you say just a press

wet marsh
#

Won't it be the same issue with stuff like volume as they are buttons or mute etc channel up/down

fiery nova
#

fair point, hopefully someone who knows more about intents will have an answer

wet marsh
#

What’s your configs for your tv look like?

fiery nova
#

oh it's just a samsung smart tv so it picked it up in the samsung integration, but it just adds it as a cast/media player. with same services as any other media player in HA

wet marsh
#

what year is it?

fiery nova
#

i think its 2019 possibly, i bought in 2020

wet marsh
#

Does it have an exlink port on it?

fiery nova
#

i haven't got a clue, it's fixed to the wall

wet marsh
#

I’m trying the automation route for now as it seems like that is all there is will probably just do power/volume/mute/source for now like you said above

wet marsh
#

Or if you know the model

wet marsh
#

Seems like it still doesn't work
How can I assist?
Turn on the living room TV.
Done
Turn off the living room TV
Done
Turn on the living room tv
Done

#
alias: Turn off the living room TV
description: ''
trigger:
  - platform: conversation
    command: Turn off the living room TV
condition: []
action:
  - service: button.press
    metadata: {}
    data: {}
    target:
      entity_id: switch.esp32_s3_n16r8_001_power_off
mode: single
#

Oh it says switch there for some reason

#

Guess that was a left over entity from when it first was a switch and I made it a button