There was another topic about this recently. There is a bug with the quick control.
Build Automations by yourself and don’t use the quick control from the device’s page.