Tested the Ghost XML and it works beautiful... trouble is, now I don't know how to use the info it collects.
For instance, I'm using Ghost to do a GET request to a Hubitat Elevation Hub's Samsung zigbee arrival/presence tag. Now I need to create a virtual device to monitor presence with a payload of present and not present and perhaps a small icon just like a motion sensor but I can't find how to... Just On/Off virtual devices... Do you know how to create a device?
BTW, I could do a schedule with the following script:
First I create a variable on python console: indigo.variable.create("PepePresence", "not present")
- Screen Shot 2020-07-12 at 20.52.57.png (335.88 KiB) Viewed 2719 times
The script:
import requests
r = requests.get('http://192.168.X.XX/apps/api/193/devices/1?access_token=123c1234-da12-12f6-1f0a-123da7e1f123')
response = r.json()
indigo.server.log(response['attributes'][1]['currentValue'])
indigo.variable.updateValue(586491695,response['attributes'][1]['currentValue'])
- Screen Shot 2020-07-12 at 20.54.21.png (158.34 KiB) Viewed 2719 times
And it works beautiful but same problem... how can I create a device to show the status?
Thanks!!
PP