I ended up using cloudfree switches which use tasmota instead and worked fine CloudFree Motion Light Switch - CloudFree