hi all, working back through some of my old files to build out a new build on OH3 but running into a snag. I guess some documentation on my end would have helped but here I am.
This is what I had as an item, I did change it a bit so it would fit within the the new build
//Setpoints
Number RightFan_Thermostat_SP_F "Set Point [%.1f]" { mqtt=">[broker:cmnd/sonoff-00th161/POWER:command:*:default]" }
Then I would do a rule like this
rule "mechanical rules"
when
Item tower_greenhouse_FrontTemperature changed
then
//Right Fan
if (tower_greenhouse_FrontTemperature.state >= RightFan_Thermostat_SP_F.state) {
right_fan.sendCommand(ON)
} else {
right_fan.sendCommand(OFF)
}
Then sitemap
Setpoint item=RightFan_Thermostat_SP_F label="Right Fan Temp [%.0f °F]" icon="heating" step=1
My question is, what is the mqtt statement referencing in the item? Seems odd that its referencing power? I’m missing something. I cant test that since its from an old install that does not exist anymore.
In any case, in oh3, how would I create that number?
thanks!