havnfun / micropython-sonoff-basic

Control sonoff-basic using mqtt. Written in micropython.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

micropython-sonoff-basic

Alternate firmware for sonoff-basic written in micropython.

Status (work in progress):

Example: home-assistant config.yaml

mqtt:
  broker: 10.0.1.5

switch:
  - platform: mqtt
    name: "Sonoff1"
    state_topic: "stat/sonoff1/power"
    command_topic: "cmnd/sonoff1/power"
    payload_on: "ON"
    payload_off: "OFF"
    state_on: "ON"
    state_off: "OFF"
    optimistic: false
    qos: 0
    retain: true

About

Control sonoff-basic using mqtt. Written in micropython.

License:MIT License


Languages

Language:Python 100.0%