Creating the Domoticz device for the setpoint

Domoticz setpoint type and subtype

Starting from the hardware “Dummy (Does nothing, use for virtual switches only)”, I created a new Dummy device in Domoticz. This is done in the Hardware list, by clicking the “Create virtual sensors” button. In the pop-up, I set the type as a “ThermostatSetpoint”. I also created a “Setpoint” - which seems to be exactly the same.

Create-Test-ThermostatSetpoint Create-Test-Setpoint

The devices list shows these as Type = SetPoint and SubType = SetPoint.

NewDevicesInDeviceList

The Utility tab shows the devices: Test-Setpoint-Devices

Next, I set some sensible values for the step, min and max values:

Test-ThermostatSetpoint Test-Setpoint

Domoticz setpoint MQTT output

Then, in the hardware list, I selected “MQTT Client Gateway with LAN interface” and pressed the setup button. I added the new devices.

Next, I recorded the following in a terminal with:

mosquitto_sub -h mqtt -t "#" -v

Changing the values of the setpoints delivers these MQTT messages:

domoticz/out {
	"Battery" : 255,
	"LastUpdate" : "2024-07-27 16:00:00",
	"RSSI" : 12,
	"ValueMax" : "26",
	"ValueMin" : "10",
	"ValueStep" : "1",
	"ValueUnit" : "\u00b0C",
	"description" : "",
	"dtype" : "Setpoint",
	"hwid" : "8",
	"id" : "0014245",
	"idx" : 501,
	"name" : "Test-ThermostatSetpoint",
	"nvalue" : 0,
	"org_hwid" : "8",
	"stype" : "SetPoint",
	"svalue1" : "23.00",
	"unit" : 1
}

domoticz/out {
	"Battery" : 255,
	"LastUpdate" : "2024-07-27 16:00:05",
	"RSSI" : 12,
	"ValueMax" : "28",
	"ValueMin" : "8",
	"ValueStep" : "1",
	"ValueUnit" : "\u00b0C",
	"description" : "",
	"dtype" : "Setpoint",
	"hwid" : "8",
	"id" : "0014246",
	"idx" : 502,
	"name" : "Test-Setpoint",
	"nvalue" : 0,
	"org_hwid" : "8",
	"stype" : "SetPoint",
	"svalue1" : "21.00",
	"unit" : 1
}

So, there clearly is NO difference between the two devices!

Using Domoticz data push

MQTT published by thermostat Tasmota

The Tasmota publishes the following via MQTT whenever the Mem1 variable changes (e.g. thanks to touching the arc and dragging the setpoint):

stat/tasmota_18EF54/RESULT {"Mem1":"12"}
stat/tasmota_18EF54/RESULT {"Mem1":"16"}
stat/tasmota_18EF54/RESULT {"Mem1":"25"}
stat/tasmota_18EF54/RESULT {"Mem1":"12"}

Domoticz reception of a new setpoint value

mosquitto_pub -h mqtt -t "domoticz/in" -m '{"idx":501,"svalue1":"13.00"}'
Tags: domotica nodes