#Virtual device or the equivalent

1 messages · Page 1 of 1 (latest)

topaz fossil
#

I have a Python script that periodically emits JSON objects on standard out, and I'm about to rewrite it to use sockets. I would like to create a virtual device for Home Assistant that connects to the appropriate port, parses the JSON objects to update the virtual device's internal state, then makes that state available via HA. Is there a generic virtual device out there that I can use as a template?

loud cosmos
topaz fossil
#

I've never used MQTT. Do you know of an example that I could learn from?

#

I do have Mosquitto installed already so that's one thing