First of all - a disclaimer
Switch King is not intended to be used for critical functions, such as water, heating etc. The protocols supported by TellStick Classic/Duo/Net are one way protocols, meaning that you will not get an acknowledge that the receiving device has got your message. If - for example - one was to connect device supported by Classic/Duo/Net to a heating unit to make sure that your pipies do not freeze, your status in Switch King could show "On" for the heater even though the heater is actually off since there is no way to know that the heater got the request to turn itself "On" or "Off". Therefore, we strongly recommend using Switch King and TellStick Classic/Duo/Net to non-critical devices.
Now, on to Q&A.
It is not possible to change rules in a schedule using the REST service. The intented use of the REST service as it is today is only to be able to check the status of your installation/home, to send commands to your devices, to start/stop scenarios and to get information about your data sources and their values.
If Switch King were to move to a cloud based service, the REST service (propably being switched to JSON) would possibliy be extended to add support for configuring the system, which is really what you are after. This is, however, nothing we have planned for in the near future.
However, you could actually make a call to the WCF service instead of the REST service. Since the Windows client is using the WCF service to configure the system, all operations are available through WCF. If you work in, for example PHP, you would need to do some explorations in order to see exactly how this call would look like since PHP does not support resolving WCF contracts and calls directly. The WCF contract is also a candidate for change in a future version - we consider the WCF contracts our own domain, while plugins are using REST, hence we are restricted in the type of changes we can make to the service without pulling away the carpet for existing plugins.
The logical operations AND/OR are actually both supported by the server, and you can build a chain of logical operators:
Code: Select all
(X = 1 AND Y = 2) OR (X = 1 AND (Y > 20 AND Y < 100))
We have chosen not to support configuring these kind of logical chains in the client due to that it is quite hard to visualise this in an understandable way.
We have not yet discussed whether to improve this in Switch King v4.
About changes in Switch King v4 - yes there are changes. The server is basically rewritten to be better future-proof, the noticable changes in
added functionality will be few in the first version with the new code under the hood, but the changes also makes it easier to add functionality under the hood in the future. The focus is on performance, handling of Telldus Service failures, support for hardware other than Telldus hardware and also removing some of the obstacles that exists and causes problems when running Switch King in Linux environment.