Binary Sensor
binary_sensor: - platform: ... # See supported platforms at the end of this page name: 'My Binary Sensor' device_class: presenceAttributes
Section titled “Attributes”Common attributes are documented in Common Component Properties.
| Property | Description | Example |
|---|---|---|
device_class | Home Assistant binary sensor class (for example presence, motion, door). | presence |
Triggers
Section titled “Triggers”Trigger can issue actions. Additionally they can be filtered.
| Property | Description | Example |
|---|---|---|
on_press | Trigger block that runs when state changes to true. | then: - switch.turn_on: "screen" |
on_release | Trigger block that runs when state changes to false. | then: - switch.turn_off: "screen" |
Supported Platforms
Section titled “Supported Platforms”Similar to ESPHome: Binary Sensor