openhems.server.OpenHEMSServer

class openhems.server.OpenHEMSServer(mylogger, network, serverConf: ConfigurationManager, allowSleep=False)
This is the server thread witch aim to centralize information

and take right deccisions to optimize consumption

__init__(mylogger, network, serverConf: ConfigurationManager, allowSleep=False) None

Methods

__init__(mylogger, network, serverConf[, ...])

check()

"

decrementTime(duration)

Decrement time from all objects neither the type (Thanks Python ;) )

getCycleId()

Return cycle id.

getSchedule()

Return scheduled planning.

getTime()

Return current time

loop([now])

It's the content of each loop.

registerDecrementTime(node[, register])

Register a node witch will decrement time.

run([loopDelay])

Run an infinite loop