LED strip controller with wall switch. Working fallback without HA

Hi, I would like to make LED strip light controlled by HA and wall switch. And my requirement is - switch have to work even if HA is down = switch is controling power to light strip.
I want to use somethink like magic led controler or H801 RGBW LED flashed with esphome.

I see two possible sollution:

  1. control over some smart relay (for examle esphome/rassberry relay or shelly or sonoff). I draw schema - v1
    this should be working, but I see problem with controls over HA. There will be two entites - relay and controler and I would have to pair them somehow.

  2. control directly led controller. This should be also possible. I would use TX or RX pin as digital input. something like V2 on image
    Maybe is better use wled and esp board and use normal pin as input.

Which solution is better? Do you have any others ideas?

thanks

ad point 2) - magic led controller has ready IR input and it si possible to use it

esphome:
  name: led_bath
  platform: ESP8266
  board: esp01_1m

wifi:
  ssid: ""
  password: ""


captive_portal:

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:


light:
  - platform: rgb
    name: "LED bath"
    id: led
    red: out_red
    green: out_green
    blue: out_blue

output:
  - platform: esp8266_pwm
    pin: GPIO12
    id: out_red
  - platform: esp8266_pwm
    pin: GPIO05
    id: out_green 
  - platform: esp8266_pwm
    pin: GPIO13
    id: out_blue


binary_sensor:
  - platform: gpio
    pin:
      number: GPIO04
      #mode: INPUT_PULLUP
      #inverted: True
    name: "switch led"
    on_state:
      - light.toggle: led
    internal: true

# different source:
# GPIO14 ir pin
# GPIO04 IR receiver (optional)

now when I connect GRND and IR pin, led turns on