homebridge-sonoff-mini-api-rest-valve

Plugin for Sonoff Mini REST API with Valve: https://github.com/simone-gasparini/homebridge-sonoff-mini-api-rest-valve

Usage no npm install needed!

<script type="module">
  import homebridgeSonoffMiniApiRestValve from 'https://cdn.skypack.dev/homebridge-sonoff-mini-api-rest-valve';
</script>

README

npm npm

homebridge-sonoff-mini-api-rest

Buy Me A Coffee

This plug-in enables you to control your Sonoff Mini DIY mode light bulb. To switch to mode, follow this instruction

Installation

Run the following command

npm install -g homebridge-sonoff-mini-api-rest

Chances are you are going to need sudo with that.

Config.json file

    {
            "accessory": "Sonoff",
            "type": "lightbulb"
            "name": "Sonoff Mini DIY",
            "url": "http://192.168.1.24:8081",
            "id": "1000989596",
            "debug": false 
        }
Key Description
accessory Required. Has to be "Sonoff"
type Required. Type of accessory
name Required. The name of this accessory. This will appear in your Homekit app
url Required. The url address that you discovered earlier
id Required. Id number
debug Optional. Debug mode

Issues

This software comes with no warranty. It works for me and it might for you.