Communicate with an ESP8266 in the context of home automation.
This Skill has been created for the makers and hackers who want to build their own home automation system based on ESP8266. The purpose of this Skill is to be able to use Mycroft to send commands to all ESP8266s on the local network. The communication protocol can be selected (Websocket, MQTT, http GET).
-
"Hey Mycroft, can you switch on the mood lamp ?"
-
"Hey Mycroft, can you turn off the TV ?"
"Esp8266Skill": {
"units": "esp8266.local", // Can be an IP Address
"protocol": "http_get", // Options : ws, mqtt, http_get
"ws-port": 81,
"mqtt-host" : "test.mosquitto.org",
"mqtt-port" : 1883,
"mqtt-auth" : "no", // yes or no
"mqtt-user" : "youruser",
"mqtt-pass" : "yourpass"
},
This skill requires the installation of paho-mqtt : pip install paho-mqtt
.
The arduino code for the ESP8266 can be found here.
- Improve the keyword part.
- Auto-recognition of a new ESP8266 on the local network.
- Clean the code
- MQTT protocol implementation. (done)
- Put the Arduino code of the ESP8266 on github (done) : https://github.com/Dark5ide/ESP8266_Controler3
- Use JSON format for the information transmitted. (done)
Dark5ide