lucasheld / uptime-kuma-api

A Python wrapper for the Uptime Kuma Socket.IO API
https://uptime-kuma-api.readthedocs.io
MIT License
272 stars 21 forks source link

Default notifications are not enabled on monitors created by add_montitor() #76

Open AcumenIT-Tim opened 2 weeks ago

AcumenIT-Tim commented 2 weeks ago

Notifications with "Default Enabled" selected in their config are added to monitors created with add_monitor(), but they are disabled by default. Monitors created with the GUI have them enabled by default.

simaiden commented 2 days ago

Same behavior here, not sure if is a problem with the API or with Uptime Kuma. Anyways, I upgraded to kuma 2.0 beta and the "add_monitor" method doesn't work anymore

simaiden commented 11 hours ago

EDIT: The "Default Enabled" option only works in the dashboard, to add notifications with API you have to specified the "notificationIDList" as kwargs field in add_monitor method.

To get the notifications ids you can use the get_notifications() method