Correct
No, you can’t clone things either
You can still do this with the config files
For some bindings where you have lots of things, it mights be useful to use the text things files instead of the paperUI. This way you can copy and paste your things and just change the names and topics as required.
For MQTT currently I have:
Bridge mqtt:broker:MosquittoMqttBroker "Mosquitto MQTT Broker" [
host="192.168.0.34",
secure=false,
port=1883,
qos=0,
retain=false,
clientid="Oh2Mqtt2Thing",
//certificate="",
//certificatepin=false,
//publickey="",
//publickeypin=false,
keep_alive_time=30000,
reconnect_time=60000,
//lastwill_message="",
//lastwill_qos=1,
//lastwill_topic="",
username="username",
password="password"
]
{
//*****************
//** THERMOSTATS **
//*****************
// *** PORCH ***
Thing topic PorchThermostat "Porch Thermostat" {
Channels:
Type string : Mode "Mode" [
stateTopic="House/Porch/Thermostat/Mode",
commandTopic="House/Porch/Thermostat/Mode",
allowedStates="off,heat"
]
Type number : Target "Target" [
stateTopic="House/Porch/Thermostat/Target"
]
Type number : Ambient "Ambient" [
stateTopic="House/Porch/Thermostat/Ambient"
]
Type number : Humidity "Humidity" [
stateTopic="House/Porch/Thermostat/Humidity",
min=0,
max=100
]
Type number : Battery "Battery" [
stateTopic="House/Porch/Thermostat/Battery",
min=0,
max=100
]
}
// *** HALLWAY ***
Thing topic HallwayThermostat "Hallway Thermostat" {
Channels:
Type string : Mode "Mode" [
stateTopic="House/Hallway/Thermostat/Mode",
commandTopic="House/Hallway/Thermostat/Mode",
allowedStates="off,heat"
]
Type number : Target "Target" [
stateTopic="House/Hallway/Thermostat/Target"
]
Type number : Ambient "Ambient" [
stateTopic="House/Hallway/Thermostat/Ambient"
]
Type number : Humidity "Humidity" [
stateTopic="House/Hallway/Thermostat/Humidity",
min=0,
max=100
]
Type number : Battery "Battery" [
stateTopic="House/Hallway/Thermostat/Battery",
min=0,
max=100
]
}
// *** KITCHEN ***
Thing topic KitchenThermostat "Kitchen Thermostat" {
Channels:
Type string : Mode "Mode" [
stateTopic="House/Kitchen/Thermostat/Mode",
commandTopic="House/Kitchen/Thermostat/Mode",
allowedStates="off,heat"
]
Type number : Target "Target" [
stateTopic="House/Kitchen/Thermostat/Target"
]
Type number : Ambient "Ambient" [
stateTopic="House/Kitchen/Thermostat/Ambient"
]
Type number : Humidity "Humidity" [
stateTopic="House/Kitchen/Thermostat/Humidity",
min=0,
max=100
]
Type number : Battery "Battery" [
stateTopic="House/Kitchen/Thermostat/Battery",
min=0,
max=100
]
}
// *** SMALL BEDROOM ***
Thing topic SmallBedroomThermostat "Small Bedroom Thermostat" {
Channels:
Type string : Mode "Mode" [
stateTopic="House/SmallBedroom/Thermostat/Mode",
commandTopic="House/SmallBedroom/Thermostat/Mode",
allowedStates="off,heat"
]
Type number : Target "Target" [
stateTopic="House/SmallBedroom/Thermostat/Target"
]
Type number : Ambient "Ambient" [
stateTopic="House/SmallBedroom/Thermostat/AmbientTemp"
]
Type number : Humidity "Humidity" [
stateTopic="House/SmallBedroom/Thermostat/Humidity",
min=0,
max=100
]
Type number : Battery "Battery" [
stateTopic="House/SmallBedroom/Thermostat/Battery",
min=0,
max=100
]
}
// *** LARGE BEDROOM ***
Thing topic LargeBedroomThermostat "Large Bedroom Thermostat" {
Channels:
Type string : Mode "Mode" [
stateTopic="House/LargeBedroom/Thermostat/Mode",
commandTopic="House/LargeBedroom/Thermostat/Mode",
allowedStates="off,heat"
]
Type number : Target "Target" [
stateTopic="House/LargeBedroom/Thermostat/Target"
]
Type number : Ambient "Ambient" [
stateTopic="House/LargeBedroom/Thermostat/AmbientTemp"
]
Type number : Humidity "Humidity" [
stateTopic="House/LargeBedroom/Thermostat/Humidity",
min=0,
max=100
]
Type number : Battery "Battery" [
stateTopic="House/LargeBedroom/Thermostat/Battery",
min=0,
max=100
]
}
}