Hi all,
I have setup automation to turn on wemo insight switch when plex is paused. However there is a 10-20 secs lag between plex pausing and wemo turing on. Plex pause action shows about 2 secs later in the homeassistant home page. however, wemo likes to take its time. My rpi, plex server and player are all connected via ethernet cable. Any ideas are welcome. thanks
Then there’s not a lot you can do, other than replace the Wemo, since it sounds like the delay is primarily there.
Does the Wemo Switch switch immediately if you use the switch on the home page in HA?
correct. The lag is only there when it kicks through the automation.
I think the problem isn’t caused by the Wemo Switch but by the media player. There is a default scan interval of 10 seconds. Maybe you should try this with 2 seconds (in the Plex config in HA) to test is it’s switching faster.
I know you wrote about the pause state which is displayed in HA in 2 seconds, but I would give it a try.
I will try to do that but now I have run into a different issue. All my plex media players on the network now show up as media_player_some_random_dgits (media_player_yw2inlil21443egq25nbwewm is one of them). It really alternates between media_player and media_player_yw2inlil21443egq25nbwewm, which makes it really hard to setup automations. do you have any suggestions for fixing that please