You can use the same concept to control any homekit device from HA. I use it for a schlage sense lock.,
or magnet sensor