I have made an automation that does a scrape every five seconds to see what my media player zones are playing. I will run a separate one on every zone, and two different media players, so there will be 20 running. It is only necessary to do that when the player is actually playing, so I have the condition like this:
alias: "Foobar: Oppdatere radioinfo hvert 5 sekund når den spiller"
description: ""
triggers:
- trigger: time_pattern
seconds: /5
conditions:
- condition: state
entity_id: media_player.foobarsone9
state: playing
actions:
- action: homeassistant.update_entity
metadata: {}
data:
entity_id:
- sensor.foobar_sone_9
mode: queued
max: 10
Does it tax the system at all (Docker, Pi5) to have these running all the time? And does it tax the system noticeable when they actually do the scrape every five seconds because the player is playing? I would guess no, but I’d like to be sure.
2 posts - 2 participants