state;

<< Click to Display Table of Contents >>

Navigation:  The API > Simple API > Messages from Gateway >

state;

State

After passing login mask, the gateway does immediately transmit last known state of every learned-in devices. Unlike in other cases, e.g. ‘device’ or ‘telegram’ where one line contains all information about one object, the ‘state’ transmission is slightly different. Functions are separated into different lines. Devices might have different “ages” for different “last states”. This means, that different functions of a device are sent by the device at different times. For instance an A5-12-XX profile is sending either actual or cumulative values. This way the different functions and corresponding values have different timestamps.

After the last state has been transmitted, the gateway will subsequently deliver telegrams as they occur on the EnOcean side.

 

Gateway event state

state;deviceId=01842329;friendlyId=WeatherStation;dawnSensor=278.15[lx];timestamp=2016-05-24T12:56:07.937+0200;age=24908

state;deviceId=01842329;friendlyId=WeatherStation;dayNight=day(Day);timestamp=2016-05-24T12:56:07.937+0200;age=24908

state;deviceId=01842329;friendlyId=WeatherStation;hemisphere=north(North);timestamp=2016-05-24T12:36:27.399+0200;age=1205446

state;deviceId=01842329;friendlyId=WeatherStation;rainIndication=noRain(No rain);timestamp=2016-05-24T12:56:07.937+0200;age=24908

state;deviceId=01842329;friendlyId=WeatherStation;sunEast=0.00[lx];timestamp=2016-05-24T12:36:27.399+0200;age=1205447

state;deviceId=01842329;friendlyId=WeatherStation;sunSouth=0.00[lx];timestamp=2016-05-24T12:36:27.399+0200;age=1205447

state;deviceId=01842329;friendlyId=WeatherStation;sunWest=588.24[lx];timestamp=2016-05-24T12:36:27.399+0200;age=1205448

state;deviceId=01842329;friendlyId=WeatherStation;temperature=26.82[?C];timestamp=2016-05-24T12:56:07.937+0200;age=24910

state;deviceId=01842329;friendlyId=WeatherStation;windSpeed=0.00[m/s];timestamp=2016-05-24T12:56:07.937+0200;age=24910

state;deviceId=019591BE;friendlyId=tempSensor;temperature=21.96[?C];timestamp=2016-05-24T12:45:58.449+0200;age=634399

state;deviceId=018096B5;friendlyId=WaterCon;digitalInput0=high(Digital Input 0 is High);timestamp=2016-05-24T12:52:02.401+0200;age=270448

state;deviceId=018096B5;friendlyId=WaterCon;digitalInput1=high(Digital Input 1 is High);timestamp=2016-05-24T12:52:02.401+0200;age=270448

state;deviceId=018096B5;friendlyId=WaterCon;digitalInput2=high(Digital Input 2 is High);timestamp=2016-05-24T12:52:02.401+0200;age=270449

state;deviceId=018096B5;friendlyId=WaterCon;digitalInput3=high(Digital Input 3 is High);timestamp=2016-05-24T12:52:02.401+0200;age=270449

state;deviceId=018096B5;friendlyId=WaterCon;temperature=24.16[?C];timestamp=2016-05-24T12:52:02.401+0200;age=270449

state;deviceId=018096B5;friendlyId=WaterCon;wakeStatus=high(High value of wake signal);timestamp=2016-05-24T12:52:02.401+0200;age=270450

state;deviceId=018FBB0B;friendlyId=permundoRedDot;dimValue=0.00[%](Output value 0% to 100%);timestamp=2016-05-20T17:27:28.576+0200;age=329344275

state;deviceId=018FBB0B;friendlyId=permundoRedDot;errorLevel=notSupported(Error level not supported);timestamp=2016-05-20T17:27:28.576+0200;age=329344276

state;deviceId=018FBB0B;friendlyId=permundoRedDot;localControl=on(Local control enabled);timestamp=2016-05-20T17:27:28.576+0200;age=329344276

state;deviceId=018FBB0B;friendlyId=permundoRedDot;overcurrentSwitchOff=false(Over current switch off: ready / not supported);timestamp=2016-05-20T17:27:28.576+0200;age=329344276

 

State formatting
 

String

Meaning

Possible values/Examples

state

respond identifier state

state

deviceId

SenderID of Enocean device, EnOcean modules usually send telegrams with their unique 32-bit Chip ID. In the other case, these are the Base ID of the EnOcean device.

1D59038

friendlyId

User-assigned name of EnOcean device

temperatureSensor

function

Function names and their values
(see Function format)

Temperature=23.53[°C]

timestamp

The time when the telegram and state received, saved

2015-04-22T16:45:46.150+0200