Skip to content

Switch

Base Example
switch:
  - platform: ... #(1)!
    name: "My Switch"
  1. Here the plaform must be defined.

Similar to ESPHome:

  • https://esphome.io/components/switch/index.html