How can I use rasberry Pi 3 as a device on ST?

Hey community, I’ve recently purchased a rasberry Pi 3 B and have been wondering if anybody has been able to use the GPIO’s on it as inputs to ST?
I’d like to be able to, for instance, wire a momentary push button to an input on the Rasberry Pi and that somehow acts as a switch on ST.

I’m not too familiar with coding or developing so Any ideas would be great!

Thats exactly what I want to do…I have several magnetic door switches and window switches that I’d like to feed into the gpio’s of rasberry pi and have it somehow create individual devices to smart things
Have you figured anything out ?

Alas, nothing yet. Ended up putting home assistant on the raspberry pi and currently trying to understand how to configure it