All Projects → mongoose-os-apps → sonoff-basic-openhab

mongoose-os-apps / sonoff-basic-openhab

Licence: Apache-2.0 license
A Sonoff Basic firmware to work with openHAB

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
shell
77523 projects
c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to sonoff-basic-openhab

Mqtt Ir Transceiver
ESP8266 based bidirectional bridge between MQTT and IR (change MQTT message to IR signal and change received IR signal to MQTT message)
Stars: ✭ 130 (+519.05%)
Mutual labels:  openhab
owrtwifi2mqtt
Using your OpenWRT Router's Wifi to detect if a person's smartphone is still in/near the apartment and publish via MQTT
Stars: ✭ 70 (+233.33%)
Mutual labels:  openhab
Open-Home-Automation
Open Home Automation with Home Assistant, ESP8266/ESP32 and MQTT
Stars: ✭ 905 (+4209.52%)
Mutual labels:  sonoff
Openhab Vscode
VS Code extension for openHAB configuration files
Stars: ✭ 148 (+604.76%)
Mutual labels:  openhab
Dsckeybusinterface
An Arduino/esp8266/esp32 library to directly interface with DSC security systems.
Stars: ✭ 202 (+861.9%)
Mutual labels:  openhab
SenseoWifi
Wifi'ify the Senseo coffee maker. Circuit and firmware for an internal Senseo hack to monitor and control the daily coffee brew (via MQTT) ☕️📶
Stars: ✭ 73 (+247.62%)
Mutual labels:  openhab
Tuya Mqtt
Nodejs-Script to combine tuyaapi and openhab via mqtt
Stars: ✭ 105 (+400%)
Mutual labels:  openhab
awesome-rhasspy
Carefully curated list of projects and resources for the voice assistant Rhasspy
Stars: ✭ 50 (+138.1%)
Mutual labels:  openhab
Sonoff-HomeKit
Эта прошивка делает Sonoff Basic совместимым с Apple Homekit
Stars: ✭ 24 (+14.29%)
Mutual labels:  sonoff
EspBuddy
Wrapper to easily upload (OTA or Serial), backup, batch query, monitor ESP8266 boards using Esptool.py, Espota.py and Platformio
Stars: ✭ 47 (+123.81%)
Mutual labels:  sonoff
Openhab Syno Spk
openHAB Synology SPK Install Package
Stars: ✭ 160 (+661.9%)
Mutual labels:  openhab
Pai
Paradox Magellan, Spectra and EVO, with MQTT, Signal, Pushbullet, Pushover and others
Stars: ✭ 185 (+780.95%)
Mutual labels:  openhab
esp8266-benq-rs232-mqtt
Control a BenQ TH530 projector via its RS232 interface with an ESP8266, MQTT and openHAB.
Stars: ✭ 28 (+33.33%)
Mutual labels:  openhab
Openhab Ios
The repository of the iOS client
Stars: ✭ 141 (+571.43%)
Mutual labels:  openhab
sonoff-homie
Homie based software for Sonoff module
Stars: ✭ 25 (+19.05%)
Mutual labels:  sonoff
Openhab Addons
Add-ons for openHAB
Stars: ✭ 1,598 (+7509.52%)
Mutual labels:  openhab
Neon.HomeControl
Home Automation System, similar to HomeAssistant but made with .net core and ❤️
Stars: ✭ 46 (+119.05%)
Mutual labels:  sonoff
phpMyDomo
The ultimate Domotic web remote for the rest of us
Stars: ✭ 32 (+52.38%)
Mutual labels:  openhab
maestrogateway
Manage MCZ pellet stoves that are equipped with Maestro technology
Stars: ✭ 30 (+42.86%)
Mutual labels:  openhab
TasmoManager
A beginner friendly desktop UI for Tasmota flashed devices.
Stars: ✭ 53 (+152.38%)
Mutual labels:  sonoff

A Sonoff Basic firmware to work with openHAB

This firmware drives Sonoff Basic from iTead Studio, and powered by Mongoose OS. It targets to work with openHAB 2.4 or newer using the MQTT binding.

Features

  • LED blink pattern to indicate connectivity
  • On board button to toggle the switch manually in case of no connectivity
  • Bounce protection
  • Device local schedule timer
  • Countdown timer to toggle the switch
  • Switch ON duration counter for energy consumption analysis
  • Night Mode to turn off status LED
  • Web interface for setting up WiFi SSID and password
  • Reset to firmware defaults by holding the on board button for over 5 seconds

Configuration options

You have 2 options to implement this firmware:

  1. automatic configuration by Homie Convention

Homie Convention enables auto-discovery of the device by openHAB. Things, Channels and Items will be automatically setup.

  1. manual configuration with text files

openHAB UI

openHAB UI

energy consumption chart

Build for Homie support

Build using default cloud service:

cat mos-homie.yml > mos.yml
mos build --platform esp8266 \
  --build-var FLASH_SIZE=1048576 --build-var BOARD=esp8266-1M

Build for manual configuration

Build using default cloud service:

cat mos-manual.yml > mos.yml
mos build --platform esp8266 \
  --build-var FLASH_SIZE=1048576 --build-var BOARD=esp8266-1M

Flash

Sonoff Basic has only 1Mbytes flash.

mos flash --esp-flash-params "dout,8m,40m"

WiFi Setup

  1. Switch your PC or smartphone to the device's WiFi network. The SSID is named like Sonoff_??????, and the password is SonoffBasic.

  2. Use your browser to open http://192.168.4.1/

openHAB Configuration

If you choose the manual configration option, please check the manual folder.

Local schedule timer

Before using the local timer, make sure to set correct time zone via timer.tz.

For Example, a Hong Kong user:

mos config-set timer.tz=+0800

And a user in California (DST):

mos config-set timer.tz=-0700

Then, create a JSON file schedules.json and upload to the filesystem. Please reference the supplied sample for syntax.

Countdown timer

When the countdown timer reached zero, the switch will be toggled.

The local schedule timer will be disabled until the countdown is completed.

This timer is not persisted across reboots.

Night Mode

Example: set night mode from 23:00 to 6:30:

mos config-set nm.enable=true nm.bh=23 nm.bm=0 nm.eh=6 nm.em=30

Reset to firmware defaults

Press and hold the on board button for over 5 seconds.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].