You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I wanted to trigger an automation whenever the charger was rebooted (to start a new session when one was running before the reboot). For this, I thought creating an automation triggered by the notification "Charger xxxx rebooted" would be simpelst.
This notification however does not provide a fixed id. This id can be used as a filter in the persistent_notification trigger platform.
Describe the solution you'd like
In chargepoint.py:
In notify_ha, add a parameter notificationId (defaulting to eg "occp_default").
add this to service_data: "notification_id": notificationId
In various calls, provide a value for notificationId. eg: in _register_boot_notification, set notificationId = "occp_boot_notification"
Describe alternatives you've considered
Getting the state of any of the sensors of the charger/ocpp entities, but nothing seems to cover this 100%
As a workaround, I'm using the trigger without id and add an extra condition for this trigger to filter on the title and message
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I wanted to trigger an automation whenever the charger was rebooted (to start a new session when one was running before the reboot). For this, I thought creating an automation triggered by the notification "Charger xxxx rebooted" would be simpelst.
This notification however does not provide a fixed id. This id can be used as a filter in the persistent_notification trigger platform.
Describe the solution you'd like
In chargepoint.py:
Describe alternatives you've considered
The text was updated successfully, but these errors were encountered: