Alexicz - FREE Domoticz to Alexa Integration

Alexa, Google Home and Siri

Moderator: leecollings

User avatar
philchillbill
Posts: 399
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 »

Well it's there if you have successfully saved a dev-skill in the developer console, otherwise not. Did you save everything in the dev console first before trying? Otherwise, log out and back in to load your dev skill.
Alexa skills author: EvoControl, Statereport, MediaServer, LMS-lite
tarmacalastair
Posts: 95
Joined: Wednesday 30 October 2019 14:11
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Great Britain
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by tarmacalastair »

OK thanks for the suggestion.

Sorry if I'm being a bit thick here but it's just occurred to me that our Alexa thingy is logged in with my wife's Amazon account and I've done all the developer, Lamda, AWS stuff with my account so that she doesn't get all the confirmation emails, etc.

Would this explain why I don't see the skill? If so, is there a way to allow access to the skill from her account? Or should I log in to the Echo device as my user?

Thanks
Running Domoticz and Dashticz beta on Raspberry Pi OS 32 bit - has anyone had success with 64 bit?

Desktop access from Ubuntu Linux
User avatar
philchillbill
Posts: 399
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 »

tarmacalastair wrote:OK thanks for the suggestion.

Sorry if I'm being a bit thick here but it's just occurred to me that our Alexa thingy is logged in with my wife's Amazon account and I've done all the developer, Lamda, AWS stuff with my account so that she doesn't get all the confirmation emails, etc.

Would this explain why I don't see the skill? If so, is there a way to allow access to the skill from her account? Or should I log in to the Echo device as my user?

Thanks
Yep, that would indeed explain it. You can add her account as a beta tester for the skill in the dev console. Go to the certification tab but if course don’t submit for actual certification Image
Alexa skills author: EvoControl, Statereport, MediaServer, LMS-lite
doh
Posts: 82
Joined: Monday 01 December 2014 13:28
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: London, UK
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by doh »

Hi
I'm currently using Controlicz, which is great. But, I'm thinking of moving to Alexicz so I have more control over my own smart home and not reliant on someone else's servers (other than AWS of course). How do the two compare - can Alexicz do everything Controlicz does?
Damsee
Posts: 58
Joined: Thursday 20 April 2017 1:17
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: France
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by Damsee »

doh wrote: Sunday 19 January 2020 18:56 Hi
I'm currently using Controlicz, which is great. But, I'm thinking of moving to Alexicz so I have more control over my own smart home and not reliant on someone else's servers (other than AWS of course). How do the two compare - can Alexicz do everything Controlicz does?
I'm no expert in Controlicz so i can't tell if they both do the same things but you have access to the code with Alexicz and you can change it to whatever your needs are 😉
RPI3 Raspbian Buster + Domoticz v2020.1 stable + RFXtrx433E + Z-Stick Gen5 + Amazon Echo (alexicz)
x5 THGN810 / x5 ZMNHJD1 / x2 Flood sensor FGFS101 / x1 Smoke sensor FGSD002
x1 ZMNHAD1 / x2 FGS213 / x3 Wallplug FGWPE/F / NodOn Soft remote CRC-3-6-0
Mazzokun
Posts: 89
Joined: Thursday 28 April 2016 23:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Milan, Italy
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by Mazzokun »

Hi all, I have successufully installed and added some devices some mounth ago.
Now I have new devices and I tried to discover them with Alexa app without success.
Domoticz log says that there is an incoming connection.
Old devices are working with Alexa app and they are in the same roomplan of new ones..
Do you have any advice?
Thank you :)
tmh88
Posts: 19
Joined: Friday 15 November 2019 22:54
Target OS: Windows
Domoticz version: 2020.1
Location: UK
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by tmh88 »

Mazzokun wrote:Hi all, I have successufully installed and added some devices some mounth ago.
Now I have new devices and I tried to discover them with Alexa app without success.
Domoticz log says that there is an incoming connection.
Old devices are working with Alexa app and they are in the same roomplan of new ones..
Do you have any advice?
Thank you :)
Have you checked there added to the user profile the alexa uses to access domoticz

Sent from my SM-N976B using Tapatalk

Mazzokun
Posts: 89
Joined: Thursday 28 April 2016 23:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Milan, Italy
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by Mazzokun »

Yes, they are in the same list..
Mazzokun
Posts: 89
Joined: Thursday 28 April 2016 23:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Milan, Italy
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by Mazzokun »

Solved, I forgotten that I had a user AND a floorpan for Alexa devices.
Thank you for support!
freijn
Posts: 536
Joined: Friday 23 December 2016 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands Purmerend
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by freijn »

Guys,

I did an attempt over a year ago. Now my account is suspended as I did not pay the services.
Does anybody know how much the service is per year? Could not find it easily.....
User avatar
philchillbill
Posts: 399
Joined: Monday 12 September 2016 13:47
Target OS: Linux
Domoticz version: beta
Location: Eindhoven. NL
Contact:

Alexicz - FREE Domoticz to Alexa Integration

Post by philchillbill »

freijn wrote:Guys,

I did an attempt over a year ago. Now my account is suspended as I did not pay the services.
Does anybody know how much the service is per year? Could not find it easily.....
A developer account is free. Any services are charged based on actual use, not flat fee per year. But the free tier is so generous - how did you manage to incur charges at all?
Alexa skills author: EvoControl, Statereport, MediaServer, LMS-lite
jbr79
Posts: 20
Joined: Saturday 17 October 2015 22:23
Target OS: Linux
Domoticz version: 4.10659
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by jbr79 »

Following the guide was sometimes a little challenging as the Amazon interface changed compared to the guide, but I seemed to get all Lambda function test events running (managed to read a temp sensor, switch a light, doing discovery etc) However, if I do a "Discover devices", nothing seems to show up...

From what I read, one of the blocking issues could be to have devices and sensors in roomplans, but I have this.
What could be the reason why the function test events work, but there is no device showing up after a 'physical Alexa Discovery?
tarmacalastair
Posts: 95
Joined: Wednesday 30 October 2019 14:11
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Great Britain
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by tarmacalastair »

Yup, exactly what I found when I tried a couple of months back when I tried. I meant to document the new steps but got so confused by the time I finished and never really got it working properly.

Don't suppose you remember what you did well enough to briefly document the changes?

Good luck - I'd love to be able to get it working but like you I never really got anywhere. Just too many complicated steps and changes to the interfaces.
Running Domoticz and Dashticz beta on Raspberry Pi OS 32 bit - has anyone had success with 64 bit?

Desktop access from Ubuntu Linux
Robert
Posts: 16
Joined: Saturday 01 March 2014 18:48
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by Robert »

Works perfect. Thank you so much for this intelligent piece of work!!!
jbr79
Posts: 20
Joined: Saturday 17 October 2015 22:23
Target OS: Linux
Domoticz version: 4.10659
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by jbr79 »

tarmacalastair wrote: Tuesday 21 April 2020 22:10 Yup, exactly what I found when I tried a couple of months back when I tried. I meant to document the new steps but got so confused by the time I finished and never really got it working properly.

Don't suppose you remember what you did well enough to briefly document the changes?
I could, but first let me try to figure out with the devs why it is not working locally (through the Alexa device) :)
Skwi
Posts: 18
Joined: Thursday 10 May 2018 9:37
Target OS: Windows
Domoticz version:
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by Skwi »

Hello, I configured alexicz since almost 1year but recently it often says "the device xxx doesn't respond" randomly. If I active directly with domoticz there is no problem.

I'm on the irish server (for france, I don't know if they have added the vocal support for the lambda function)

Edit:
jbr79 wrote: Tuesday 21 April 2020 21:55 However, if I do a "Discover devices", nothing seems to show up...
From what I read, one of the blocking issues could be to have devices and sensors in roomplans, but I have this.
Reading this I also "recently" (1-2 month not sure) added sensors in my roomplans, don't know if it's related.
User avatar
philchillbill
Posts: 399
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 »

Looking at the source code of DomoticzHandler.py, we see in the discovery code

Code: Select all

           
            if (device['PlanID'] == "0" or device['PlanID'] == ""): continue
            if (self.planID >= 0 and (not (self.planID in device['PlanIDs']))): continue
So the room/plan ID only matters during discovery. After a device is discovered it is only controlled by idx so then room/plan is irrelevant. If a device was ever controllable at all by Alexicz, it should stay that way because once past discovery means "in".

Check the data for the missing device(s) by looking at http://192.168.x.y:8080/json.htm?type=devices in your browser. Copy/paste the json into a text file if easier. Now ask yourself how that json will be interpreted within DomoticzHandler. That should help figure any issues out.
Alexa skills author: EvoControl, Statereport, MediaServer, LMS-lite
Skwi
Posts: 18
Joined: Thursday 10 May 2018 9:37
Target OS: Windows
Domoticz version:
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by Skwi »

Nobody experiences the 'device doesn't respond'?

I tried to see what happend but I need some help, can't find where the logs are.

I have 2 dummy switch in domoticz
On alexa or via https://developer.amazon.com/alexa/console/ask if I ask to turn on the device 1, it says "device 1 doesn't respond"
But if I try with device 2 it works fine (no issue from domoticz). I searched for 10mn to print the logs, but now when I try again it works fine too with device 1...

On the developer.amazon.com there is a device log but I can't see any thing interesting (one line [20:33:01:256] - Event: Text.TextMessage with my request, and one line [20:33:06:077] - Directive: SpeechSynthesizer.Speak with the answere)

I tried in vain to find some logs at the lambda function level : in configdz.json I set "debug" = true then saved
Created a test function saying it works fine (green) but the logs seems to tell otherwise and the device is not turned on:

Is there something wrong in the following? (idx or id?, messageId/token I have no idea if I need to change for something on my side)

Thanks !

Code: Select all

test function :
{
  "directive": {
    "header": {
      "namespace": "Alexa.PowerController",
      "name": "TurnOn",
      "payloadVersion": "3",
      "messageId": "1bd5d003-31b9-476fad03-\n71d471922820",
      "correlationToken": "dFMb0z+PgpgdDmluhJ1LddFvSqZ/\njCc8ptlAKulUj90jSqg=="
    },
    "endpoint": {
      "scope": {
        "type": "BearerToken",
        "token": "access-token-from-skill"
      },
      "endpointId": "66",
      "cookie": {}
    },
    "payload": {}
  }
}
Spoiler: show
Result:
START RequestId: f6e2b474-e960-4260-a8ce-ed5adb9a8e1d Version: $LATEST
[DEBUG] 2020-05-11T19:02:47.231Z Lambda invocation {'directive': {'header': {'namespace': 'Alexa.PowerController', 'name': 'TurnOn', 'payloadVersion': '3', 'messageId': '1bd5d003-31b9-476fad03-\n71d471922820', 'correlationToken': 'dFMb0z+PgpgdDmluhJ1LddFvSqZ/\njCc8ptlAKulUj90jSqg=='}, 'endpoint': {'scope': {'type': 'BearerToken', 'token': 'access-token-from-skill'}, 'endpointId': '66', 'cookie': {}}, 'payload': {}}}
[DEBUG] 2020-05-11T19:02:47.340Z f6e2b474-e960-4260-a8ce-ed5adb9a8e1d Request Alexa.PowerController/TurnOn
Traceback (most recent call last):
File "/var/task/AlexaSmartHome.py", line 336, in invoke
return operator.attrgetter(name)(self)(request)
File "/var/task/AlexaSmartHome.py", line 374, in TurnOn
endpoint = self.handler.getEndpoint(request)
File "/var/task/DomoticzHandler.py", line 256, in getEndpoint
id = items[1]
IndexError: list index out of range
[INFO] 2020-05-11T19:02:47.341Z f6e2b474-e960-4260-a8ce-ed5adb9a8e1d Request Alexa.PowerController/TurnOn error INTERNAL_ERROR:
[DEBUG] 2020-05-11T19:02:47.341Z f6e2b474-e960-4260-a8ce-ed5adb9a8e1d Skill response {'event': {'header': {'namespace': 'Alexa', 'name': 'ErrorResponse', 'messageId': '89e6cb79-ad20-45a1-9e24-4d4fdeb49e3b', 'payloadVersion': '3', 'correlationToken': 'dFMb0z+PgpgdDmluhJ1LddFvSqZ/\njCc8ptlAKulUj90jSqg=='}, 'payload': {'type': 'INTERNAL_ERROR', 'message': ''}, 'endpoint': {'scope': {'type': 'BearerToken', 'token': 'access-token-from-skill'}, 'endpointId': '66', 'cookie': {}}}}
END RequestId: f6e2b474-e960-4260-a8ce-ed5adb9a8e1d
REPORT RequestId: f6e2b474-e960-4260-a8ce-ed5adb9a8e1d Duration: 110.49 ms Billed Duration: 200 ms Memory Size: 128 MB Max Memory Used: 47 MB Init Duration: 46.89 ms
Skwi
Posts: 18
Joined: Thursday 10 May 2018 9:37
Target OS: Windows
Domoticz version:
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by Skwi »

Hi, I can now test from the lambda function. Si I could try from the aws to get the logs when the problem occurs.

Reading this thread I found that for a switch I must declare endpointID = "SwitchLight-idx"
In the pdf it's written we have to change the 'appliance-001' into "SwitchLight-Domoticz IDX", and I read it as "the idx of my switch light"
Is there a list of all the "appliances" (except in the DomoticzHandler.py)?
User avatar
philchillbill
Posts: 399
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 will find your logs at https://eu-west-1.console.aws.amazon.co ... est-1#logs:
These have nothing to do with your use or otherwise of the logger code in python. Any print statement in your python code will also show up in these logs, so you will see the incoming Alexa messages and your responses, plus whatever you decide to print.

No idea why you are referencing appliance as that was the v2 smart home terminology and Alexicz has always been v3 if I remember correctly.
Alexa skills author: EvoControl, Statereport, MediaServer, LMS-lite
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest