Page 12 of 17
Re: Alexicz - FREE Domoticz to Alexa Integration
Posted: Saturday 11 January 2020 17:07
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.
Re: Alexicz - FREE Domoticz to Alexa Integration
Posted: Saturday 11 January 2020 19:08
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
Re: Alexicz - FREE Domoticz to Alexa Integration
Posted: Saturday 11 January 2020 19:11
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

Re: Alexicz - FREE Domoticz to Alexa Integration
Posted: Sunday 19 January 2020 18:56
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?
Re: Alexicz - FREE Domoticz to Alexa Integration
Posted: Sunday 19 January 2020 21:38
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

Re: Alexicz - FREE Domoticz to Alexa Integration
Posted: Sunday 09 February 2020 15:38
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

Re: Alexicz - FREE Domoticz to Alexa Integration
Posted: Sunday 09 February 2020 16:34
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
Re: Alexicz - FREE Domoticz to Alexa Integration
Posted: Monday 10 February 2020 15:57
by Mazzokun
Yes, they are in the same list..
Re: Alexicz - FREE Domoticz to Alexa Integration
Posted: Monday 10 February 2020 20:06
by Mazzokun
Solved, I forgotten that I had a user AND a floorpan for Alexa devices.
Thank you for support!
Re: Alexicz - FREE Domoticz to Alexa Integration
Posted: Monday 10 February 2020 20:52
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.....
Alexicz - FREE Domoticz to Alexa Integration
Posted: Tuesday 11 February 2020 8:29
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?
Re: Alexicz - FREE Domoticz to Alexa Integration
Posted: Tuesday 21 April 2020 21:55
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?
Re: Alexicz - FREE Domoticz to Alexa Integration
Posted: Tuesday 21 April 2020 22:10
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.
Re: Alexicz - FREE Domoticz to Alexa Integration
Posted: Tuesday 21 April 2020 23:25
by Robert
Works perfect. Thank you so much for this intelligent piece of work!!!
Re: Alexicz - FREE Domoticz to Alexa Integration
Posted: Thursday 23 April 2020 16:48
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)

Re: Alexicz - FREE Domoticz to Alexa Integration
Posted: Wednesday 06 May 2020 12:07
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.
Re: Alexicz - FREE Domoticz to Alexa Integration
Posted: Wednesday 06 May 2020 20:04
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.
Re: Alexicz - FREE Domoticz to Alexa Integration
Posted: Monday 11 May 2020 21:15
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
Re: Alexicz - FREE Domoticz to Alexa Integration
Posted: Tuesday 12 May 2020 10:29
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)?
Re: Alexicz - FREE Domoticz to Alexa Integration
Posted: Tuesday 12 May 2020 17:50
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.