Alexa, Tell Home Assitant to turn off tv

During testing on amazon it connects and runs the command fine on home assistant, i just cant invoke it by voice, im inclined to believe i can achieve this.

like you say, the skills stay disabled.
find a way to enable the skills and it will probably work, but if i am correct amazon hasnt given that free.

theres countless videos on youtube of people doing it so it is possible

that gives me hope.
didnt think about looking at YouTube.

I would suggest using HA Bridge than creating an alexa skill if you just want to turn on and off a TV.

Neither are going to work for me until i fix this problem, it seems to do with alexa not picking up my skill

Creeating skilll is fun exercise but I think creating skill may complicate this.

Try:

  1. create input boolean for TV ON/OFF function
  2. create automation so that input_boolean.TV ON = TV ON and opposite for OFF
  3. expose input_boolean.TV to Alexa using hue emulate and discover in Alexa
  4. “Alexa, turn ON TV” command should work

Creating skill adds the need to say “ask Home Assistant” wihich caused me confusion.

The problem was i was in the uk, using a vpn and logging into us amazon solved it

1 Like

i am in Germany and also didnt get it to work that way. at least by me it errors with language problems.
but changing to english didnt help.

what do you mean using a vpn? on the RPI, mobile or what? and how ( i never really got a working VPN)
and you could log on to us amazon without creating a new account?

For anyone with a FireTV I was able to get alexa to turn on/off my tv by enabling CEC on my tv and turning on/off my FireTV using adb commands.

Here’s the shell script:

#!/bin/bash
FIRE_TV_IP=192.168.1.7

adb kill-server
adb connect $FIRE_TV_IP

#Toggle Fire TV sleep on / off
adb shell input keyevent KEYCODE_POWER
adb kill-server

Shell command yaml:

livingroom_tv_onoff: sh ~/.homeassistant/scripts/livingroom_tv_onoff.sh

Customization config code:

script.livingroom_tv_onoff:
  icon: mdi:television
  emulated_hue_name: "Livingroom TV"
1 Like

Thats strange. I’m also in the UK

Yeah that is strange CommonBlob, Alexa only announced UK availability yesterday. You must have a US developer account?

I thought that announcement was related to the Amazon Voice Service, not Skills kit (which we are creating).

Anyhow, glad you got it working :slight_smile:

I’m coming from Iobroker and I think it has the best Alexa implementation for Smarthome so far. You don’t have to open a port and got it running in minutes!
So now it got Iobroker for Alexa commands (it’s installed as full home control, you don’t need to use a "ask iobroker to… " it’s just “Alexa switch on the lights in the kitchen”) and Hass for everything else!

Hey there @mrMuppet

Can you please help me how you got your Alexa commands working as I am struggling with https and opening a port as my router doesnt allow to forward a port to another port.

Thanks.

@raymiec

Could it be the reason why I am getting errors as I am following this guide (AWS Lambda Proxy Custom Alexa Skill when you don't have https) to set up Custom Skills without https and I am in the UK.

Hi, as I wrote I use iobroker for Alexa!

http://www.iobroker.net/?page_id=5859&lang=de

(sorry, but I didn’t find English version. Perhaps you have to use translate.google.com)

Thanks @mrMuppet

Do I have to install the iobroker adapter on my raspberry pi for it to work with Alexa?

Also I cannot find the iobroker skill in my alexa skills page. Is it because it could be not available for the UK?

Iobroker is a alternative system to HA (like Openhab). Its not only an adapter.

The Skill is amazon.de
alexaskillstore.com

oh right well it doesnt work with amazon.co.uk :frowning: