Openmqttgateway cover


#1

hi,
how can i controll 2 gpio output so i can have them control gate \cover

like:
switch:

  • platform: gpio
    pin: D3
    name: “Garage Door Open Switch”
    id: open_switch
  • platform: gpio
    pin: D4
    name: “Garage Door Close Switch”
    id: close_switch
    cover:
  • platform: template
    name: “Garage Door”
    open_action:

Cancel any previous action

  • switch.turn_off: close_switch

Turn the OPEN switch on briefly

  • switch.turn_on: open_switch
  • delay: 0.1s
  • switch.turn_off: open_switch
    close_action:
  • switch.turn_off: open_switch
  • switch.turn_on: close_switch
  • delay: 0.1s
  • switch.turn_off: close_switch
    stop_action:
  • switch.turn_off: close_switch
  • switch.turn_off: open_switch
    optimistic: true

#2

Hello,

You cant do it with the current code, nevertheless if you use this fork you can use multiple pins.