I was pleasantly surprised today when the Basic UI showed a radio button list for a Number item (defined in the frame as a “Default”). Can someone tell me where OH got these values from?
Number UpstairsThermostatOperatingState
"Upstairs state [%.1f]"
<radio-button>
(UpstairsThermostat)
{channel="zwave:device:25750de2:node6:thermostat_state"}
Really more curious than anything, but it would be helpful to understand this better when I try to make a HabPanel template for this.
logInfo("Thermostat Temp Command", UpstairsThermostatFanMode.state)
[ntime.internal.engine.RuleEngineImpl] - Rule 'Thermostat Temp Command': An error occurred during the script execution: Could not invoke method: org.eclipse.smarthome.model.script.actions.LogAction.logInfo(java.lang.String,java.lang.String,java.lang.Object[]) on instance: null
Maybe I’m just tired, but that’s confusing me terribly.
"some text" + UpstairsThermostatFanMode.state
begins as a string, so the rules evaluator knows that + means concatenate (and not maths add) and also that the second thing ought to be be string too. Thus inspired, it looks to see if the mystery object has a toString method - and it does. Here you “get away with it”.
The way to get what you expect - "some text" + UpstairsThermostatFanMode.state.toString
or UpstairsThermostatFanMode.state.toString