Hi everyone, I’m currently working on an automation project to close my tent when it’s windy. I’ve set up a basic automation using a wind speed sensor and a cover device, but I’m running into some issues. Let me walk you through my setup and the challenges I’m facing.
My Current Setup
I have a wind speed sensor (sensor.wind_speed_automation) and a tent cover (cover.50758014840d8e918614) connected to my system. The automation is straightforward: when the wind speed exceeds 40 km/h, the tent should close. Here’s the basic configuration I’m using:
yaml
- id: Tent_windyy
alias: Tent windy
trigger:- platform: numeric_state
entity_id: sensor.wind_speed_automation
above: 40
action: - service: cover.close_cover
entity_id: cover.50758014840d8e918614
- platform: numeric_state
The Challenge
The automation works when the wind speed exceeds 40 km/h, but I want it to run only once until someone manually opens the tent again. After the tent is opened, I want the automation to reactivate after a certain period, say 5-6 hours or a day later. I’m not sure how to implement this without using input booleans, which I haven’t worked with before.
What I’ve Tried
I’ve considered using input booleans to track the state of the tent, but I’m not entirely sure how to integrate them into my existing automation. I’ve looked up some examples, but they seem a bit complex for my current understanding. I wonder if there’s a simpler way to achieve this without diving too deep into boolean logic.
Seeking Advice
Has anyone else tackled a similar problem? I’m particularly interested in how you handle the reactivation of the automation after the tent is manually opened. Any tips or examples would be greatly appreciated!
Additional Thoughts
I’m also curious about how others manage their automations to avoid unnecessary triggers. For instance, if the wind speed fluctuates around the threshold, how do you ensure the automation doesn’t toggle the tent multiple times? I’d love to hear about best practices or any tricks you’ve discovered while working with similar setups.
Thanks in advance for your help! I’m really looking forward to learning more about how to refine my automation and make it more robust.
Best regards,
[Your Name]