/PSYamahaMusicCast

The module to control Yamaha devices with the MusicCast

Primary LanguagePowerShell

PSYamahaMusicCast

PSYamahaMusicCast is PowerShell module allows control the Yamaha devices which have got the MusicCast system.

PSYamahaMusicCast now has 26 functions:

  • Disable-YmStandby
  • Enable-YmStandby
  • Get-YmDeviceInformation
  • Get-YmNetworkStatus
  • Get-YmPlayingInfo
  • Get-YmSleepTimer
  • Get-YmStatus
  • Get-YmTunerInfo
  • Set-YmInput
  • Set-YmMuteOff
  • Set-YmMuteOn
  • Set-YmPowerOn
  • Set-YmPowerStandby
  • Set-YmSleepTimer
  • Set-YmTunerFrequency
  • Set-YmTunerNext
  • Set-YmTunerPrevious
  • Set-YmTunerStore
  • Set-YmVolume
  • Set-YmVolumeDown
  • Set-YmVolumeUp
  • Skip-YmNextPlayback
  • Skip-YmPreviousPlayback
  • Start-YmPlayback
  • Stop-YmPlayback
  • Stop-YmSleepTimer

ChangeLog

  • 0.1.7 - 19.10.2019

    • Added notifications (balloon tip) on Windows (beta)
  • 0.1.5 - 11.10.2019

    • New function - Get-YmPlayingInfo
  • 0.1.4.2 - 29.09.2019

    • Beta version

To install

Install-Module -Name PSYamahaMusicCast -Force

Force isn't really necessary but they do skip errors in case some appear.

And to update

Update-Module -Name PSYamahaMusicCast

Whenever there's new version you simply run the command and you can enjoy it. Remember, that you may need to close, reopen PowerShell session if you have already used module before updating it.

Tip

Add to your profile a default value for parameter DeviceAddress. It will help you on easier use the functions of PSYamahaMusicCast.

$PSDefaultParameterValues.Add("*-Ym*:DeviceAddress", "10.10.0.30")

Examples

The command will turn on your device, sets the input to a tuner and increases volume up by one.

Set-YmPowerOn -DeviceAddress 10.10.0.30
Set-YmInput -DeviceAddress 10.10.0.30 -Input tuner
Set-YmVolume  -DeviceAddress

or easier (when we add PSDefaultParameterValues)

poweron-ym
input-ym -Input tuner
up-ym

The command will turn on your device, sets the input to Spotify and skips to next track.

poweron-ym
input-ym -Input spotify
next-ym

info-ym

# response_code     : 0
# input             : spotify
# play_queue_type   : system
# playback          : play
# repeat            : off
# shuffle           : off
# play_time         : -60000
# total_time        : 0
# artist            : Alicia Keys
# album             : The Element Of Freedom
# track             : Empire State of Mind (Part II) Broken Down
# albumart_url      : /YamahaRemoteControl/AlbumART/AlbumART9294.jpg
# albumart_id       : 9294
# usb_devicetype    : unknown
# auto_stopped      : False
# attribute         : 16777631
# repeat_available  : {}
# shuffle_available : {}
# responde_message  : Successful request