Ecobee smart thermostat enhanced

I am two weeks with the ecobee thermostat which I integrate with HA via the HomeKit Device integration. It replaced a Nest learning thermostat which I loved dearly before Google wants me to migrate from the Nest system to the Google cloud. And on top of that, (I believe) HA integration of the Nest thermostat needs Google cloud which I don’t like. Anyway, I’m happy with the ecobee integration in HA. Now, I utilize the motion detection attribute of the ecobee in HA to automatically turn on a smart switches in the kitchen and living room at night to turn on lights. However, I miss the granular scheduling of the Nest thermostat. Maybe there is a way to mimic that granularity in the ecobee using HA automation - I have to research on this.