This is a plugin for Homebridge which makes it possible to control modded Sonoff Basic devices with Tasmota firmware through HTTP only.
Unlike generic homebridge-sonoff-tasmota-http, this plugin publishes Sonoff as a Switch class device and gives an ability not only to switch between states (which a parent plugin could easily do), but to trigger ON state (close the cirtcuit) for 0,1-10 seconds like a button.
This project is a pre-stage for a HTTP-only plugin for a Sonoff-based Garage Door Opener, presented in this article: http://www.instructables.com/id/Sonoff-Garage-Door-Opener/
Below is an optional hardware modification (more details in Step 3) that transforms Sonoff's output pins into an isolated circuit, able to toggle any electric circuits (running any voltage!), which have control pins, like garage-door control unit:
Maximum circuit voltage is limited by Sonoff's SRD-05VDC-SL-C relay to 30V DC / 250V AC, max current is 20A.
The Tasmota compatible version of the plugin is 5.11.0 and later
INFORMATION BELOW IS NOT ACTUAL OR EDITED YET.
http://sonoff/cm?cmnd=Power
http://sonoff/cm?cmnd=Power%20On
http://sonoff/cm?cmnd=Power%20Off
{
"accessory": "SonoffTasmotaHTTP",
"name": "Sonoff",
"hostname": "The hostname of the Sonoff device"
}
{
"accessory": "SonoffTasmotaHTTP",
"name": "Sonoff",
"relay": "2",
"hostname": "The hostname of the Sonoff device"
}
{
"accessory": "SonoffTasmotaHTTP",
"name": "Sonoff",
"password": "The password from the web interface",
"hostname": "The hostname of the Sonoff device"
}