Software
You must have following software package installed.
Install socket mqtt adapter IoT Firmware Olimex
For this moment work only for relay module comes with board. Check all modules here Link
git clone https://github.com/Smart-Dashboard/ESP8266-IoTJS.git
cd ESP8266-IoTJS
Now download socket_mqtt_adapter_homeassistant.js
- Download it from Link
- Paste it in root of ESP8266-IoTJS
- Change to your setup
- Run as root
sudo npm install
sudo node socket_mqtt_adapter_homeassistant.js
Install Home Assistant
Download and install it with this command:
pip3 install homeassistant
Start and open UI with this command:
hass --open-ui
Now, you must make configuration.yaml and set up you device.
Must set up mqtt switch with same topic like socket_mqtt_adapter_homeassistant.js
Next step is set your automation
- Here is link to home assistant automation documentation.
- Here is link to all available presence-detection plugins.
Enjoy automation and presence detections.
Comments
Please log in or sign up to comment.