Giter Club home page Giter Club logo

home-automation-project's Introduction

home-automation-mqtt-hass

Personal project with a broker mqtt (mosquitto), home assistant project (HASS) with docker...

1 - Install Docker.

See: https://docs.docker.com/install/

2 - Install Docker-Compose.

See: https://docs.docker.com/compose/install/

3 - Clone this repository.

$ git clone --recursive https://github.com/tonyldo/Home-Automation-Project.git

4 - Install only Home Assistant...

$ docker-compose -f docker-compose.yaml '''

5 - Or homeAssitant w/ Mosquitto Broker integration...

first you need edit "MosquittoDockerComposeInstall/mqtt.env" file and setting the user and pass for the new mosquitto server.

$docker-compose -f docker-compose.yaml -f docker-compose-w-mqtt.yaml -f MosquittoDockerComposeInstall/docker-compose.yaml up --build -d

6 - Or homeAssitant w/ Mosquitto Broker integration and Bridge to another external MQTT Broker like cloudmqtt.com...

You need now edit the .env file with CACERT_FILE path Ex:"/etc/ssl/certs/ca-certificates.crt". Also you need edit the "MosquittoDockerComposeInstall/mqtt_bridge.env" file and setting the server, ssl port, user and pass for the external mqtt server.

$docker-compose -f docker-compose.yaml -f docker-compose-w-mqtt.yaml -f MosquittoDockerComposeInstall/docker-compose.yaml -f MosquittoDockerComposeInstall/docker-compose-bridgemqtt.yaml  up --build

7 - ... Or restoring backuped file from pre defined folder, add this option:

You need now edit the the option RECOVERY_CONFIGFILES_DIR=/Path-to/Home-Assistant-Configuration-Files-Dir/ on .env file

$ -f docker-compose-recovery-configfiles.yaml

8 - Testing, subscribe to mosquitto broker with the following command, go to home assistant web interface http://docker_machine_ip:8123 and post something on MQTT Publish service.

$ mosquitto_sub -u $MOSQUITTO_USER -P $MOSQUITTO_USER_PASS -t +/# -v

home-automation-project's People

Contributors

tonyldo avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.