Hello @CodeShepherd , Thanks for the fast reply we are using the API requests "import requests" Hereby the code for the payload and the post. And for the .get "Motion_sub = s.get(BASE_URL + '/automation/api/v2/events/subID')". Yes we are of the fact that after 60s they get removed if unused. Thanks for the help. # Define the payload payload = { "properties": { "id": "subID", "keepaliveInterval": 60000, "publishInterval": 1000, "rules": [{ "rule_type": "Queueing", "rule": { "queueSize": 10 } }, { "rule_type": "Sampling", "rule": { "samplingInterval": 100000 } }, { "rule_type": "ChangeEvents", "rule": { "valueChange": "StatusValueTimestamp" } } ] }, "nodes": ["framework/metrics/system/memavailable-mb" ] } # Make the POST request motion_info = s.post(BASE_URL + '/automation/api/v2/events?format=json', json=payload) # Check the response for the POST request if motion_info.status_code == 201: response_data = motion_info.json # Call the method to get JSON data print(response_data) # Print the response data else: print(f"Error: {motion_info.status_code} - {motion_info.text}")
... View more