Followed the instruction on the add-on for the telstra notification platform. I setup the key and the secret after creating a dev account with Telstra.
I’m getting the following error in the home assistant log file.
2017-09-26 20:53:57 ERROR (SyncWorker_11) [homeassistant.components.notify.telstra] Error obtaining authorization from Telstra API
NoneType: None
2017-09-26 20:53:57 ERROR (MainThread) [homeassistant.components.notify] Failed to initialize notification service telstra
I too am having the same issue. I originally had the notification working, then the Telstra Dev site upgraded and I had to reapply for access and get a new consumer secret/key. Since then I have not been able to get it working with the exact same error message being displayed.
Can see that they are expecting “NSMS” for the scope when doing Authentication. The current HA script sends “SMS”. Not sure if this is the problem. Also the version in the URL for the messaging API is V2 in the doco, but V1 in HA. Maybe the new keys are for V2 only.
Getting the following when run the sample auth curl post from the page above.
{“fault”:{“faultstring”:“Unable to identify proxy for host: tapi_secure and url: /v1/oauth/token”,“detail”:{“errorcode”:“messaging.adaptors.http.flow.ApplicationNotFound”}}}
Edit 2:
I am also still getting the 401 error though. I tried changing the URL on line 74 to sapi.telstra.com but then i got a 404 error. I have also tried changing SMS to NSMS on line 94. So anyone got a working example?
I updated the two URL’s as per the link to the telstra dev forum that Dinoaus posted. I also changed the scope from SMS to NSMS
I now appear to auth successfully, and get a token however I get an error 500 when attempting to send an SMS.
I updated the Telstra.py file (but take it that you’ve already found this).
I haven’t had a chance to get a better look at the file. May do so over the w/end.
I am trying to find some time to work out what is going wrong. All I have done so far is retrieved the full error message. Might help someone:
“status”:“500”,
“code”:“TECH-ERR”,
“message”:“Technical error : Execution of JS.ModifyMessageIdURLResponse failed with error: Javascript runtime error: "TypeError: Cannot call method "map" of undefined. (modifyMessageIdURLResponse.js:57)" : An error has occurred while processing your request, please refer to API Docs for summary on the issue”
Edit: Someone has posted this exact query to the Telstra Dev forum so I have also followed that up there as well.