I want to create an automation based on successful logins the Supervisor log.
2024-04-30 07:20:00.467 INFO (MainThread) [supervisor.auth] Successful login for 'myuser'
I have deduced that the trigger should be event with event type system_log_event but not sure how to write the condition logic to target successful logins with my user.
Example code I found for automations based on log events:
alias: example 555
trigger:
- platform: event
event_type: system_log_event
condition: '{{ "zwave_js_server.exceptions.Failed" in trigger.event.data.exception }}'
action:
- service: notify.notifier_telegram
data:
message: 'Zwave Error 2'