I just recently started using sharp tools, and I was using AI to create all new dashboards. One thing i’m trying to do is get basic PC information like ram or counusage on my home including info from emby and i’m trying to get that.And to sharp tools. Is anyone here able to use smartthings as a middleman, maybe using virtual sensors or something to that extent and able to get that information into their sharp tools dashboard?
You need a tiny web server on your PC that returns a JSON that includes all the desired informations.
On the ST side, a LAN Edge Driver, that polls (GET) that server, parses the returned JSON and emits the events.
A lot like how this driver works. The device has a built-in web server and this is the API. instead of returning the temperature, humidity and other values, your web server should return RAM usage and so on via JSON.
Pretty easy, actually.
Thanks @Andreas_Roedl . That makes sense. I already have a small Windows service that returns JSON with the PC/server info. What I don’t have is the SmartThings LAN Edge Driver side. Do you know of an existing Edge driver that can poll a custom JSON endpoint and map the returned values to SmartThings device capabilities, or would this require writing a custom Edge driver from scratch?
Yes, because of the specific capabilities - temperature of your PC would be a production capability, the rest are custom capabilities. The JSON parser is another thing.
I’ll upload the code of my driver on GitHub tomorrow. Edit: here it is.
Than you @Andreas_Roedl . Also sharp tools has something in alpha testing if you use.them. I asked for.an invite so im still waiting.