Restart Mopidy, Snapserver & Client

Hi,

I’ve just got Home Assistant working with my existing set up of Mopidy and snapcast, works well most of the time, however Mopidy gets stuck and needs restarting on odd occasions. Would be grateful if somebody could explain how I would achieve this through Home Assistant.

Home Assistant is running on a pi zero w and Mopidy is on a Pi 3 so obviously they have different ip address.

I know to restart is sudo systemctl restart mopidy but can’t figure out where and how to put it in the configuration.yaml

Thanks for looking.