This component will set up the following platforms.
Platform | Description |
---|---|
binary_sensor |
Show something on or off . |
{% if not installed %}
- Click install.
- Add follow example:
{% endif %}
binary_sensor:
- platform: datetime_sensors
datetime_input: input_datetime.my_input_datetime
name: my_datetime_is_triggered
Key | Type | Required | Description |
---|---|---|---|
datetime_input |
entity_id |
True |
entity as input_datetime type you like track |
name |
string |
False |
Custom name for this binary_sensor |
### Example usage on automation
automation:
- id: test_automation
alias: Test automation
trigger:
- platform: state
entity_id: binary_sensor.test1_triggered
from: 'off'
to: 'on'
action:
- service: light.toggle
entity_id: light.luz_1