I’ve been working on optimizing my Home Assistant setup to handle the NAS power-off schedule more gracefully. My Plex sensors and mediaplayers are essential for media management, but they cause errors when the NAS is off at night. I stumbled upon the idea of dynamically creating these entities only when the NAS is active, which would prevent those endless error messages.After some research, I considered using templates or even Python scripts to conditionally create sensors. While I’m not a Python expert, I’ve managed to tweak some existing scripts to fit my needs. The idea is to set a time-based condition—something like enabling the Plex entities only between 6:30 AM and 11:30 PM. This would align perfectly with my NAS schedule.I also thought about leveraging MQTT events for more dynamic control, but that might be a bit too advanced for my current setup. For now, a simple time-based solution seems manageable. I found some crude Python code examples where sensors can be dynamically set or hidden based on conditions. Adapting this to my Plex setup could be the key.If anyone has experience with dynamic entity creation or similar automation, I’d love to hear your insights! Maybe there’s a more efficient way to achieve this without diving too deep into scripting. Let’s keep it simple while still being effective. Thanks for any advice you might have!