...
The temperature information will put published to the
tele/<SONOFFDEVICE>/SENSOR
Code Block |
---|
{"Time":"2018-06-14T07:56:34","DS18B20":{"Temperature":21.9},"TempUnit":"C"} |
Setting interval at which the sonoff will report it's status
Display current interval
> TelePeriod
Set interval
> TelePeriod <seconds>
Integrating with Homebridge
Install the mqtt-temperature-tasmota homebridge plugin.
> npm install -g homebridge-mqtt-temperature-tasmota
Configure the plugin in homebridge's config.json file:
Code Block |
---|
{
"accessory": "mqtt-temperature-tasmota",
"name": "sonoff98",
"url": "mqtt://192.168.1.60",
"username": "MQTTUSER",
"password": "MQTTPASS",
"topic": "tele/sonoff98/SENSOR"
}, |
References
Reference | URL |
---|---|
Temperature Sensor - DS18B20 | http://wiki.jmehan.com/display/KNOW/Temperature+Sensor+-+DS18B20 |
Sonoff Basic | http://wiki.jmehan.com/display/KNOW/Sonoff+Basic |
Sonoff-Tasmota MQTT Overview | https://github.com/arendst/Sonoff-Tasmota/wiki/MQTT-Overview |
Sonoff-Tasmota Sensor Configuration | https://github.com/arendst/Sonoff-Tasmota/wiki/Sensor-Configuration |
Sonoff-Tasmota Commands | https://github.com/arendst/Sonoff-Tasmota/wiki/Commands |
MQTT Web Client | http://www.hivemq.com/demos/websocket-client/ |
...