Control Domoticz with your Alexa / Amazon Echo - simplest Way

Alexa, Google Home and Siri

Moderator: leecollings

Post Reply
jmleglise
Posts: 192
Joined: Monday 12 January 2015 23:27
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: FRANCE
Contact:

Control Domoticz with your Alexa / Amazon Echo - simplest Way

Post by jmleglise »

This is the easiest method (and free) for everyone who knows how to deal with the Domoticz API.

Only 5 clics to define an order like 'Alexa trigger the opening of the blind" or "Alexa trigger the alarm." This trigger fires every time you say "Alexa trigger" + the phrase that you have defined.

In French, the magic Word is "Alexa déclenche" + ... l'ouverture du portail ...

Ok, Here is the howto :

Use the IFTTT.com services (totally free), that integrates Alexa and can send a request to domoticz. (Of course , you need domoticz to be reachable by public internet : Https + login/password protected + box port translation + domain name or static IP

- Create your IFTTT account
- My Applets / New Applet
- If +This : Choose "amazon Alexa" (You will need to input your amazon Login/Password the first time)
- Choose trigger : "Say a specific phrase"
- what do you want to say : input the phrase after the "Alexa trigger ..."
- +that : Choose action service : "Webhooks" then choose "Make a web request".
- input the domoticz command in URL like :
https://login:password@yourDomainOrIP:yourPort/json.htm?type=command&param=switchlight&idx=40&switchcmd=On&level=0&passcode=
Read the wiki for the API command, or I advise , you intervept the request in your developper Tools of your browser / Network (Ctrl-Maj-E in Firefox)

That's all. Now You can create IFTTT applet to command all your switchs.
My script : https://github.com/jmleglise
RFXTRX433E: Blind Somfy RTS, Portal Somfy Evolvia, chacon IO, Oregon, PIR sensor PT2262
My Last project : Location de vacances a Ouistreham vue mer
KMTronic USB relay
Chinese Z-WAVE: Neo CoolCam
Prutsium
Posts: 92
Joined: Monday 18 June 2018 11:31
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Germany / Netherlands
Contact:

Re: Control Domoticz with your Alexa / Amazon Echo - simplest Way

Post by Prutsium »

Why not use HA Bridge much easier as it imports domoticz devices and links direct to your Alexa account.
darrepac
Posts: 133
Joined: Tuesday 04 February 2014 21:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Isère, France
Contact:

Re: Control Domoticz with your Alexa / Amazon Echo - simplest Way

Post by darrepac »

jmleglise wrote: Sunday 02 September 2018 12:43
https://login:password@yourDomainOrIP:yourPort/json.htm?type=command&param=switchlight&idx=40&switchcmd=On&level=0&passcode=
Thanks for the hint. A small correction, you need to use http and not https to make it work
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest