Before you start - note, wirelesstag.net and mytaglist.com are 2 entities but contain the same info.
Pick one url and use it for all the commands below.
Credit for some of the instructions below - https://groups.google.com/forum/#!msg/wireless-sensor-tags/OSQeLHsE4W8/sfls9AUCEwAJ
Client ID
Client Secret
Code
Access Token - this is the value that you will be passing to the server with each API call
So here’s how you get all of those pieces:
Go to http://www.mytaglist.com/eth/oauth2_apps.html
Fill out the info in the "Register a new app" section
You only need to provide a "Display Name"
Click "Create", the section will change and you will now see your unique Client ID and Client Secret
Save those, you will need them later, but you can always get back to them by accessing the link in step 1.
Now we need to form a URL using the Client ID
the basic pattern is: https://www.mytaglist.com/oauth2/authorize.aspx?client_id=[client ID of your app] (do not include the brackets)
So it should look something like: https://www.mytaglist.com/oauth2/authorize.aspx?client_id=92bb1001-jeje-8c8c-k4oi-999hh55kk99l
Paste your newly created URL into your web browser
If you formed your URL correctly, you will see a page that asks to "Grant API Access to [your app name]?"
Click the "Grant Access" button
At this point, you will get a server error "403 - Forbidden: Access is denied." Relax, this is normal.
Put your cursor in the address box of the web browser and inspect the URL, inside you will find your 3rd piece of information...the "Code"
It will look something like this: https://www.mytaglist.com/oauth2/?code=1234ab56-7c8d-90e1-f23g-4hi56jklm78n&state=
Make note of everything between "code=" and "&state="
That's your "Code"
Download and install Advanced REST Client
https://install.advancedrestclient.com/
follow the image below
set method to POST
Enter the request url as shown
click body
body content type to application/x-www-form-urlencoded
click add form parameter and enter the client id, client secret and code
press SEND
you will get the result below with your access token.
Copy and paste the token somewhere safe, you will need to enter it in you config.yaml file
Example code - to be put under Sensor in your config.yaml file
- platform: rest
name: 'upstairs-hall'
resource: https://www.mytaglist.com/ethClient.asmx/GetTagList
method: POST
value_template: '{{ value_json.d[0].temperature | round(1) }}'
unit_of_measurement: °C
headers:
Content-Type: application/json
Authorization: 'Bearer ~Enter-your-access-token-from-ARC~~'
`
Chandings the XYZ value in ‘{{ value_json.d[XYZ].temperature | round(1) }}’ will give results of different sensors.
Your sensors should now show up in Home Assistant