I’ve just configured my Garage Door switch running on wemos D1 mini with ESPHome. It’s configured as a cover and device_class garage, yaml below:
esphome:
name: esphome_garage_door
platform: ESP8266
board: d1_mini
wifi:
ssid:
password:
fast_connect: on
api:
ota:
web_server:
port: 80
logger:
binary_sensor:
- platform: gpio
pin:
number: GPIO13
mode: INPUT_PULLUP
inverted: False
name: "Garage Door Sensor"
device_class: garage_door
filters:
- delayed_on: 20ms
switch:
- platform: gpio
id: relay
pin:
number: GPIO5
inverted: False
restore_mode: ALWAYS_OFF
- platform: restart
name: 'Garage Door REBOOT'
cover:
- platform: template
name: "Garage Door"
device_class: garage
# icon: "mdi:garage"
open_action:
- switch.turn_off: relay
- switch.turn_on: relay
- delay: 0.1s
- switch.turn_off: relay
close_action:
- switch.turn_off: relay
- switch.turn_on: relay
- delay: 0.1s
- switch.turn_off: relay
stop_action:
- switch.turn_off: relay
- switch.turn_on: relay
- delay: 0.1s
- switch.turn_off: relay
optimistic: true
assumed_state: true
status_led:
id: status_light
pin:
number: GPIO2
I was starting to integrate with Google Assistant via Nabu Casa, so I’ve set a PIN and made sure that Disable Two Factor Authentication was turned off in the manage entities section.
While this was set, my GH would ask for my PIN and after me speaking it out, would just reply with ‘I’m sorry, I don’t understand’
Upon playing around with the PIN and the exposure, I’ve now lost the ability to enforce any 2FA on the garage door switch’s exposure.
Any idea what’s going on here? I’m going to remove the Garage Door exposure for now.
Cheers.