Hello all,
i am new to Home assistant and wanted to integrate gspread with the home assistant to realize a functionality. I want to use the notify service call to push a notification to my phone with some actionable items.
I created the below function to do the same.
def push_start_notification(self, kwargs):
messagestr = "Start your work day"
titlestr = "Log Start"
datastr = """{
"actions": [
{
"action": "logwend",
"title": "Log Work End"
}
]
}"""
self.call_service("notify/mobile_app_in2023", message = messagestr, title = titlestr, data = datastr)
Calling this function always leads to the following error
Code: 400, error: 400: Bad Request
The code functions perfectly when i remove the data = datastr argument from the call_service function.
Any help here will be deeply appreciated.