The content of this article is deprecated, and will be removed in the future
modifyState
ModifyState messages are generated when a state of an asset during a certain timeframe needs to be modified.
less than a minute
Topic
ia/<customerID>/<location>/<AssetID>/modifyState
ia.<customerID>.<location>.<AssetID>.modifyState
Usage
modifyState
is generated to modify the state from the starting timestamp to the end timestamp. You can find a list of all supported states here.
Content
key | data type | description |
---|---|---|
timestamp_ms | int32 | unix timestamp of the starting point of the timeframe to be modified |
timestamp_ms_end | int32 | unix timestamp of the end point of the timeframe to be modified |
new_state | int32 | new state code |
JSON
Example
The state of the timeframe between the timestamp is modified to be 150000: OperatorBreakState
{
"timestamp_ms": 1588879689394,
"timestamp_ms_end": 1588891381023,
"new_state": 150000
}
Producers
- Typically Node-RED
Consumers
Last modified January 22, 2024: Update version (074cc23)