This is part of the HAIoT System for house automation.
We use Johnny Five, so a board with Firmata software must be connected to the host. This software will scan the device ports for a board, but you can manually set the port you want at environment level.
git clone https://github.com/ha-iot/hardware-handler/
cd hardware-handler
npm i
npm start
Perform tests in the other systems that depends on this one without having a real board.
npm run start-mocked
The test environment uses a mocked Firmata library (doesn't need a real board).
$ npm test