No, the Harmony M needs midi input to control the harmonies generated.
Just simply hookup a midi cable from the keyboard to the Harmony M, and you are away. From memory, the Yamahas default to transmit on channel 1, which is also the default for the Harmony M.
Dennis