Skip to main content

Primary links

  • Home
  • AI
  • Kubernetes
  • Incus
  • Ansible
  • Terraform
  • OpenStack
  • Virtualization
  • Linux
  • SmartHome
  • HowTo

Misc

  • Linux
  • Hardware
    • APC Back-UPS ES 700G
    • ARM
    • AVM
    • AX88772A Fast Ethernet USB Adapter
    • AXIS M1144-L
    • Adaptec RAID controller
    • Android
    • Archive
    • Arduino
    • Bionx
    • Bluetooth
    • Brother
    • Cisco
    • DCPMM / NVRAM
    • Dell
    • ESP32 / ESP8266
      • DPM8624 modbus control with esp8266
      • Sinilink XY6014 modbus control with ESP8266 ESPhome
      • Sonoff BASIC R1 with ESPhome
    • HP (Hewlett Packard)
    • IPMI
    • Intel NVMe
    • LSI MegaRAID
    • Lenovo ThinkPad
    • Linpack
    • Linux Benchmark
    • Logitech Squeezebox Touch
    • Logitech
    • Mellanox
    • Micron
    • NVMe
    • OpenWRT
    • RaLink RT2500
    • Raspberry Pi
    • SmartHome
    • Snom 320 / 370
    • Solar
    • Sony KDL-55EX725
    • Supermicro
    • Surface
    • TEMPer (usb temperatur)
    • USB Serial adapter
    • Ubiquiti
    • Update Intel NIC firmware
    • Yamaha
    • ZyXEL NSA320
    • ahoy DTU
    • batteries
    • hdparm
    • iDRAC
    • memtest86+
    • smartmontools
  • Programming
  • Databases
  • CLI
  • Multimedia
  • Plugins
  • Windows

Cloud

  • OpenStack
  • cloud-config
  • nextcloud

Virtualization

  • Virtualization
  • Docker
  • KVM
  • Kubernetes
  • LXC
  • LXD
  • QEMU
  • VMware
  • VirtualBox
  • multipass
  • podman
  • vagrant
  • XEN
  • Incus

Network

  • DNS
  • Firewall
  • Linux
  • OpenvSwitch
  • SSL
  • VLAN
  • VPN
  • iPXE
  • namespaces
  • nmcli
  • tcpdump

Storage

  • CEPH
  • DRBD
  • LVM
  • S3
  • ZFS
  • btrfs

Automation / CI/CD

  • Install
  • Ansible
  • GitLab
  • LLM
  • Preseed
  • Puppet
  • Terraform
  • Ubuntu autoinstall

Monitoring / Visualisation

  • Grafana
  • Icinga
  • Prometheus
  • Monitoring
  • ELK
  • mermaid
  • esphome

ESPhome configuration (sonoff_bassic_r1.yaml)

esphome:
  name: sonoff-basic-r1

esp8266:
  board: esp01_1m

wifi:
  networks:
    - ssid: !secret wifi_ssid
      password: !secret wifi_password
    - ssid: !secret wifi_ssid_2
      password: !secret wifi_password_2

  ap:
    ssid: "Sonoff Basic Fallback"
    password: ""

logger:
  baud_rate: 0

api:

ota:
  platform: esphome

web_server:
  port: 80
  local: true
  log: false

output:
  - platform: gpio
    pin:
      number: GPIO13
      inverted: true
    id: sonoff_led

light:
  - platform: binary
    id: relay_led
    internal: true
    output: sonoff_led

switch:
  - platform: gpio
    pin: GPIO12
    id: sonoff_relay
    name: "Sonoff Relay"

    on_turn_on:
      - light.turn_on: relay_led

    on_turn_off:
      - light.turn_off: relay_led

binary_sensor:
  - platform: gpio
    pin:
      number: GPIO0
      mode: INPUT_PULLUP
      inverted: true

    id: sonoff_button
    name: "Sonoff Button"

    on_press:
      - switch.toggle: sonoff_relay

ESPhome flash

esphome run sonoff_bassic_r1.yaml --device 192.168.178.XXX

Links
https://devices.esphome.io/devices/sonoff-basic-diy-light/

Profiles GitHub StackOverflow LinkedIn Xing
Contact Imprint
© panticz 2026

Cookie-Einstellungen

Diese Website nutzt eingebettete Inhalte von Drittanbietern (z.B. YouTube, SoundCloud). Beim Laden dieser Inhalte werden Daten an die jeweiligen Anbieter übermittelt. Datenverarbeitungserklärung