Retrieve device_tracker status in Tasker

I’m trying to work out how to get the status of a device_tracker into Tasker. I have a phone that displays a dash board using hadashboard. I want to be able to stop the screen from turning on when no one is home.

Is there a way to do a http get, to retrieve the status of the device_tracker?

Thanks,
John.

I’m interested in this to, in my case I would like to retreive a sensor value. HTTP Get should be possible right? I’m having a hard time finding examples.

Here is some extra info: https://home-assistant.io/developers/rest_api/#get-apistatesltentity_id

Well it was easier then I thought lol.

In Tasker:
Action → HTTP Get

Server:Port

https://.duckdns.org/api/states/sensor.crypto_balance?api_password=mysupersecretpassword

Mime type

application/*

Output File

Download/crypto_balance.txt

Gives the following content in the text file:

{"attributes": {"friendly_name": "Crypto profit", "unit_of_measurement": "\u20ac"}, "entity_id": "sensor.crypto_balance", "last_changed": "2017-11-12T20:34:46.241204+00:00", "last_updated": "2017-11-12T20:34:46.241204+00:00", "state": "-13.43"}

Now I only have to figure out a way to extract only the state, perhaps I have to put it in a variable.