Awesome, Thanks! I was able to get the api key to work. However, the sensor is showing up as unknown (I did click the authorization link and approved access. It then took me to my home assistant page).
I’ve double checked my sensor code and made sure the destiny2_api_key was correct:
- platform: destiny2
api_key: !secret destiny2_api_key
I have copied the python script to the /custom_components/sensor folder as instructed:
Im getting the same errors as you:
2017-10-13 16:58:31 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.destiny2 fails
Traceback (most recent call last):
File "/home/homeassistant/.homeassistant/custom_components/sensor/destiny2.py", line 113, in update
characters = response.json()['Response']['characters']['data']
you mentioned you were using the wrong membership ID, could you elaborate? What i have in the sensor above is what i see on the bungie site when i click view profile.