Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95480

Sonoff S31 Relay Immediately On?

$
0
0

@ideal2545 wrote:

Hi All,

Was curious how I could enable the S31 Relay to be immediately on when it comes up, right now its defaulting into the off state.

# Device Specific Config

uart:
  rx_pin: RX
  baud_rate: 4800
  
binary_sensor:
  - platform: gpio
    pin:
      number: GPIO0
      mode: INPUT_PULLUP
      inverted: True
    name: "Dishwasher S31 Button"
    on_press:
      - switch.toggle: relay

switch:
  - platform: gpio
    name: "Dishwasher S31 Relay"
    pin: GPIO12
    id: relay

sensor:
  - platform: cse7766
    update_interval: 2s
    current:
      name: "Dishwasher S31 Current"
    voltage:
      name: "Dishwasher S31 Voltage"
    power:
      name: "Dishwasher S31 Power"

status_led:
  pin:
    number: GPIO13

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95480

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>