Bind entities
Bind inputs with %I*, outputs with %Q* and helpers with %M*. The Entity Browser supports selecting and inserting bindings.
Write your Home Assistant logic in ST. The integration translates your code into native automations and binds variables to your entities.
2.2.0 · Home Assistant · MIT
// Example: hallway light {mode: restart} PROGRAM Motion_Light VAR {trigger} motion AT %I* : BOOL := 'binary_sensor.hallway_motion'; light AT %Q* : BOOL := 'light.hallway_ceiling'; END_VAR IF motion THEN light := TRUE; ELSE light := FALSE; END_IF; END_PROGRAM
The ST editor connects familiar programming logic to Home Assistant’s event model.
Bind inputs with %I*, outputs with %Q* and helpers with %M*. The Entity Browser supports selecting and inserting bindings.
Use conditions, state variables and timers such as TON, TOF or TP. Pragmas control triggers, persistence and execution mode.
Syntax highlighting and autocomplete help while writing. Online mode displays current entity values in the editor.
An input event starts the generated HA automation. State and timers use the corresponding Home Assistant helpers.
Deployment backs up configuration and includes error handling and rollback. Review the preview and start by testing a small automation.
Add the repository as a custom Integration in HACS and install ST for Home Assistant.
Restart Home Assistant. Add ST for Home Assistant under Settings → Devices & services.
Open the new sidebar panel and create your first program. Replace the example IDs with real entities.
Check the diagnostics, click Deploy and test the behavior with two Toggle helpers first.
HACS · Custom repository, type Integration
https://github.com/Auda29/ST_HA_Automation
Home Assistant 2024.7.0 or newer and HACS for the recommended installation. No additional PLC hardware is required.
Alternatively, extract the release archive and copy custom_components/st_hass into your custom_components directory. Then restart and add the integration.
Release, source archive and changelog
Guides and technical details in the repository.
The integration generates native, event-driven Home Assistant automations. It does not emulate a cyclic PLC task with real-time guarantees.
The demo on this page only shows the IF logic in your browser. Install the integration and replace the entity IDs in the program to use real entities.
This project site is available in German and English. The editor interface and most technical references are in English.