Skip to content

Latest commit

 

History

History
105 lines (79 loc) · 3.9 KB

README.md

File metadata and controls

105 lines (79 loc) · 3.9 KB

MyDomoAtHome

DOMO/REST Gateway between Domoticz and Imperihome ISS

MP Perl Plack Dancer1 ![REST](https://img.shields.io/badge/REST API-powered-green.svg) PayPal donate button

![REST](https://img.shields.io/badge/RPI-tested ok-green.svg) ![REST](https://img.shields.io/badge/Odroid-tested ok-green.svg) ![REST](https://img.shields.io/badge/Intel-tested ok-green.svg)

MyDomoAtHome

Features and goals

The initial goal is to provide a REST API to ImperiHome ISS that would only allow to see the current state of sensors and interact with them in case of an actuator.

Reached M1 Goal reached

  • Free
  • Multi-platform (Linux, Mac OS X, Windows)
  • Support major type of sensors/feature of Domoticz
    • Weather and Environmental sensors
    • Energy sensors (Electricity, Gas, Water)
    •  Switches
    • Thermostat
  • Dependency-less
  • Perl Dancer 1 engine
  • MPD based players support (Volumio...)

Next M2 milestone will provide extended support to other platforms with Docker and Synology

PayPal donate button

  • Extended platform (support)
    • Provide Docker images
    • Provide Synology package
  • Perl Dancer2 engine
  • Auto updatable
  • Kodi support
  • Support every single type of sensors/feature of Domoticz
    • Dynamic room creation
    • RGB lamps
    • Alarm pannel

Standalone installation (PI, cubie, odroid, intel...)

Install procedure

  • cd ~/domoticz/
  • git clone https://github.com/empierre/MyDomoAtHome MyDomoAtHome
  • cd MyDomoAtHome
  • cp config.yml.def config.yml
  • edit config.yml with your values
  • edit MyDomoAtHome.sh and change the path line 16 to your home installation
  • sh ./run_once.sh

Running the service

The default port is now 3001.

Start the service:

sudo service MyDomoAtHome.sh start

Stop the service :

sudo service MyDomoAtHome.sh stop

Restart the service :

sudo service MyDomoAtHome.sh reload

Update:

  • cd ~/domoticz/MyDomoAtHome
  • sh ./update-mdah.sh

Docker installation

Duplicate the image

docker pull epierre/mydomoathome

Launch the process

Remember to change the IP below and authorize in Domoticz the docker IP range docker run --name=mydomoathome --env domo_path="http://ip:8080" -it --rm -p 3001:3001 epierre/mydomoathome

Check running docker processes

docker ps

Stoping a docker process

docker stop DOCKER_ID (found from the docler ps)

Testing the installation

  • Check the domoticz is accessible from the hosting machine: curl http://domoticz_ip:domoticz_port/json.htm?type=devices&filter=all&used=true&order=Name
  • Check the MDAH returns the result from the hosting machine: curl http://gateway_ip:gateway_port/devices

Support:

Q&A

  • Remember to add the gateway in the local networks under setup in domoticz !