- Platform information:
- Java Runtime Environment :openjdk version 11.0.10
- openHAB version: 3.0.1
I got a state machine controlling rollershutters where I’ve defined my states by:
var Number INIT = 10
var Number SUN_SET = 20
var Number SUN_EAST = 30
var Number SUN_SOUTH = 50
var Number SUN_SOUTH_WEST = 60
var Number SUN_WEST = 70
var Number MANUAL = 80
Is it possible to create this as an enum, so that I could use this in outputs?
Currently the output is just the number, and in the example below where this is output in a log I’d rather have the enum, so that it would tell me that “State is SUN_EAST.”
Rollershutter SM received an update. State is 30.