Skip to content

Dark5ide/skill-esp8266

Repository files navigation

ESP8266 skill

Communicate with an ESP8266 in the context of home automation.

Description

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).

Examples

  • "Hey Mycroft, can you switch on the mood lamp ?"

  • "Hey Mycroft, can you turn off the TV ?"

Configuration

    "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"
    },

Requirements

This skill requires the installation of paho-mqtt : pip install paho-mqtt.

The arduino code for the ESP8266 can be found here.

TODO

  • 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)

Credits

Dark5ide

About

ESP8266 Skill for Mycroft AI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages