added retries to single-device home automation commands