Hooks
What is registered
Defining hooks in YAML
attributes:
temperature:
default: 20.0
hooks:
on_set:
- refresh_model # reuse built-in hook
- notifier_hook # another custom hook, no config
on_threshold:
alert_hook:
level: critical
email: [email protected]
{
"attributes": {
"temperature": {
"default": 20.0,
"hooks": {
"on_set": [
"refresh_model",
"notifier_hook"
],
"on_threshold": {
"alert_hook": {
"level": "critical",
"email": "[email protected]"
}
}
}
}
}
}
Authoring custom hooks
Runtime integration
Validating definitions
Built-in refresh_model hook
refresh_model hookLast updated

