What is Switch King Live?

Here you will find information about what Switch King Live is and how it works.

Read more...

"Input string was not in a correct format" when starting client

The error "Input string was not in a correct format" occurs when the Windows client starts. The applications shuts down. This is how you solve the problem.

Read more...

Guide to fix errors in the Android and iPhone

Here, you'll find some guidance to fix errors and configure Switch King's Android and iPhone apps.

This is covered:

  • Software version
  • Switch King's demo environment
  • Port Forwardning
  • Settings in Switch King's Windows client
Read more...

Error message during startup of client

The error message "An error occured when initializing the Switch King client. Switch King will be closed." can sometimes occur when the client is started. This article contains information about how to resolve the issue.

Read more...

How does the energy consumption calculation work?

The view for energy consumption shows a calculated annual consumption. It is not a log over consumed energy.
The idea with the view is to give you the chance to lower your bill by, in advance, knowing how many kWh a device will be on with the current schedule setup.

Read more...

Which Windows services are Switch King responsible for?

Switch King Server consists of several services. The services are using ports when communicating with the clients.

Read more...

Where do I find the log files for the server and the client

The server and the client creates at least one log file each when they encounter problems. The log file is of great help when it comes to identifying errors.

Here, you'll find information about where to find the log files for the server and the client. Read more...

The Android client displays the error "Socket is not connected(1)"

If the Android client cannot establish a connection with Switch King's server components (before authentication or logging in), the client may display the error message below:

Socket is not connected(1)

This is probably due to one of the reasons below:

  • The service "SwitchKing REST Service" is not started on the computer where Switch King Server is installed
  • Port 8800 is not open in the firewall on the computer where Switch King Server is installed
  • In the router, the port 8800 is not open and forwarded to the computer where Switch King Server is installed (and you try to access Switch King from outside your own network)

How does "Forced" work?

In Switch King Pro, you can define a scheduled event as "forced". Switch King keeps track of the current state of the devices and compares the state with the expected state as defined by the schedules. The checks are performed every second (configurable).

If multiple schedules or events are tied to a single device, some scheduled events may be discarded by the server since they are found to be unnecessary. By defining a scheduled event as "forced", you are signalizing to the server that you want the scheduled event to be carried out even if Switch King is classifying it as unnecessary.

Read more...

Vad betyder "Failed to calc expected state by using internal timeline." i serverns loggfiler?

There are no translations available.

Servern räknar med jämna mellanrum ut vilka signaler som ska skickas till varje enhet. Dessa signaler läggs sedan i en form av tidslinje. Det är denna tidslinje man ser i klienten som "Coming up" (kommande händelser).

Vissa kombinationer av schemalagda händelser och regelstyrda scheman kan (ofta vid vissa tidpunkter på dygnet) orsaka att Switch King inte klarar av att räkna ut vilket tillstånd en enhet ska ha vid en viss tidpunkt.

Effekten av detta blir att servern tar mycket processorkraft (CPU) i anspråk och att anslutningen mellan server och klient upplevs som långsam på grund av att Switch Kings serverdelar hela tiden försöker räkna ut rätt tillstånd men inte lyckas.

Utöver att problemet märks i klienten och i långsam kommunikation mellan server och klient så skrivs följande meddelande till serverns loggfil med täta mellanrum:

Failed to calc expected state by using internal timeline. Calculation failed for device 6 and date 2010-05-24 00:01:38.
Timeline starts at 2010-05-16 02:00:00 and ends at 2010-06-04 19:15:00.

Meddelandet ovan kan följas av:

Failed to evaluate expected state when state depended on rule sets. End of timeline.

Åtgärd

Problemet orsakas av en bugg. Åtgärd är planerad.

För att komma förbi problemet ovan kan man antingen lägga en eller flera tvingande händelse under dygnet. De tvingande händelserna gör att Switch King alltid kommer att hitta en "giltig händelse" och därför inte genererar felmeddelandet i loggfilen.

 

Page 1 of 2