Hi, you’re probably using the ST stock device which doesn’t allow you to change your default holdType settings (by default, any hold set through the ecobee APIs is indefinite).
To define your holdType to be for 2 hours (any custom value) or till the nextTransition at the thermostat, you’d need the custom DTH I’ve developed for the last 3 years:
For more details on the holdType input parameter for My ecobee Device, refer to the ST community wiki: