/homebridge-sonoff-tasmota-http

Control modded (turned into a switch) Sonoff Basic devices with Tasmota firmware through Homebridge

Primary LanguageJavaScriptOtherNOASSERTION

homebridge-sonoff-tasmota-http-switch

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: alt text

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.

Information

http://sonoff/cm?cmnd=Power
http://sonoff/cm?cmnd=Power%20On
http://sonoff/cm?cmnd=Power%20Off

Example config

{
  "accessory": "SonoffTasmotaHTTP",
  "name": "Sonoff",
  "hostname": "The hostname of the Sonoff device"
}

Multiple Relays

{
  "accessory": "SonoffTasmotaHTTP",
  "name": "Sonoff",
  "relay": "2",
  "hostname": "The hostname of the Sonoff device"
}

Password specified in Web Interface

{
  "accessory": "SonoffTasmotaHTTP",
  "name": "Sonoff",
  "password": "The password from the web interface",
  "hostname": "The hostname of the Sonoff device"
}