@stipus
So I've tested your config file with HS3 and it works great!
One question, I still primarily use HS2 and I'm using the HTTP shim and it works good with HomeKit but I would like to implement your method.
I know the add on for json controlling in HS2 is different, so I'm wondering if I would just need to change this spot in the Homeseer platforms file.
When I check the status of a device using HS2 I can call up this.
http://192.168.1.100:81/jsonapi.asp?...etdevice&id=A1
A1 is the x10 code or device code
controlling the devices looks like this.
On command
http://192.168.1.100:81/jsonapi.asp?...deviceon&id=A1
Off command
http://192.168.1.100:81/jsonapi.asp?...eviceoff&id=A1
So just wondering if I just change this area below from your Homeseer.json file, is that all I would have to do?
I'm not fully committed to changing over to HS3 yet and would like to keep using it with HomeKit but not with the http shim.
function HomeSeerAccessory(log, platformConfig, status ) {
this.log = log;
this.ref = status.ref;
this.name = status.name
this.model = status.device_type_string;
this.onValue = "100";
this.offValue = "0";
this.control_url = platformConfig["host"] + "/JSON?request=controldevicebyvalue&ref=" + this.ref + "&value=";
this.status_url = platformConfig["host"] + "/JSON?request=getstatus&ref=" + this.ref;
for( var i=0; i<platformConfig.accessories.length; i++ ) {
if( platformConfig.accessories[i].ref == this.ref )
{
this.config = platformConfig.accessories[i];
break;
}
}
So I've tested your config file with HS3 and it works great!
One question, I still primarily use HS2 and I'm using the HTTP shim and it works good with HomeKit but I would like to implement your method.
I know the add on for json controlling in HS2 is different, so I'm wondering if I would just need to change this spot in the Homeseer platforms file.
When I check the status of a device using HS2 I can call up this.
http://192.168.1.100:81/jsonapi.asp?...etdevice&id=A1
A1 is the x10 code or device code
controlling the devices looks like this.
On command
http://192.168.1.100:81/jsonapi.asp?...deviceon&id=A1
Off command
http://192.168.1.100:81/jsonapi.asp?...eviceoff&id=A1
So just wondering if I just change this area below from your Homeseer.json file, is that all I would have to do?
I'm not fully committed to changing over to HS3 yet and would like to keep using it with HomeKit but not with the http shim.
function HomeSeerAccessory(log, platformConfig, status ) {
this.log = log;
this.ref = status.ref;
this.name = status.name
this.model = status.device_type_string;
this.onValue = "100";
this.offValue = "0";
this.control_url = platformConfig["host"] + "/JSON?request=controldevicebyvalue&ref=" + this.ref + "&value=";
this.status_url = platformConfig["host"] + "/JSON?request=getstatus&ref=" + this.ref;
for( var i=0; i<platformConfig.accessories.length; i++ ) {
if( platformConfig.accessories[i].ref == this.ref )
{
this.config = platformConfig.accessories[i];
break;
}
}
Comment