Alexicz - FREE Domoticz to Alexa Integration

Alexa, Google Home and Siri

Moderator: leecollings

Post Reply
User avatar
philchillbill
Posts: 396
Joined: Monday 12 September 2016 13:47
Target OS: Linux
Domoticz version: beta
Location: Eindhoven. NL
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by philchillbill »

@grasuoare The skill code needs to be able to reach Domoticz via HTTPS - that's simply an Amazon requirement. The url for your instance is hard-coded in the configdz.json file and is e.g. https://myhouse.ddns.net:443. I've never used a VPN but if it gives you a url to allow external traffic to talk to your server at will, you can use it. If not, it won't work. What *will* work is a reverse proxy that sits between Alexa and Domoticz and adds more security, albeit still requiring a port to be opened. I personally think people get too hung up on open ports. If properly done with a reverse proxy behind them only accepting TLS and with X509 authentication (or basic auth with a huge password), they are not a security issue.

@poudenes What exactly do you mean by Security Profile? Forgive me, but I cannot match that term to Amazon terminology.
Alexa skills author: EvoControl, Statereport, MediaServer, LMS-lite
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by poudenes »

@philchillbill

In the HOW TO PDF point 2.2:

Alexa smart home skill requires an OAuth2 authorization.
2.1. Sign in : https://developer.amazon.com
2.2.Click « APPS & SERVICES » (1)« Login with Amazon » (2)« Create a New Security Profile » (3)
2.3. Type in any Security Profile Name, Description and Privacy URL, (Optional Logo Image) (1)Click to Save (2)

:)
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
User avatar
philchillbill
Posts: 396
Joined: Monday 12 September 2016 13:47
Target OS: Linux
Domoticz version: beta
Location: Eindhoven. NL
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by philchillbill »

@poudenes

My bad - getting old :-) I presume you're trying this at https://developer.amazon.com/loginwitha ... ofile.html ?
Alexa skills author: EvoControl, Statereport, MediaServer, LMS-lite
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by poudenes »

philchillbill wrote: Tuesday 23 July 2019 11:27 @poudenes

My bad - getting old :-) I presume you're trying this at https://developer.amazon.com/loginwitha ... ofile.html ?
Thats correct. For me unable to create one ...
Even with a fresh new Developer Account its not possible to create one.
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by poudenes »

The port to access Domoticz from AWS can that be every ports I use 443 to make a secure connection to Domoticz. Its forwarded in router to the RPi.
Or must I need the 51243 as written in configdz.json?
Last edited by poudenes on Wednesday 24 July 2019 9:19, edited 2 times in total.
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
User avatar
philchillbill
Posts: 396
Joined: Monday 12 September 2016 13:47
Target OS: Linux
Domoticz version: beta
Location: Eindhoven. NL
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by philchillbill »

You can use any port number you like


Sent from my iPhone using Tapatalk
Alexa skills author: EvoControl, Statereport, MediaServer, LMS-lite
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by poudenes »

Thanks.

For dutch people its important at the Lambda function creation to select UK Ireland ... I was at London and was not able to see Alexa Home Smart in section 5.9
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
User avatar
philchillbill
Posts: 396
Joined: Monday 12 September 2016 13:47
Target OS: Linux
Domoticz version: beta
Location: Eindhoven. NL
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by philchillbill »

The lambda endpoint you should choose is linked to where your Amazon store account is (.com, .de, .fr, .es, .it, .co.uk) and also to the language you choose for the skill. Your nationality does not matter :-)


Sent from my iPhone using Tapatalk
Alexa skills author: EvoControl, Statereport, MediaServer, LMS-lite
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by poudenes »

Everything is ok now. All devices are discovered. I only see that my Door sensors and motion sensors not working. When there is movement or I open or close a door it won't update in the Alexa App. Lights are working, color change is working.. Only the Motion sensors and door contact sensors not working
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
User avatar
philchillbill
Posts: 396
Joined: Monday 12 September 2016 13:47
Target OS: Linux
Domoticz version: beta
Location: Eindhoven. NL
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by philchillbill »

What exact version of the python code are you running? Also, check out how to use the Amazon Cloudwatch debugging portal.
Alexa skills author: EvoControl, Statereport, MediaServer, LMS-lite
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by poudenes »

philchillbill wrote: Wednesday 24 July 2019 10:38 What exact version of the python code are you running? Also, check out how to use the Amazon Cloudwatch debugging portal.
Domoticz side: Python Version: 3.6.4
Alexa Skill: Python 3.6

Will check the debug portal


EDIT: I see in PDF that ContactSensor and MotionSensor is not a working feature.
when using homebridge skill with https://www.homebridge.ca/ account the motion sensors working
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
User avatar
philchillbill
Posts: 396
Joined: Monday 12 September 2016 13:47
Target OS: Linux
Domoticz version: beta
Location: Eindhoven. NL
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by philchillbill »

I actually meant the skill code version and not the python environment version. Are you on the dev-phil release or one of the other branches? The door and motion stuff work for me and that code should be in the dev-phil variant.
Alexa skills author: EvoControl, Statereport, MediaServer, LMS-lite
frandevelop
Posts: 2
Joined: Friday 28 July 2017 12:48
Target OS: -
Domoticz version:
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by frandevelop »

Hi,

I am trying to configure the system with the manual, I think aws has changed the current web, in the configuration of the function does not show "Alexa Smart Home" as an option, any idea how to add it?
lambda.jpg
lambda.jpg (176.14 KiB) Viewed 2278 times
User avatar
philchillbill
Posts: 396
Joined: Monday 12 September 2016 13:47
Target OS: Linux
Domoticz version: beta
Location: Eindhoven. NL
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by philchillbill »

Did you click on that "+ Add trigger" button on the left?
Alexa skills author: EvoControl, Statereport, MediaServer, LMS-lite
vco1
Posts: 16
Joined: Monday 12 September 2016 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by vco1 »

Due to changes on Amazon's side, ha-bridge is no longer working for me (and many others). Before I invest time in setting up Alexicz, I's like to know if this is still working after the latest Echo updates.
User avatar
philchillbill
Posts: 396
Joined: Monday 12 September 2016 13:47
Target OS: Linux
Domoticz version: beta
Location: Eindhoven. NL
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by philchillbill »

Alexicz still works fine as it’s a Smart Home skill directly targeting Domoticz. HA-Bridge tries to pretend everything is a Philips Hue lamp which is a totally different approach.


Sent from my iPhone using Tapatalk
Alexa skills author: EvoControl, Statereport, MediaServer, LMS-lite
vco1
Posts: 16
Joined: Monday 12 September 2016 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by vco1 »

philchillbill wrote: Monday 23 September 2019 8:02 Alexicz still works fine as it’s a Smart Home skill directly targeting Domoticz. HA-Bridge tries to pretend everything is a Philips Hue lamp which is a totally different approach.
Thanks! That's good to hear as I really miss my Alexa integration.
nigels0
Posts: 221
Joined: Thursday 23 January 2014 12:43
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by nigels0 »

HA-Bridge is still working for me.
mcwieger
Posts: 107
Joined: Tuesday 08 December 2015 9:59
Target OS: NAS (Synology & others)
Domoticz version: 2020.1
Location: Netherlands
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by mcwieger »

I've followed the steps in the guide, but unfortunately it is not working. I then did it again, and it's even worse...;-)

Attempt 1:
Lambda created in region Ireland with skill language US English: Lambda works, but devices are not detected.

Attempt 2:
Lambda created in region N. Virginia with skill language US English: Lambda does not work and devices are not detected.

I read back this topic and saw issues with regions and languages, but I cannot pinpoint what combinations work and what the requirements are, e.g:
Do you have to be in the region of your Lambda? Does the table in 5.2 (regions/languages) contain mandatory combinations? And is that skill language or Echo language? Does the street address entered in my Echo device play any role in this?

One more consideration: the setup of IAM Role (5.6) is slightly different in the current setup (you can't select your own name for the role, but I chose to use the basic execution role).

Many questions...
I moved to HomeAssistant. It was fun while it lasted!
User avatar
philchillbill
Posts: 396
Joined: Monday 12 September 2016 13:47
Target OS: Linux
Domoticz version: beta
Location: Eindhoven. NL
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by philchillbill »

@mcwieger The main question is actually (and non-intuitively), what regional Amazon store is your Amazon account linked to? If it's Amazon .co.uk, for example, and you have a N-Viriginia ARN, the endpoint will work fine but your echos will never even invoke it so you will conclude it's broken. If you have .de as Amazon store, an ARN in Ireland will work but then your skill has to be de-DE locale (which it isn't) so also won't work.

If you're in Europe, the best thing to do is change your Amazon store to the .co.uk, pick Ireland as the endpoint, and it's up to you if you choose en-US or en-GB as locale as both will then work.

I've been debating this all for a year now with Amazon as, yes, it makes no sense ! Luckily, with Custom skills there is much more flexibility about endpoint ARN but with Smart Home you're stuck with this. I have a certified skill for Logitech Media Server in the skill store now and was surprised how dominant the .co.uk store is for Europe when it comes to in-skill purchases. Luckily, you don't have that extra burden with Alexicz.
Alexa skills author: EvoControl, Statereport, MediaServer, LMS-lite
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests