Of course all of this uses the remote api, so nothing is local. That said…
I “share” by using virtual devices by Taustin.
- Make a virtual device in ST for what I need (watch naming so you know it is fake - I’ve taken to add a “V” to the end of the name).
- Reload your ST integration in HA so the new device shows up in HA.
- Set an automation up in HA to sync your HA device you want in ST with the ST virtual device.
Since this manipulates an ST device within HA, the virtual device is directly available and syncs in ST. You can make it a two way sync as well.
I do this with several devices. Items like presence, a flow meter, and a few wifi devices (bulbs, camera motion, myq garage openers, etc).
There are also blueprints in HA that i use to simplify setup, like this one that syncs the on/off state of two devices: