Here, a simple instruction.
Download and flash ESPEasy. I use github version. Use Arduino IDE 1.6.5 and ESP8266 core 2.0.0. For 512K and 1M version set SPIFFS to 64K. For 4M version set 3M.
Configure ESPEasy:
Check the settings template, sometimes when you change the protocol disappears. Tools > Advanced.
For Actuators (Output) you do not need to configure device on ESP Just call topic /sysname/GPIO/0 with payload 1 or 1.00.
Install Mosquitto broker.
For Deb wheezy:
wget http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key
sudo apt-key add mosquitto-repo.gpg.key
cd /etc/apt/sources.list.d/
sudo wget http://repo.mosquitto.org/debian/mosquitto-wheezy.list
apt-get update
apt-get install mosquitto
sudo /etc/init.d/mosquitto start
Install plug-in pimatic-mqtt
In your plugins section of pimatic’s config.json file add:
{
"plugin": "mqtt"
}
Add device to devices section:
{
"class": "MqttSensor",
"id": "esp01",
"name": "ESP-01",
"mqtturl": "mqtt://localhost",
"attributes": [
{
"name": "dht-11-temperature",
"topic": "/esp01/dht11/temperature",
"type": "number",
"unit": "°C",
"acronym": "DHT-11-Temperature"
},
{
"name": "dht-11-humidity",
"topic": "/esp01/dht11/humidity",
"type": "number",
"unit": "%",
"acronym": "DHT-11-Humidity"
},
{
"name": "ds-temperature",
"topic": "/esp01/ds18b20/temperature",
"type": "number",
"unit": "°C",
"acronym": "DS-Temperature"
},
{
"name": "uptime",
"topic": "/esp01/system/uptime",
"type": "number",
"unit": "minute",
"acronym": "Uptime"
},
{
"name": "freeram",
"topic": "/esp01/system/freeram",
"type": "number",
"unit": "B",
"acronym": "FreeRAM"
}
]
}
And here’s the result:
For testing i use MQTT.fx