aRest and Rpi 2

Hello

I am running the aRest framework on my Pi2.
I can send curl commands to turn it on and off.

curl http://192.168.X.X:3000/digital/16/1

curl http://192.168.X.X:3000/digital/16/0

My config looks like this…

  - platform: arest
    resource: http://192.168.X.X:3000
    name: light
    pins:
      16:
        name: light1

I am using the example app.js

// Include modules
var express = require('express');
var app = express();
var piREST = require('pi-arest')(app);

// ID & name
//piREST.set_id('34f5eQ');
//piREST.set_name('my_new_Pi');

// Example variables
//temperature = 24;
//humidity = 40;
//piREST.variable('temperature',temperature);
//piREST.variable('humidity',humidity);

// Start server
var server = app.listen(3000, function() {
    console.log('Listening on port %d', server.address().port);
});

When I toggle it from the front end it turns on for one second and shuts off.
I have this in the logs but the command is getting to the pi.
16-10-06 15:15:14 homeassistant.components.switch.arest: Can't set mode. Is device offline?

Am I missing something?

I know I could use a command line switch but I would like to get this working.

Thanks!

I am seeing this exact same issue on a Raspberry Pi 3. Must be something in the HA code when communicating with a Pi