I have just set up a new ESP32 relay, all works in ESP Home, and from devices web page. However the switch or button is not shown in HA, I have tried deleting and adding again, but the same.
Any ideas what I am missing?
> # Example configuration entry
> switch:
> - platform: gpio
> name: "Main Rig 1 P" # exposed to Home Assistant
> pin: GPIO4
> id: rig1
> icon: "mdi:gate"
> on_turn_on:
> - delay: 500ms
> - switch.turn_off: rig1
>
>
> button:
> - platform: template
> name: "Main Rig 1 Power" # exposed to Home Assistant
> on_press:
> - switch.turn_on: rig1
> - delay: 1000ms
> - switch.turn_off: rig1
no sign of Main Rig anything in HA