I think you are referring to solid state relays that can act as variable resistors(sort of anyway) in conjunction with being a relay.
http://www.crydom.com/en/products/pc.../cx241-series/
https://www.amazon.com/Anycubic-8-Ch...id+state+relay
Otherwise the only thing I can think of is a straight up solenoid/variable resistor controlled electronically.