I’d like to set the scan interval on the media_player.plex component to change dynamically depending on whether my server is sleeping or not. If it keeps getting scanned, it does not sleep
I figured using an if else statement would do it, but check config does not like it. Is there anyway of accomplishing this?
This won’t be possible. You may be able to edit the components python file and create a custom component that points to an entity to populate the scan interval. Your current configuration will not work because configs typically do not allow value_templates. plex scan_interval definitely does not allow templates.