Skip to content

rimram31/dz_smarthome

Repository files navigation

Alexa Domoticz Smart Home skill

Sorry, I'm no more supporting this code, free to use and/or copy it. I'm using today (in addition to domotiicz) Home Assistant with my alexa_smarthome skill. Domoticz devices are driven by HA as a slave (using an Alexa plugins!).

Presentation

Very first version of this skill.

This skill is inspired from madgeni skill madgeni alexa domo skill and also get some code skeleton from Home Assistant Alexa code

Only devices in plan will be declared to Alexa, you can set a friendly Alexa name using Alexa_name = ... in the device description field.

Installing the skill

You must have or create an Amazon Developer Account and an Amazon Web Service account to host the Alexa lambda

Create a Smart Home skill in Amazon Devleoper Account with an associated Lambda in your Amazon Web Service account

git clone git@github.com:rimram31/dz_smarthome.git
cd dz_smartome

Fill your configdz.json file, domoticz endpoint, credentials. Debug mode enable debug log level (see lambda logs)

cp configdz-template.json configdz.json
nano configdz.json

Build the lambda zip file

./build_lambda

This will create the zip code file to be uploaded for the lambda (require a Python 3.6 engine, handler name is lambda.event_handler)

To help to make some tests, it would be good to put the device in a 'well recognized' (voice) group.

Thanks to Damsee to provide a very good documentation, the one provided here

Help for development

I've add proxy_local.py source code I'm using to develop this skill which is only for development purpose. It run a local (flask) python server handling Smart Home Alexa API calls and running Alexicz code. Used with Alexa Smart Home Proxy, you get the same behaviour except that all teh Smart Home API work is done locally (and can be debug easily).

Additions

Thanks to sd5445fr which contribute to two new R3 documentations.