#so recently i have started playing a lot

1 messages · Page 1 of 1 (latest)

feral prism
#

HA itself uses Python, and only Python. The integration would have to be in Python

Or you'd have to have the app use MQTT

civic seal
#

well i found an other library for it which is in python but idk how trust worthy it is so mqtt is best thing now

feral prism
#

Do what?

#

MQTT?

civic seal
#

yes

#

i am not sure how i can use it

feral prism
#

Do you know what MQTT is?

civic seal
#

yea isnt it a protocol for communicating with stuff i think i use it for hass agent mostly

#

the windows app

feral prism
#

Yes, it is

#

So you'd need your Rust/JS app to publish to MQTT

civic seal
#

i guess so but idk how to do that

feral prism
#

The good news is that there will be libraries for Rust/JS

#

All you have to do is learn how to use them

#

Then publish payloads HA can use (see the links above)

civic seal
#

so all i have to do is make a js up to controll stuff for the game and make it publish to mqtt?

feral prism
#

Largely yes

#

And either have it publish an MQTT Discovery payload (see the links) or create MQTT entities manually (see the links)

#

Just like Hass.Agent does

civic seal
#

well i could possibly use an other library that is python if i want to avoid mqtt

feral prism
#

To create an integration in HA, yes

civic seal
#

because i found a python libary that is in python

#

but idk how trust worthy it is

feral prism
#

Then have the integration and your software talk to each other

civic seal
#

i found this