Skip to content

Home > resol-vbus-core-toolbox-scripts > emSimulator > EmSimulatorService

emSimulator.EmSimulatorService interface

The service provided by the em-simulator script.

Signature:

typescript
export interface EmSimulatorService

Methods

Method

Description

getRelayInfo(moduleNr, relayNr)

Get the information about a simulated module relay's state.

setEnabled(moduleNr, isEnabled)

Enable or disable the simulation of one of the modules.

setSensorValue(moduleNr, sensorNr, value)

Set the value that a simulated module sensor should report back.