I have began dissecting exactly how the Python scripts interact with the Java classes.
As an initial tinker, I am trying to get a light module to turn off.
Although I am not getting an error back, I am not get the module to turn off.
I know all of the switch is configured and linked correctly because I can send
curl -u myser
http://192.168.39.100:25105/3?026254aa910F11FF=I=3 to turn on and
curl -u myser
http://192.168.39.100:25105/3?026254aa910F1100=I=3 to turn off
import java.io.IOException;
import us.pfrommer.insteon.msg.FieldException;
import us.pfrommer.insteon.msg.IOPort;
import us.pfrommer.insteon.msg.InsteonAddress;
import us.pfrommer.insteon.msg.Msg;
import us.pfrommer.insteon.msg.hub.HubStream;
public class NeuMain {
public static void main(String[] args) throws IOException, FieldException {
HubStream hs = new HubStream("192.168.39.100", 25105, 1000, "myser", "mypass");
hs.open();
IOPort ioPort=new IOPort(hs);
Msg msg = Msg.s_makeMessage("SendStandardMessage");
msg.setAddress("toAddress", new InsteonAddress("54.aa.91"));
msg.setByte("messageFlags", (byte)0x1f);
//msg.setByte("command1", (byte)0x11);
msg.setByte("command2", (byte)0x11);
ioPort.write(msg);
hs.close();
}
}