Új hozzászólás Aktív témák

  • S.Milan

    csendes tag

    Sziasztok,

    Felttem egy Sonoff S26-os konnektorra ESPhome firmware-t. Működik. A kérdésem hogy lehet azt beállítani, hogy áramszünet után az utolsó állapotban áljon vissza. Tasmota alatt ez működik. Van valakienk valami ötlete, hogy lehet ezt megoldani?

    Jelenleg ezzel a configgal fut:
    esphome:
    name: smart-plug-56

    esp8266:
    board: sonoff_s20

    # Enable logging
    logger:

    # Enable Home Assistant API
    api:
    password: !secret esphome-password

    ota:
    password: !secret esphome-password

    wifi:
    ssid: !secret wifi-ssid
    password: !secret wifi-password
    fast_connect: true

    # Enable fallback hotspot (captive portal) in case wifi connection fails
    ap:
    ssid: "Smart plug 56 Fallback Hotspot"
    password: "xxxx"

    captive_portal:

    web_server:
    port: 80

    binary_sensor:
    - platform: gpio
    pin:
    number: GPIO0
    mode:
    input: true
    pullup: true
    inverted: true
    name: "Smart plug 56 button"
    on_press:
    then:
    - switch.toggle: relay

    switch:
    - platform: gpio
    name: "Smart plug 56 relay"
    pin: GPIO12
    id: relay
    restore_mode: RESTORE_DEFAULT_OFF

    - platform: restart
    name: "Smart plug 56 restart"

    output:
    # Register the green LED as a dimmable output ....
    - platform: esp8266_pwm
    id: s26_green_led
    pin:
    number: GPIO13
    inverted: true

    light:
    # ... and then make a light out of it.
    - platform: monochromatic
    name: "Smart plug 56 green LED"
    output: s26_green_led

    text_sensor:
    - platform: wifi_info
    ip_address:
    name: smart-plug-56 IP address
    mac_address:
    name: smart-plug-56 MAC addresss

    [ Szerkesztve ]

Új hozzászólás Aktív témák