Hello,
I would love to have this feature too !
Maybe you can rely on this plugin, which already provides informations about boat state :
https://github.com/meri-imperiumi/signalk-autostate
You just have to get the "navigation.state" path to know if boat is motoring.