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

General Switch button

$
0
0

@ahmedwahdan wrote:

Hello,
I’m new to Hassio, and I’m trying to create two switches but extra switch is showing here which control other switches.
esphome

switch:
  - platform: gpio
    pin: 2
    id: relay
  - platform: gpio
    pin: 3
    id: relay3  
  - platform: template
    name: "Gate Remote"
    id: relay2
    optimistic: true
    turn_on_action:
      - switch.turn_on: relay
  - platform: template
    name: "Gate Remote2"
    id: relay4
    optimistic: true
    turn_off_action:
    - switch.turn_off: relay
  
binary_sensor:
  - platform: gpio
    name: "Living Room Window"
    pin:
      number: 2
      mode: OUTPUT

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 104457

Trending Articles



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