Hey everyone, I wanted to share my experience setting up automation for my Sonoff devices. I’ve been trying to create an automation for my Sonoff POW 16, but I’ve hit a few bumps along the way. Let me walk you through my journey and hopefully, we can figure this out together!
First off, I’ve got this Sonoff device flashed with Tasmota, and it’s working perfectly for manual on/off operations. But the real goal is to automate it based on the time of year. For now, I’m focusing on turning it on and off at specific times, but I’m open to expanding this in the future.
I started by drafting an automation in the automation.yaml file. Here’s what I came up with:
yaml
alias: Sonoff_Vestiario_Winter_On
trigger:
- at: ‘21:13’
platform: time
action: - alias: ‘teste’
service: switch.turn_on
entity_id: switch.Vestiario_DVES_3E51D5
I tried using both entity_id options provided by the device, but neither worked. I’m not sure if I’m missing something in the configuration or if there’s a different approach I should take.
I also noticed that the information page for the Sonoff device shows some entity IDs, but I’m not entirely confident I’m using the correct one. Maybe I need to double-check the device’s configuration or look into the logs for more clues.
If anyone has successfully set up similar automations with Sonoff devices, I’d love to hear your tips or see examples of how you structured your automation.yaml file. Did you run into any common pitfalls, and how did you overcome them?
I’m also curious if there’s a more efficient way to handle seasonal scheduling without manually updating the times each season. Maybe integrating some conditional logic based on sunrise/sunset times or leveraging the input_boolean component could help. Let me know your thoughts!
Until then, I’ll keep experimenting with different configurations and see if I can get this automation up and running smoothly. Fingers crossed! ![]()